Skip to content

Commit

Permalink
fix: eslint-parser-plain meta data (#7)
Browse files Browse the repository at this point in the history
Co-authored-by: Anthony Fu <[email protected]>
  • Loading branch information
Garfield550 and antfu authored Jan 8, 2025
1 parent 81475fa commit 8609e07
Show file tree
Hide file tree
Showing 3 changed files with 117 additions and 48 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@
"synckit": "^0.9.2"
},
"devDependencies": {
"@antfu/eslint-config": "^3.12.1",
"@antfu/eslint-config": "^3.12.2",
"@antfu/ni": "^0.23.2",
"@antfu/utils": "^0.7.10",
"@types/eslint": "^9.6.1",
Expand Down
150 changes: 111 additions & 39 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

13 changes: 5 additions & 8 deletions src/index.ts
Original file line number Diff line number Diff line change
@@ -1,13 +1,10 @@
import type { Linter } from 'eslint'
import * as _parserPlain from 'eslint-parser-plain'
import type { ESLint, Linter } from 'eslint'
import * as parserPlain from 'eslint-parser-plain'
import dprint from './rules/dprint'
import prettier from './rules/prettier'

const parserPlain: Linter.Parser = {
meta: {
name: 'eslint-parser-plain',
},
..._parserPlain as { parseForESLint: any },
export interface ESLintPluginFormat extends ESLint.Plugin {
parserPlain: Linter.Parser
}

export default {
Expand All @@ -16,4 +13,4 @@ export default {
prettier,
dprint,
},
}
} satisfies ESLintPluginFormat

0 comments on commit 8609e07

Please sign in to comment.