-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
enable type checking for eslint.config.mjs again
there is conflict of type definitions between `@types/eslint` and `typescript-eslint`. These packages provide their own types for a config object in `eslint.config.mjs` and the types are not assignable. `eslint-plugin-n` uses `@types/eslint` but `ts.config()` does not accept the flat config object of the plugin. It seems that the maintainer of `typescript-eslint` won't improve this situation. typescript-eslint/typescript-eslint#8613 (comment)
- Loading branch information
Showing
4 changed files
with
86 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
{ | ||
"extends": "./tsconfig.json", | ||
"compilerOptions": { | ||
"module": "nodenext", | ||
"moduleResolution": "nodenext", | ||
"noEmit": true, | ||
"allowJs": true | ||
}, | ||
"files": [ | ||
"eslint.config.mjs" | ||
] | ||
} |