GitShow/antfu/eslint-plugin-format
antfu

eslint-plugin-format

Format various languages with formatters in ESLint

by antfu
dprinteslint-pluginprettier
Star on GitHubForknpm

TypeScript

198 stars8 forks5 contributorsQuiet · 4mo agoSince 2023v2.0.1MIT

Meet the team

See all 5 on GitHub →
antfu
antfu38 contributions
hyoban
hyoban4 contributions
bitbloxhub
bitbloxhub3 contributions
Garfield550
Garfield5502 contributions
RebeccaStevens
RebeccaStevens1 contribution

Community health

5 of 6 standards met

Community profile →
85
✓README✓License✓Contributing✓Code of Conduct○Issue Template✓PR Template

Recent PRs & issues

Quiet · 1 discussion · Last activity 4mo ago
See all on GitHub →
sao-coding
Module "eslint-plugin-format" has no exported member 'default'.OpenIssue

Describe the bug https://github.com/antfu/eslint-plugin-format/issues/11 Module "eslint-plugin-format" has no exported member 'default'. export { default as formatPlugin } from 'eslint-plugin-format' Reproduction n/a System Info Used Package Manager pnpm Validations [x] Follow our Code of Conduct [x] Read the Contributing Guide. [x] Check that there isn't already an issue that reports the same bug to avoid creating a duplicate. [x] Check that this is a concrete bug. For Q&A, please open a GitHub Discussion instead. [x] The provided reproduction is a minimal reproducible of the bug. Contributions [ ] I am willing to submit a PR to fix this issue [ ] I am willing to submit a PR with failing tests (actually just go ahead and do it, thanks!)

sao-coding · 3mo ago

Recent fixes

View closed PRs →
gtbuchanan
Prettier plugins ignored when ESLint parser is not parserPlainClosedIssue

Description When the ESLint parser for a file is anything other than (e.g., from another plugin), the rule silently ignores all Prettier plugins passed in the rule options. The formatting runs but plugins don't load — no errors are reported. Additionally, even with , the synckit worker appears to cache Prettier's plugin state from the first invocation. When different file patterns use with different plugin sets (e.g., for and for ), processing them together causes "Failed to format the code" errors on whichever pattern is processed second. Reproduction Bug 1: Plugins ignored without parserPlain Expected: forces all arrays to one-element-per-line. Actual: The plugin is silently ignored. Bug 2: Worker state corruption across file patterns Running alone works. Running (both match different configs above) causes "Failed to format the code" on . Workaround No complete workaround found. Using identical plugin sets across all configs avoids bug 2, but bug 1 prevents using plugins at all when other ESLint plugins (like ) set a non- parser on the same files. Environment eslint-plugin-format: 2.0.1 eslint: 10.1.0 prettier: 3.8.3 Node.js: 24.x

gtbuchanan · 2mo ago
hyoban
fix(oxfmt): ignore unsupported file type errorMergedPR

Please be aware that vibe-coding contributions are 🚫 STRICTLY PROHIBITED. We are humans behind these open source projects, trying hard to maintain good quality and a healthy community. Not only do vibe-coding contributions pollute the code, but they also drain A LOT of unnecessary energy and time from maintainers and toxify the community and collaboration. All vibe-coded, AI-generated PRs will be rejected and closed without further notice. In severe cases, your account might be banned organization-wide and reported to GitHub. PLEASE SHOW SOME RESPECT and do not do so. Before submitting the PR, please make sure you do the following: Read the Contributing Guide. Check that there isn't already a PR that solves the problem the same way to avoid creating a duplicate. Provide a description in this PR that addresses what the PR is solving and WHY**, or reference the issue that it solves (e.g. ). Ideally, include relevant tests that fail without this PR but pass with it. [x] Linked Issues fixes # Additional context

hyoban · 4mo ago
liuzwZYW
support eslint v10ClosedIssue

Clear and concise description of the problem . Suggested solution . Alternative . Additional context . Validations [x] Follow our Code of Conduct [x] Read the Contributing Guide. [x] Check that there isn't already an issue that request the same feature to avoid creating a duplicate.

liuzwZYW · 4mo ago
Structured data for AI agents

Repository: antfu/eslint-plugin-format. Description: Format various languages with formatters in ESLint Stars: 198, Forks: 8. Primary language: TypeScript. License: MIT. Topics: dprint, eslint-plugin, prettier. Latest release: v2.0.1 (4mo ago). Open PRs: 0, open issues: 1. Last activity: 4mo ago. Community health: 85%. Top contributors: antfu, hyoban, bitbloxhub, Garfield550, RebeccaStevens.

·@ofershap

Replace github.com with gitshow.dev