Skip to content

Commit ec676c6

Browse files
chore: update eslint and @typescript-eslint rules
1 parent bd7cda6 commit ec676c6

File tree

6 files changed

+2302
-905
lines changed

6 files changed

+2302
-905
lines changed

packages/eslint-config/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,11 +24,11 @@
2424
},
2525
"dependencies": {
2626
"@stylistic/eslint-plugin": "2.12.0",
27-
"eslint": "9.4.0",
27+
"eslint": "9.16.0",
2828
"eslint-plugin-react": "7.37.2",
2929
"eslint-plugin-react-hooks": "5.1.0",
3030
"eslint-plugin-unicorn": "56.0.1",
3131
"globals": "^15.4.0",
32-
"typescript-eslint": "7.12.0"
32+
"typescript-eslint": "8.18.0"
3333
}
3434
}

packages/eslint-config/src/base.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ export const eslintBaseConfig = [
1717
},
1818
],
1919
'no-invalid-regexp': 2,
20+
'no-loss-of-precision': 2,
2021
'no-param-reassign': [1, { props: false }],
2122
'no-promise-executor-return': [2, { allowVoid: true }],
2223
'no-prototype-builtins': 1,

packages/eslint-config/src/typescript.js

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,12 +30,16 @@ export const eslintPluginTypescriptConfig = [
3030
},
3131
],
3232
'@typescript-eslint/method-signature-style': [1, 'property'],
33+
'@typescript-eslint/no-deprecated': 1,
34+
'@typescript-eslint/no-empty-object-type': [
35+
1,
36+
{ allowInterfaces: 'with-single-extends' },
37+
],
3338
'@typescript-eslint/no-explicit-any': [1, { ignoreRestArgs: true }],
3439
'@typescript-eslint/no-floating-promises': [
3540
2,
3641
{ ignoreVoid: true, ignoreIIFE: true },
3742
],
38-
'@typescript-eslint/no-loss-of-precision': 2,
3943
'@typescript-eslint/no-misused-promises': [
4044
2,
4145
{ checksVoidReturn: { arguments: false, attributes: false } },
@@ -47,7 +51,9 @@ export const eslintPluginTypescriptConfig = [
4751
{ allowConstantLoopConditions: true },
4852
],
4953
'@typescript-eslint/no-unsafe-assignment': 1,
54+
'@typescript-eslint/no-unsafe-function-type': 1,
5055
'@typescript-eslint/no-unsafe-member-access': 1,
56+
'@typescript-eslint/no-wrapper-object-types': 2,
5157
'@typescript-eslint/only-throw-error': 1,
5258
'@typescript-eslint/prefer-as-const': 1,
5359
'@typescript-eslint/prefer-nullish-coalescing': [

0 commit comments

Comments
 (0)