@shelf/eslint-config 5.3.3 → 5.3.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/typescript.js +1 -13
package/package.json
CHANGED
package/typescript.js
CHANGED
|
@@ -28,7 +28,6 @@ import overrides from './common/overrides.js';
|
|
|
28
28
|
|
|
29
29
|
const __filename = fileURLToPath(import.meta.url);
|
|
30
30
|
const __dirname = path.dirname(__filename);
|
|
31
|
-
const tsFiles = ['**/*.ts', '**/*.tsx', '**/*.mts', '**/*.cts'];
|
|
32
31
|
const compat = new FlatCompat({
|
|
33
32
|
baseDirectory: __dirname,
|
|
34
33
|
recommendedConfig: js.configs.recommended,
|
|
@@ -107,6 +106,7 @@ export default [
|
|
|
107
106
|
'new-cap': 'error',
|
|
108
107
|
'no-extend-native': 'error',
|
|
109
108
|
'no-use-before-define': 'off',
|
|
109
|
+
...consistentTypeImports,
|
|
110
110
|
'@stylistic/multiline-comment-style': ['error', 'separate-lines'],
|
|
111
111
|
'arrow-body-style': [
|
|
112
112
|
'error',
|
|
@@ -139,18 +139,6 @@ export default [
|
|
|
139
139
|
],
|
|
140
140
|
},
|
|
141
141
|
},
|
|
142
|
-
{
|
|
143
|
-
files: tsFiles,
|
|
144
|
-
languageOptions: {
|
|
145
|
-
parserOptions: {
|
|
146
|
-
projectService: true,
|
|
147
|
-
tsconfigRootDir: process.cwd(),
|
|
148
|
-
},
|
|
149
|
-
},
|
|
150
|
-
rules: {
|
|
151
|
-
...consistentTypeImports,
|
|
152
|
-
},
|
|
153
|
-
},
|
|
154
142
|
overrides.allowRequireInConfigs,
|
|
155
143
|
overrides.noExplicitsInTests,
|
|
156
144
|
overrides.noCastWithJestMock,
|