Skip to content

Commit 2872b1b

Browse files
AmirrezaASafaeirad
authored andcommitted
fix: update TypeScript plugin rules
1 parent 6532e9d commit 2872b1b

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/modules/typescript.mjs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { parser, plugin } from 'typescript-eslint';
22

3-
import { predicate, strict } from '../utils/conditions.mjs';
3+
import { predicate } from '../utils/conditions.mjs';
44
import { globs } from '../utils/globs.mjs';
55
import { namingConvention } from '../utils/naming-convention.mjs';
66

@@ -74,7 +74,7 @@ function typescript(options = {}) {
7474
'@typescript-eslint/no-duplicate-enum-values': 'error',
7575
'@typescript-eslint/no-dynamic-delete': 'error',
7676
'@typescript-eslint/no-empty-function': 'error',
77-
'@typescript-eslint/no-empty-object-type': 'warn',
77+
'@typescript-eslint/no-empty-object-type': ['warn', { allowInterfaces: 'with-single-extends' }],
7878
'@typescript-eslint/no-explicit-any': 'off',
7979
'@typescript-eslint/no-extra-non-null-assertion': 'error',
8080
'@typescript-eslint/no-extraneous-class': ['warn', { allowWithDecorator: true }],
@@ -122,7 +122,7 @@ function typescript(options = {}) {
122122
'@typescript-eslint/no-useless-empty-export': 'warn',
123123
'@typescript-eslint/parameter-properties': 'off',
124124
'@typescript-eslint/prefer-as-const': 'warn',
125-
'@typescript-eslint/prefer-enum-initializers': strict(options, 'warn'),
125+
'@typescript-eslint/prefer-enum-initializers': 'off',
126126
'@typescript-eslint/prefer-for-of': 'warn',
127127
'@typescript-eslint/prefer-function-type': 'warn',
128128
'@typescript-eslint/prefer-literal-enum-member': ['error', { allowBitwiseExpressions: true }],

0 commit comments

Comments
 (0)