@innovixx/eslint-config 5.0.0 → 5.0.2
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.
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import globals from 'globals';
|
|
2
|
-
import importPlugin from 'eslint-plugin-import-x';
|
|
2
|
+
import importPlugin, { createNodeResolver } from 'eslint-plugin-import-x';
|
|
3
3
|
|
|
4
4
|
/** @type {import('eslint').Linter.Config} */
|
|
5
5
|
|
|
@@ -19,16 +19,11 @@ const importRules = {
|
|
|
19
19
|
import: importPlugin,
|
|
20
20
|
},
|
|
21
21
|
settings: {
|
|
22
|
-
'import-x/resolver':
|
|
23
|
-
|
|
24
|
-
extensions: [
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
'.jsx',
|
|
28
|
-
'.js',
|
|
29
|
-
],
|
|
30
|
-
},
|
|
31
|
-
},
|
|
22
|
+
'import-x/resolver-next': [
|
|
23
|
+
createNodeResolver({
|
|
24
|
+
extensions: ['.ts', '.tsx', '.jsx', '.js'],
|
|
25
|
+
}),
|
|
26
|
+
],
|
|
32
27
|
},
|
|
33
28
|
rules: {
|
|
34
29
|
// Static analysis:
|
|
@@ -1,14 +1,17 @@
|
|
|
1
|
+
import { createNodeResolver } from 'eslint-plugin-import-x';
|
|
2
|
+
import { createTypeScriptImportResolver } from 'eslint-import-resolver-typescript';
|
|
3
|
+
|
|
1
4
|
/** @type {import('eslint').Linter.Config} */
|
|
2
5
|
|
|
3
6
|
const typeScriptSettings = {
|
|
4
7
|
settings: {
|
|
5
|
-
'import-x/resolver':
|
|
6
|
-
|
|
8
|
+
'import-x/resolver-next': [
|
|
9
|
+
createNodeResolver({
|
|
7
10
|
extensions: ['.mjs', '.js', '.jsx', '.ts', '.tsx', '.json'],
|
|
8
|
-
},
|
|
9
|
-
|
|
10
|
-
|
|
11
|
+
}),
|
|
12
|
+
createTypeScriptImportResolver(),
|
|
13
|
+
],
|
|
11
14
|
},
|
|
12
15
|
};
|
|
13
16
|
|
|
14
|
-
export default typeScriptSettings;
|
|
17
|
+
export default typeScriptSettings;
|
package/package.json
CHANGED