|
1 | 1 | import { parser, plugin } from 'typescript-eslint'; |
2 | 2 |
|
3 | | -import { predicate, strict } from '../utils/conditions.mjs'; |
| 3 | +import { predicate } from '../utils/conditions.mjs'; |
4 | 4 | import { globs } from '../utils/globs.mjs'; |
5 | 5 | import { namingConvention } from '../utils/naming-convention.mjs'; |
6 | 6 |
|
@@ -74,7 +74,7 @@ function typescript(options = {}) { |
74 | 74 | '@typescript-eslint/no-duplicate-enum-values': 'error', |
75 | 75 | '@typescript-eslint/no-dynamic-delete': 'error', |
76 | 76 | '@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' }], |
78 | 78 | '@typescript-eslint/no-explicit-any': 'off', |
79 | 79 | '@typescript-eslint/no-extra-non-null-assertion': 'error', |
80 | 80 | '@typescript-eslint/no-extraneous-class': ['warn', { allowWithDecorator: true }], |
@@ -122,7 +122,7 @@ function typescript(options = {}) { |
122 | 122 | '@typescript-eslint/no-useless-empty-export': 'warn', |
123 | 123 | '@typescript-eslint/parameter-properties': 'off', |
124 | 124 | '@typescript-eslint/prefer-as-const': 'warn', |
125 | | - '@typescript-eslint/prefer-enum-initializers': strict(options, 'warn'), |
| 125 | + '@typescript-eslint/prefer-enum-initializers': 'off', |
126 | 126 | '@typescript-eslint/prefer-for-of': 'warn', |
127 | 127 | '@typescript-eslint/prefer-function-type': 'warn', |
128 | 128 | '@typescript-eslint/prefer-literal-enum-member': ['error', { allowBitwiseExpressions: true }], |
|
0 commit comments