-
-
Notifications
You must be signed in to change notification settings - Fork 201
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 performed correctly. It seems that an array must be passed to `createConfig` instead of a series of arguments, and that was not done. As a result, a lot of lint rules were disabled accidentally. This commit fixes the ESLint config and corrects any lint violations. Unsurprisingly, upgrading the ESLint packages created a bunch of new lint violations, so those have been turned into warnings rather than errors in this commit. To prevent new instances of these violations from occurring, however, a script has been added which acts as a quality gate, running `eslint` as before, but then capturing existing warning counts and comparing them to a previously generated threshold file, exiting with non-zero if there is an increase in warnings for any particular ESLint rule. 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
448 additions
and
73 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
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,29 @@ | ||
{ | ||
"@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": 3, | ||
"@typescript-eslint/no-unsafe-enum-comparison": 59, | ||
"@typescript-eslint/no-unused-vars": 36, | ||
"@typescript-eslint/prefer-promise-reject-errors": 13, | ||
"@typescript-eslint/prefer-readonly": 152, | ||
"@typescript-eslint/switch-exhaustiveness-check": 10, | ||
"import-x/namespace": 189, | ||
"import-x/no-named-as-default": 1, | ||
"import-x/no-named-as-default-member": 8, | ||
"import-x/order": 209, | ||
"jest/no-conditional-in-test": 104, | ||
"jsdoc/check-tag-names": 372, | ||
"jsdoc/require-returns": 22, | ||
"jsdoc/tag-lines": 329, | ||
"n/no-unsupported-features/node-builtins": 18, | ||
"n/prefer-global/text-encoder": 4, | ||
"n/prefer-global/text-decoder": 4, | ||
"prettier/prettier": 116, | ||
"promise/always-return": 3, | ||
"promise/catch-or-return": 2, | ||
"promise/param-names": 8, | ||
"no-empty-function": 2, | ||
"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
Oops, something went wrong.