-
-
Notifications
You must be signed in to change notification settings - Fork 200
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
The upgrade to ESLint 9 which occurred in a previous commit was not done correctly. An array must be passed to `createConfig` instead of a series of arguments. As a result, a lot of lint rules were accidentally disabled. This commit fixes the ESLint config and corrects any lint violations. It turns out that upgrading the ESLint packages created a bunch of new lint violations, so those have been turned into warnings rather than errors. To prevent new instances of these violations from occurring, a script has been added which captures existing warning counts and exits with a non-zero exit code if the count increases. This script is also now used for `yarn lint:eslint` so that CI will fail if the count increases.
- Loading branch information
Showing
29 changed files
with
386 additions
and
86 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
{ | ||
"@typescript-eslint/consistent-type-exports": 19, | ||
"@typescript-eslint/no-base-to-string": 3, | ||
"@typescript-eslint/no-duplicate-enum-values": 2, | ||
"@typescript-eslint/no-misused-promises": 1, | ||
"@typescript-eslint/no-unsafe-enum-comparison": 59, | ||
"@typescript-eslint/no-unused-vars": 35, | ||
"@typescript-eslint/prefer-promise-reject-errors": 13, | ||
"@typescript-eslint/prefer-readonly": 147, | ||
"@typescript-eslint/switch-exhaustiveness-check": 9, | ||
"import-x/namespace": 189, | ||
"import-x/no-duplicates": 32, | ||
"import-x/no-named-as-default": 1, | ||
"import-x/order": 208, | ||
"jest/no-conditional-in-test": 104, | ||
"jsdoc/check-tag-names": 372, | ||
"jsdoc/require-returns": 22, | ||
"jsdoc/tag-lines": 328, | ||
"n/no-unsupported-features/node-builtins": 18, | ||
"n/prefer-global/text-encoder": 4, | ||
"n/prefer-global/text-decoder": 4, | ||
"prettier/prettier": 115, | ||
"promise/always-return": 3, | ||
"promise/catch-or-return": 2, | ||
"promise/param-names": 8, | ||
"no-shadow": 8, | ||
"no-unused-private-class-members": 6 | ||
} |
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
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
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.