-
Notifications
You must be signed in to change notification settings - Fork 57
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: upgrade eslint to flat config (#258)
* chore: upgrade eslint to flat config * prettier is now part of eslint
- Loading branch information
Showing
21 changed files
with
310 additions
and
288 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file was deleted.
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,43 @@ | ||
import eslint from "@eslint/js"; | ||
import tseslint from "typescript-eslint"; | ||
import prettierPlugin from "eslint-plugin-prettier/recommended"; | ||
|
||
export default tseslint.config( | ||
{ | ||
ignores: [ | ||
".stryker-tmp/", | ||
".tsup/", | ||
".vscode", | ||
"dist/", | ||
"examples/", | ||
"node_modules/", | ||
"scripts/" | ||
] | ||
}, | ||
eslint.configs.recommended, | ||
...tseslint.configs.recommended, | ||
{ | ||
rules: { | ||
"no-console": "error", | ||
"no-throw-literal": "error", | ||
"no-new-func": "error", | ||
"no-self-compare": "error", | ||
"no-useless-call": "error", | ||
"no-sequences": "error", | ||
"no-template-curly-in-string": "error", | ||
"@typescript-eslint/no-empty-function": "error", | ||
"@typescript-eslint/no-non-null-assertion": "error", | ||
|
||
"@typescript-eslint/no-unused-vars": "warn", | ||
|
||
"@typescript-eslint/no-explicit-any": "off" | ||
} | ||
}, | ||
{ | ||
files: ["**/__benchmarks__/**", "**/__tests__/**"], | ||
rules: { | ||
"no-console": "off" | ||
} | ||
}, | ||
prettierPlugin | ||
); |
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
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
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 |
---|---|---|
@@ -1,4 +1,3 @@ | ||
/* eslint-disable max-lines-per-function */ | ||
import { | ||
DocumentNode, | ||
GraphQLBoolean, | ||
|
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
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
Oops, something went wrong.