eslint-config-typed 5.6.1 → 5.6.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,8 +1,8 @@
|
|
|
1
1
|
export declare const eslintImportsRules: {
|
|
2
2
|
readonly 'import-x/no-unresolved': "off";
|
|
3
3
|
readonly 'import-x/named': "off";
|
|
4
|
-
readonly 'import-x/default': "
|
|
5
|
-
readonly 'import-x/namespace':
|
|
4
|
+
readonly 'import-x/default': "off";
|
|
5
|
+
readonly 'import-x/namespace': "off";
|
|
6
6
|
readonly 'import-x/no-restricted-paths': "off";
|
|
7
7
|
readonly 'import-x/no-absolute-path': 2 | 1;
|
|
8
8
|
readonly 'import-x/no-dynamic-require': 2 | 1;
|
|
@@ -16,9 +16,9 @@ export declare const eslintImportsRules: {
|
|
|
16
16
|
readonly 'import-x/no-relative-parent-imports': "off";
|
|
17
17
|
readonly 'import-x/consistent-type-specifier-style': readonly ["error", "prefer-inline"];
|
|
18
18
|
readonly 'import-x/no-relative-packages': 2 | 1;
|
|
19
|
-
readonly 'import-x/export': "
|
|
19
|
+
readonly 'import-x/export': "off";
|
|
20
20
|
readonly 'import-x/no-named-as-default': "error";
|
|
21
|
-
readonly 'import-x/no-named-as-default-member': "
|
|
21
|
+
readonly 'import-x/no-named-as-default-member': "off";
|
|
22
22
|
readonly 'import-x/no-deprecated': "off";
|
|
23
23
|
readonly 'import-x/no-extraneous-dependencies': "off";
|
|
24
24
|
readonly 'import-x/no-mutable-exports': "error";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"eslint-import-rules.d.mts","sourceRoot":"","sources":["../../src/rules/eslint-import-rules.mts"],"names":[],"mappings":"AAGA,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"eslint-import-rules.d.mts","sourceRoot":"","sources":["../../src/rules/eslint-import-rules.mts"],"names":[],"mappings":"AAGA,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAuH7B;;;OAGG;;;;;;;;;;;CAuBkC,CAAC"}
|
|
@@ -4,10 +4,14 @@ import { withDefaultOption } from '../types/rule-severity-with-default-option.mj
|
|
|
4
4
|
const eslintImportsRules = {
|
|
5
5
|
// Not needed when using TypeScript.
|
|
6
6
|
'import-x/no-unresolved': 'off',
|
|
7
|
-
//
|
|
7
|
+
// The following import-x resolution rules are redundant when using TypeScript:
|
|
8
|
+
// the type-checker already reports missing named / default imports and invalid
|
|
9
|
+
// namespace member access (TS2339). They also build large ExportMaps that are
|
|
10
|
+
// slow and memory-heavy (a known cause of ESLint OOM on large codebases), so
|
|
11
|
+
// keep them off for TypeScript.
|
|
8
12
|
'import-x/named': 'off',
|
|
9
|
-
'import-x/default': '
|
|
10
|
-
'import-x/namespace':
|
|
13
|
+
'import-x/default': 'off',
|
|
14
|
+
'import-x/namespace': 'off',
|
|
11
15
|
'import-x/no-restricted-paths': 'off', // TODO
|
|
12
16
|
'import-x/no-absolute-path': withDefaultOption('error'),
|
|
13
17
|
'import-x/no-dynamic-require': withDefaultOption('error'),
|
|
@@ -44,9 +48,13 @@ const eslintImportsRules = {
|
|
|
44
48
|
'import-x/consistent-type-specifier-style': ['error', 'prefer-inline'],
|
|
45
49
|
'import-x/no-relative-packages': withDefaultOption('error'),
|
|
46
50
|
// helpfulWarnings
|
|
47
|
-
|
|
51
|
+
// Redundant with TypeScript: duplicate / conflicting exports are reported as
|
|
52
|
+
// TS2323 / TS2528.
|
|
53
|
+
'import-x/export': 'off',
|
|
48
54
|
'import-x/no-named-as-default': 'error',
|
|
49
|
-
|
|
55
|
+
// Redundant with TypeScript: accessing a named export through the default
|
|
56
|
+
// import is already a type error.
|
|
57
|
+
'import-x/no-named-as-default-member': 'off',
|
|
50
58
|
// prefer @typescript-eslint/no-deprecated (raised in import-js/eslint-plugin-import#1532)
|
|
51
59
|
'import-x/no-deprecated': 'off',
|
|
52
60
|
'import-x/no-extraneous-dependencies': 'off',
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"eslint-import-rules.mjs","sources":["../../src/rules/eslint-import-rules.mts"],"sourcesContent":[null],"names":[],"mappings":";;;AAGO,MAAM,kBAAkB,GAAG;;AAEhC,IAAA,wBAAwB,EAAE,KAAK
|
|
1
|
+
{"version":3,"file":"eslint-import-rules.mjs","sources":["../../src/rules/eslint-import-rules.mts"],"sourcesContent":[null],"names":[],"mappings":";;;AAGO,MAAM,kBAAkB,GAAG;;AAEhC,IAAA,wBAAwB,EAAE,KAAK;;;;;;AAO/B,IAAA,gBAAgB,EAAE,KAAK;AACvB,IAAA,kBAAkB,EAAE,KAAK;AACzB,IAAA,oBAAoB,EAAE,KAAK;IAC3B,8BAA8B,EAAE,KAAK;AACrC,IAAA,2BAA2B,EAAE,iBAAiB,CAAC,OAAO,CAAC;AACvD,IAAA,6BAA6B,EAAE,iBAAiB,CAAC,OAAO,CAAC;AACzD,IAAA,8BAA8B,EAAE;QAC9B,OAAO;AACP,QAAA;AACE,YAAA,KAAK,EAAE;AACL,gBAAA,CAAA,SAAA,EAAY,gBAAgB,CAAA,CAAA,CAAG;AAC/B,gBAAA,CAAA,SAAA,EAAY,gBAAgB,CAAA,CAAA,CAAG;gBAC/B,gBAAgB;gBAChB,cAAc;gBACd,8BAA8B;gBAC9B,kBAAkB;gBAClB,WAAW;gBACX,UAAU;gBACV,YAAY;gBACZ,uBAAuB;gBACvB,gBAAgB;gBAChB,iBAAiB;gBACjB,eAAe;gBACf,gBAAgB;gBAChB,yCAAyC;gBACzC,eAAe;gBACf,YAAY;AACb,aAAA;AACF,SAAA;AACF,KAAA;AACD,IAAA,mCAAmC,EAAE,OAAO;AAC5C,IAAA,yBAAyB,EAAE,OAAO;AAClC,IAAA,mBAAmB,EAAE,iBAAiB,CAAC,OAAO,CAAC;AAC/C,IAAA,mCAAmC,EAAE,i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gBACV,YAAY;AACb,aAAA;AACF,SAAA;AACF,KAAA;AACD,IAAA,2BAA2B,EAAE,KAAK;AAElC;;;AAGG;AACH,IAAA,4BAA4B,EAAE,OAAO;AACrC,IAAA,gCAAgC,EAAE,KAAK;AAEvC,IAAA,0BAA0B,EAAE,KAAK;AACjC,IAAA,sCAAsC,EAAE,iBAAiB,CAAC,OAAO,CAAC;AAClE,IAAA,wBAAwB,EAAE,KAAK;AAE/B,IAAA,mCAAmC,EAAE,KAAK;AAE1C,IAAA,gCAAgC,EAAE,OAAO;;;AAKzC,IAAA,4BAA4B,EAAE,iBAAiB,CAAC,OAAO,CAAC;;AAGxD,IAAA,kCAAkC,EAAE,KAAK;;;AAIzC,IAAA,wBAAwB,EAAE,CAAC;;;;;"}
|
package/package.json
CHANGED
|
@@ -5,11 +5,14 @@ export const eslintImportsRules = {
|
|
|
5
5
|
// Not needed when using TypeScript.
|
|
6
6
|
'import-x/no-unresolved': 'off',
|
|
7
7
|
|
|
8
|
-
//
|
|
8
|
+
// The following import-x resolution rules are redundant when using TypeScript:
|
|
9
|
+
// the type-checker already reports missing named / default imports and invalid
|
|
10
|
+
// namespace member access (TS2339). They also build large ExportMaps that are
|
|
11
|
+
// slow and memory-heavy (a known cause of ESLint OOM on large codebases), so
|
|
12
|
+
// keep them off for TypeScript.
|
|
9
13
|
'import-x/named': 'off',
|
|
10
|
-
|
|
11
|
-
'import-x/
|
|
12
|
-
'import-x/namespace': withDefaultOption('error'),
|
|
14
|
+
'import-x/default': 'off',
|
|
15
|
+
'import-x/namespace': 'off',
|
|
13
16
|
'import-x/no-restricted-paths': 'off', // TODO
|
|
14
17
|
'import-x/no-absolute-path': withDefaultOption('error'),
|
|
15
18
|
'import-x/no-dynamic-require': withDefaultOption('error'),
|
|
@@ -49,9 +52,13 @@ export const eslintImportsRules = {
|
|
|
49
52
|
'import-x/no-relative-packages': withDefaultOption('error'),
|
|
50
53
|
|
|
51
54
|
// helpfulWarnings
|
|
52
|
-
|
|
55
|
+
// Redundant with TypeScript: duplicate / conflicting exports are reported as
|
|
56
|
+
// TS2323 / TS2528.
|
|
57
|
+
'import-x/export': 'off',
|
|
53
58
|
'import-x/no-named-as-default': 'error',
|
|
54
|
-
|
|
59
|
+
// Redundant with TypeScript: accessing a named export through the default
|
|
60
|
+
// import is already a type error.
|
|
61
|
+
'import-x/no-named-as-default-member': 'off',
|
|
55
62
|
|
|
56
63
|
// prefer @typescript-eslint/no-deprecated (raised in import-js/eslint-plugin-import#1532)
|
|
57
64
|
'import-x/no-deprecated': 'off',
|