diff --git a/.changeset/sour-memes-happen.md b/.changeset/sour-memes-happen.md new file mode 100644 index 0000000..18fea3b --- /dev/null +++ b/.changeset/sour-memes-happen.md @@ -0,0 +1,5 @@ +--- +"jsonc-eslint-parser": patch +--- + +improve type compatibility with eslint diff --git a/src/types.ts b/src/types.ts index 06a175b..7e35b4c 100644 --- a/src/types.ts +++ b/src/types.ts @@ -6,7 +6,8 @@ export interface JSONParserOptions { jsonSyntax?: JSONSyntax; } -export type RuleFunction = ( +// eslint-disable-next-line @typescript-eslint/no-explicit-any -- used for compatibility with ESLint types +export type RuleFunction = ( node: Node, ) => void;