Skip to content

Commit 69abfc9

Browse files
Update dependencies, Node 16 deprecation
1 parent 4b1db46 commit 69abfc9

File tree

4 files changed

+2721
-2129
lines changed

4 files changed

+2721
-2129
lines changed

.eslintrc.js

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -159,6 +159,7 @@ module.exports = {
159159
format: ["camelCase", "PascalCase", "UPPER_CASE"],
160160
},
161161
],
162+
"@typescript-eslint/no-array-delete": "error",
162163
"@typescript-eslint/no-base-to-string": "error",
163164
"@typescript-eslint/no-confusing-non-null-assertion": "error",
164165
"@typescript-eslint/no-confusing-void-expression": "error",
@@ -200,6 +201,7 @@ module.exports = {
200201
"@typescript-eslint/non-nullable-type-assertion-style": "warn",
201202
"@typescript-eslint/parameter-properties": "error",
202203
"@typescript-eslint/prefer-as-const": "warn",
204+
"@typescript-eslint/prefer-find": "warn",
203205
"@typescript-eslint/prefer-for-of": "warn",
204206
"@typescript-eslint/prefer-includes": "warn",
205207
"@typescript-eslint/prefer-namespace-keyword": "warn",
@@ -231,9 +233,14 @@ module.exports = {
231233
"@typescript-eslint/triple-slash-reference": "warn",
232234
"@typescript-eslint/unbound-method": "error",
233235
"@typescript-eslint/unified-signatures": "warn",
236+
"@typescript-eslint/use-unknown-in-catch-callback-variable": "warn",
234237
// TypeScript Extension Rules - https://typescript-eslint.io/rules/#extension-rules
238+
"consistent-return": "off",
239+
"@typescript-eslint/consistent-return": "error",
235240
"default-param-last": "off",
236241
"@typescript-eslint/default-param-last": "error",
242+
"prefer-promise-reject-errors": "off",
243+
"@typescript-eslint/prefer-promise-reject-errors": "error",
237244
"no-array-constructor": "off",
238245
"@typescript-eslint/no-array-constructor": "error",
239246
"no-dupe-class-members": "off",
@@ -301,6 +308,7 @@ module.exports = {
301308
files: ["*.jsx", "*.tsx"],
302309
rules: {
303310
// React - https://github.com/jsx-eslint/eslint-plugin-react#list-of-supported-rules
311+
"react/checked-requires-onchange-or-readonly": "error",
304312
"react/function-component-definition": [
305313
"warn",
306314
{
@@ -410,6 +418,7 @@ module.exports = {
410418
"jest/prefer-comparison-matcher": "warn",
411419
"jest/prefer-each": "warn",
412420
"jest/prefer-equality-matcher": "warn",
421+
"jest/prefer-importing-jest-globals": "error",
413422
"jest/prefer-lowercase-title": [
414423
"warn",
415424
{

.husky/pre-commit

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1 @@
1-
#!/bin/sh
2-
. "$(dirname "$0")/_/husky.sh"
3-
41
npx --no lint-staged

0 commit comments

Comments
 (0)