Skip to content

Commit 6f16210

Browse files
committed
fix(eslint-config): remove deprecated typescript rules
1 parent 7e479e0 commit 6f16210

File tree

2 files changed

+11
-3
lines changed

2 files changed

+11
-3
lines changed

packages/eslint-config/src/subconfigs/typescript-type-checked.js

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,17 +14,23 @@ export default [
1414
},
1515
rules: {
1616
// Rules
17+
'@typescript-eslint/no-array-delete': 'error',
1718
'@typescript-eslint/no-base-to-string': 'error',
18-
'@typescript-eslint/no-throw-literal': 'error',
19+
'@typescript-eslint/no-deprecated': 'error',
20+
'@typescript-eslint/no-misused-spread': 'error',
21+
'@typescript-eslint/no-mixed-enums': 'error',
22+
'@typescript-eslint/only-throw-error': 'error',
1923
'@typescript-eslint/no-unnecessary-boolean-literal-compare': 'error',
2024
'@typescript-eslint/no-unnecessary-qualifier': 'error',
25+
'@typescript-eslint/no-unnecessary-template-expression': 'error',
2126
'@typescript-eslint/no-unnecessary-type-arguments': 'error',
2227
'@typescript-eslint/prefer-includes': 'error',
2328
'@typescript-eslint/prefer-nullish-coalescing': 'off',
2429
'@typescript-eslint/prefer-optional-chain': 'error',
2530
'@typescript-eslint/prefer-readonly': 'error',
2631
'@typescript-eslint/prefer-readonly-parameter-types': 'off',
2732
'@typescript-eslint/prefer-reduce-type-parameter': 'error',
33+
'@typescript-eslint/prefer-return-this-type': 'error',
2834
'@typescript-eslint/prefer-string-starts-ends-with': 'error',
2935
'@typescript-eslint/switch-exhaustiveness-check': 'error',
3036
'@typescript-eslint/consistent-type-imports': 'error',

packages/eslint-config/src/subconfigs/typescript.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ export default [
2121
'error',
2222
{
2323
'ts-expect-error': 'allow-with-description',
24-
'ts-ignore': 'allow-with-description',
24+
'ts-ignore': true,
2525
'ts-nocheck': 'allow-with-description',
2626
'ts-check': false
2727
}
@@ -138,9 +138,12 @@ export default [
138138
}
139139
],
140140
'@typescript-eslint/no-dynamic-delete': 'error',
141+
'@typescript-eslint/no-empty-object-type': 'error',
141142
'@typescript-eslint/no-explicit-any': 'error',
142143
'@typescript-eslint/no-extraneous-class': 'error',
143144
'@typescript-eslint/no-invalid-void-type': 'error',
145+
'@typescript-eslint/no-unsafe-function-type': 'error',
146+
'@typescript-eslint/no-wrapper-object-types': 'error',
144147
'@typescript-eslint/no-namespace': [
145148
'error',
146149
{
@@ -159,7 +162,6 @@ export default [
159162
'@typescript-eslint/prefer-for-of': 'error',
160163
'@typescript-eslint/prefer-function-type': 'error',
161164
'@typescript-eslint/prefer-namespace-keyword': 'off',
162-
'@typescript-eslint/prefer-ts-expect-error': 'error',
163165
'@stylistic/type-annotation-spacing': 'error',
164166
'@stylistic/type-generic-spacing': 'error',
165167
'@stylistic/type-named-tuple-spacing': 'error',

0 commit comments

Comments
 (0)