@shelf/eslint-config 5.3.2 → 5.3.3
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 +13 -1
package/package.json
CHANGED
package/typescript.js
CHANGED
|
@@ -28,6 +28,7 @@ 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'];
|
|
31
32
|
const compat = new FlatCompat({
|
|
32
33
|
baseDirectory: __dirname,
|
|
33
34
|
recommendedConfig: js.configs.recommended,
|
|
@@ -106,7 +107,6 @@ export default [
|
|
|
106
107
|
'new-cap': 'error',
|
|
107
108
|
'no-extend-native': 'error',
|
|
108
109
|
'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,6 +139,18 @@ 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
|
+
},
|
|
142
154
|
overrides.allowRequireInConfigs,
|
|
143
155
|
overrides.noExplicitsInTests,
|
|
144
156
|
overrides.noCastWithJestMock,
|