Skip to content

Commit 8609e07

Browse files
Garfield550antfu
andauthoredJan 8, 2025··
fix: eslint-parser-plain meta data (#7)
Co-authored-by: Anthony Fu <github@antfu.me>
1 parent 81475fa commit 8609e07

File tree

3 files changed

+117
-48
lines changed

3 files changed

+117
-48
lines changed
 

Diff for: ‎package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@
7474
"synckit": "^0.9.2"
7575
},
7676
"devDependencies": {
77-
"@antfu/eslint-config": "^3.12.1",
77+
"@antfu/eslint-config": "^3.12.2",
7878
"@antfu/ni": "^0.23.2",
7979
"@antfu/utils": "^0.7.10",
8080
"@types/eslint": "^9.6.1",

Diff for: ‎pnpm-lock.yaml

+111-39
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Diff for: ‎src/index.ts

+5-8
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,10 @@
1-
import type { Linter } from 'eslint'
2-
import * as _parserPlain from 'eslint-parser-plain'
1+
import type { ESLint, Linter } from 'eslint'
2+
import * as parserPlain from 'eslint-parser-plain'
33
import dprint from './rules/dprint'
44
import prettier from './rules/prettier'
55

6-
const parserPlain: Linter.Parser = {
7-
meta: {
8-
name: 'eslint-parser-plain',
9-
},
10-
..._parserPlain as { parseForESLint: any },
6+
export interface ESLintPluginFormat extends ESLint.Plugin {
7+
parserPlain: Linter.Parser
118
}
129

1310
export default {
@@ -16,4 +13,4 @@ export default {
1613
prettier,
1714
dprint,
1815
},
19-
}
16+
} satisfies ESLintPluginFormat

0 commit comments

Comments
 (0)
Please sign in to comment.