@spscommerce/eslint-config-typescript 0.0.2 → 0.0.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/lib/index.js +11 -15
- package/lib/rules/bestPractices.js +487 -309
- package/lib/rules/es6.js +181 -110
- package/lib/rules/imports/helpfulWarnings.js +28 -14
- package/lib/rules/imports/moduleSystems.js +20 -10
- package/lib/rules/imports/staticAnalysis.js +56 -28
- package/lib/rules/imports/styleGuide.js +64 -32
- package/lib/rules/possibleErrors.js +231 -142
- package/lib/rules/strictMode.js +6 -3
- package/lib/rules/stylisticIssues.js +525 -327
- package/lib/rules/typescript.js +431 -250
- package/lib/rules/variables.js +74 -49
- package/package.json +10 -6
package/lib/rules/es6.js
CHANGED
|
@@ -1,83 +1,131 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.es6 = void 0;
|
|
4
|
+
// ✅ = recommended, 🔧 = fixable
|
|
4
5
|
exports.es6 = {
|
|
5
|
-
/**
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
/**
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
/**
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
/**
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
/**
|
|
79
|
-
|
|
80
|
-
|
|
6
|
+
/**
|
|
7
|
+
* enforces no braces where they can be omitted 🔧
|
|
8
|
+
* https://eslint.org/docs/rules/arrow-body-style
|
|
9
|
+
*/
|
|
10
|
+
"arrow-body-style": "error",
|
|
11
|
+
/**
|
|
12
|
+
* require parens in arrow function arguments 🔧
|
|
13
|
+
* https://eslint.org/docs/rules/arrow-parens
|
|
14
|
+
*/
|
|
15
|
+
"arrow-parens": "error",
|
|
16
|
+
/**
|
|
17
|
+
* require space before/after arrow function's arrow 🔧
|
|
18
|
+
* https://eslint.org/docs/rules/arrow-spacing
|
|
19
|
+
*/
|
|
20
|
+
"arrow-spacing": "error",
|
|
21
|
+
/**
|
|
22
|
+
* verify super() callings in constructors ✅
|
|
23
|
+
* https://eslint.org/docs/rules/constructor-super
|
|
24
|
+
*/
|
|
25
|
+
"constructor-super": "error",
|
|
26
|
+
/**
|
|
27
|
+
* enforce the spacing around the * in generator functions 🔧
|
|
28
|
+
* https://eslint.org/docs/rules/generator-star-spacing
|
|
29
|
+
*/
|
|
30
|
+
"generator-star-spacing": ["error", { before: false, after: true }],
|
|
31
|
+
/**
|
|
32
|
+
* disallow modifying variables of class declarations ✅
|
|
33
|
+
* https://eslint.org/docs/rules/no-class-assign
|
|
34
|
+
*/
|
|
35
|
+
"no-class-assign": "error",
|
|
36
|
+
/**
|
|
37
|
+
* disallow arrow functions where they could be confused with comparisons 🔧
|
|
38
|
+
* https://eslint.org/docs/rules/no-confusing-arrow
|
|
39
|
+
*/
|
|
40
|
+
"no-confusing-arrow": ["error", { allowParens: true }],
|
|
41
|
+
/**
|
|
42
|
+
* disallow modifying variables that are declared using const ✅
|
|
43
|
+
* https://eslint.org/docs/rules/no-const-assign
|
|
44
|
+
*/
|
|
45
|
+
"no-const-assign": "error",
|
|
46
|
+
/**
|
|
47
|
+
* disallow duplicate class members ✅
|
|
48
|
+
* https://eslint.org/docs/rules/no-dupe-class-members
|
|
49
|
+
* https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/eslint-plugin/docs/rules/no-dupe-class-members.md
|
|
50
|
+
*/
|
|
51
|
+
"no-dupe-class-members": "off",
|
|
52
|
+
"@typescript-eslint/no-dupe-class-members": "error",
|
|
53
|
+
/**
|
|
54
|
+
* disallow importing from the same path more than once
|
|
55
|
+
* https://eslint.org/docs/rules/no-duplicate-imports
|
|
56
|
+
* https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/eslint-plugin/docs/rules/no-duplicate-imports.md
|
|
57
|
+
* superceded by eslint-plugin-import
|
|
58
|
+
*/
|
|
59
|
+
"no-duplicate-import": "off",
|
|
60
|
+
"no-duplicate-imports": "off",
|
|
61
|
+
"@typescript-eslint/no-duplicate-imports": "off",
|
|
62
|
+
/**
|
|
63
|
+
* disallow symbol constructor ✅
|
|
64
|
+
* https://eslint.org/docs/rules/no-new-symbol
|
|
65
|
+
*/
|
|
66
|
+
"no-new-symbol": "error",
|
|
67
|
+
/**
|
|
68
|
+
* Disallow specified names in exports
|
|
69
|
+
* https://eslint.org/docs/rules/no-restricted-exports
|
|
70
|
+
*/
|
|
71
|
+
"no-restricted-exports": "off",
|
|
72
|
+
/**
|
|
73
|
+
* disallow specific imports
|
|
74
|
+
* https://eslint.org/docs/rules/no-restricted-imports
|
|
75
|
+
* https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/eslint-plugin/docs/rules/no-restricted-imports.md
|
|
76
|
+
*/
|
|
77
|
+
"no-restricted-imports": "off",
|
|
78
|
+
"@typescript-eslint/no-restricted-imports": "off",
|
|
79
|
+
/**
|
|
80
|
+
* disallow to use this/super before super() calling in constructors. ✅
|
|
81
|
+
* https://eslint.org/docs/rules/no-this-before-super
|
|
82
|
+
*/
|
|
83
|
+
"no-this-before-super": "error",
|
|
84
|
+
/**
|
|
85
|
+
* disallow useless computed property keys 🔧
|
|
86
|
+
* https://eslint.org/docs/rules/no-useless-computed-key
|
|
87
|
+
*/
|
|
88
|
+
"no-useless-computed-key": "error",
|
|
89
|
+
/**
|
|
90
|
+
* disallow unnecessary constructor
|
|
91
|
+
* https://eslint.org/docs/rules/no-useless-constructor
|
|
92
|
+
* https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/eslint-plugin/docs/rules/no-useless-constructor.md
|
|
93
|
+
*/
|
|
94
|
+
"no-useless-constructor": "off",
|
|
95
|
+
"@typescript-eslint/no-useless-constructor": "error",
|
|
96
|
+
/**
|
|
97
|
+
* disallow renaming import, export, and destructured assignments to the same name 🔧
|
|
98
|
+
* https://eslint.org/docs/rules/no-useless-rename
|
|
99
|
+
*/
|
|
100
|
+
"no-useless-rename": "error",
|
|
101
|
+
/**
|
|
102
|
+
* require let or const instead of var 🔧
|
|
103
|
+
* https://eslint.org/docs/rules/no-var
|
|
104
|
+
*/
|
|
105
|
+
"no-var": "error",
|
|
106
|
+
/**
|
|
107
|
+
* require method and property shorthand syntax for object literals 🔧
|
|
108
|
+
* https://eslint.org/docs/rules/object-shorthand
|
|
109
|
+
*/
|
|
110
|
+
"object-shorthand": ["error",
|
|
111
|
+
"always",
|
|
112
|
+
{ avoidQuotes: true }],
|
|
113
|
+
/**
|
|
114
|
+
* suggest using arrow functions as callbacks 🔧
|
|
115
|
+
* https://eslint.org/docs/rules/prefer-arrow-callback
|
|
116
|
+
*/
|
|
117
|
+
"prefer-arrow-callback": "error",
|
|
118
|
+
/**
|
|
119
|
+
* suggest using of const declaration for variables that are never modified after declared 🔧
|
|
120
|
+
* https://eslint.org/docs/rules/prefer-const
|
|
121
|
+
*/
|
|
122
|
+
"prefer-const": ["error", { ignoreReadBeforeAssign: true }],
|
|
123
|
+
/**
|
|
124
|
+
* Prefer destructuring from arrays and objects 🔧
|
|
125
|
+
* https://eslint.org/docs/rules/prefer-destructuring
|
|
126
|
+
*/
|
|
127
|
+
"prefer-destructuring": ["error",
|
|
128
|
+
{
|
|
81
129
|
VariableDeclarator: {
|
|
82
130
|
array: false,
|
|
83
131
|
object: true,
|
|
@@ -86,40 +134,63 @@ exports.es6 = {
|
|
|
86
134
|
array: true,
|
|
87
135
|
object: false,
|
|
88
136
|
},
|
|
89
|
-
},
|
|
137
|
+
},
|
|
138
|
+
{
|
|
90
139
|
enforceForRenamedProperties: false,
|
|
91
140
|
}],
|
|
92
|
-
/**
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
/**
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
/**
|
|
123
|
-
|
|
124
|
-
|
|
141
|
+
/**
|
|
142
|
+
* disallow parseInt() in favor of binary, octal, and hexadecimal literals 🔧
|
|
143
|
+
* https://eslint.org/docs/rules/prefer-numeric-literals
|
|
144
|
+
*/
|
|
145
|
+
"prefer-numeric-literals": "error",
|
|
146
|
+
/**
|
|
147
|
+
* suggest using Reflect methods where applicable
|
|
148
|
+
* https://eslint.org/docs/rules/prefer-reflect
|
|
149
|
+
*/
|
|
150
|
+
"prefer-reflect": "off",
|
|
151
|
+
/**
|
|
152
|
+
* use rest parameters instead of arguments
|
|
153
|
+
* https://eslint.org/docs/rules/prefer-rest-params
|
|
154
|
+
*/
|
|
155
|
+
"prefer-rest-params": "error",
|
|
156
|
+
/**
|
|
157
|
+
* suggest using the spread syntax instead of .apply()
|
|
158
|
+
* https://eslint.org/docs/rules/prefer-spread
|
|
159
|
+
*/
|
|
160
|
+
"prefer-spread": "error",
|
|
161
|
+
/**
|
|
162
|
+
* suggest using template literals instead of string concatenation 🔧
|
|
163
|
+
* https://eslint.org/docs/rules/prefer-template
|
|
164
|
+
*/
|
|
165
|
+
"prefer-template": "error",
|
|
166
|
+
/**
|
|
167
|
+
* disallow generator functions that do not have yield ✅
|
|
168
|
+
* https://eslint.org/docs/rules/require-yield
|
|
169
|
+
*/
|
|
170
|
+
"require-yield": "error",
|
|
171
|
+
/**
|
|
172
|
+
* enforce spacing between object rest-spread 🔧
|
|
173
|
+
* https://eslint.org/docs/rules/rest-spread-spacing
|
|
174
|
+
*/
|
|
175
|
+
"rest-spread-spacing": "error",
|
|
176
|
+
/**
|
|
177
|
+
* import sorting 🔧
|
|
178
|
+
* https://eslint.org/docs/rules/sort-imports
|
|
179
|
+
*/
|
|
180
|
+
"sort-imports": "off",
|
|
181
|
+
/**
|
|
182
|
+
* require a Symbol description
|
|
183
|
+
* https://eslint.org/docs/rules/symbol-description
|
|
184
|
+
*/
|
|
185
|
+
"symbol-description": "error",
|
|
186
|
+
/**
|
|
187
|
+
* enforce usage of spacing in template strings 🔧
|
|
188
|
+
* https://eslint.org/docs/rules/template-curly-spacing
|
|
189
|
+
*/
|
|
190
|
+
"template-curly-spacing": "error",
|
|
191
|
+
/**
|
|
192
|
+
* enforce spacing around the * in yield* expressions 🔧
|
|
193
|
+
* https://eslint.org/docs/rules/yield-star-spacing
|
|
194
|
+
*/
|
|
195
|
+
"yield-star-spacing": "error",
|
|
125
196
|
};
|
|
@@ -2,25 +2,39 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.helpfulWarnings = void 0;
|
|
4
4
|
exports.helpfulWarnings = {
|
|
5
|
-
/**
|
|
6
|
-
*
|
|
5
|
+
/**
|
|
6
|
+
* Report any invalid exports, i.e. re-export of the same name
|
|
7
|
+
* https://github.com/import-js/eslint-plugin-import/blob/main/docs/rules/export.md
|
|
8
|
+
*/
|
|
7
9
|
"import/export": "warn",
|
|
8
|
-
/**
|
|
9
|
-
*
|
|
10
|
+
/**
|
|
11
|
+
* Report use of exported name as identifier of default export
|
|
12
|
+
* https://github.com/import-js/eslint-plugin-import/blob/main/docs/rules/no-named-as-default.md
|
|
13
|
+
*/
|
|
10
14
|
"import/no-named-as-default": "warn",
|
|
11
|
-
/**
|
|
12
|
-
*
|
|
15
|
+
/**
|
|
16
|
+
* Report use of exported name as property of default export
|
|
17
|
+
* https://github.com/import-js/eslint-plugin-import/blob/main/docs/rules/no-named-as-default-member.md
|
|
18
|
+
*/
|
|
13
19
|
"import/no-named-as-default-member": "warn",
|
|
14
|
-
/**
|
|
15
|
-
*
|
|
20
|
+
/**
|
|
21
|
+
* Report imported names marked with `@deprecated` documentation tag
|
|
22
|
+
* https://github.com/import-js/eslint-plugin-import/blob/main/docs/rules/no-deprecated.md
|
|
23
|
+
*/
|
|
16
24
|
"import/no-deprecated": "warn",
|
|
17
|
-
/**
|
|
18
|
-
*
|
|
25
|
+
/**
|
|
26
|
+
* Forbid the use of extraneous packages
|
|
27
|
+
* https://github.com/import-js/eslint-plugin-import/blob/main/docs/rules/no-extraneous-dependencies.md
|
|
28
|
+
*/
|
|
19
29
|
"import/no-extraneous-dependencies": "warn",
|
|
20
|
-
/**
|
|
21
|
-
*
|
|
30
|
+
/**
|
|
31
|
+
* Forbid the use of mutable exports with `var` or `let`.
|
|
32
|
+
* https://github.com/import-js/eslint-plugin-import/blob/main/docs/rules/no-mutable-exports.md
|
|
33
|
+
*/
|
|
22
34
|
"import/no-mutable-exports": "error",
|
|
23
|
-
/**
|
|
24
|
-
*
|
|
35
|
+
/**
|
|
36
|
+
* Report modules without exports, or exports without matching import in another module
|
|
37
|
+
* https://github.com/import-js/eslint-plugin-import/blob/main/docs/rules/no-unused-modules.md
|
|
38
|
+
*/
|
|
25
39
|
"import/no-unused-modules": "warn",
|
|
26
40
|
};
|
|
@@ -2,19 +2,29 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.moduleSystems = void 0;
|
|
4
4
|
exports.moduleSystems = {
|
|
5
|
-
/**
|
|
6
|
-
*
|
|
5
|
+
/**
|
|
6
|
+
* Report potentially ambiguous parse goal (`script` vs. `module`)
|
|
7
|
+
* https://github.com/import-js/eslint-plugin-import/blob/main/docs/rules/unambiguous.md
|
|
8
|
+
*/
|
|
7
9
|
"import/unambiguous": "error",
|
|
8
|
-
/**
|
|
9
|
-
*
|
|
10
|
+
/**
|
|
11
|
+
* Report CommonJS `require` calls and `module.exports` or `exports.*`.
|
|
12
|
+
* https://github.com/import-js/eslint-plugin-import/blob/main/docs/rules/no-commonjs.md
|
|
13
|
+
*/
|
|
10
14
|
"import/no-commonjs": "error",
|
|
11
|
-
/**
|
|
12
|
-
*
|
|
15
|
+
/**
|
|
16
|
+
* Report AMD `require` and `define` calls.
|
|
17
|
+
* https://github.com/import-js/eslint-plugin-import/blob/main/docs/rules/no-amd.md
|
|
18
|
+
*/
|
|
13
19
|
"import/no-amd": "error",
|
|
14
|
-
/**
|
|
15
|
-
*
|
|
20
|
+
/**
|
|
21
|
+
* No Node.js builtin modules.
|
|
22
|
+
* https://github.com/import-js/eslint-plugin-import/blob/main/docs/rules/no-nodejs-modules.md
|
|
23
|
+
*/
|
|
16
24
|
"import/no-nodejs-modules": "error",
|
|
17
|
-
/**
|
|
18
|
-
*
|
|
25
|
+
/**
|
|
26
|
+
* Forbid imports with CommonJS exports
|
|
27
|
+
* https://github.com/import-js/eslint-plugin-import/blob/main/docs/rules/no-import-module-exports.md
|
|
28
|
+
*/
|
|
19
29
|
"import/no-import-module-exports": "error",
|
|
20
30
|
};
|
|
@@ -2,46 +2,74 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.staticAnalysis = void 0;
|
|
4
4
|
exports.staticAnalysis = {
|
|
5
|
-
/**
|
|
6
|
-
*
|
|
5
|
+
/**
|
|
6
|
+
* Ensure imports point to a file/module that can be resolved.
|
|
7
|
+
* https://github.com/import-js/eslint-plugin-import/blob/main/docs/rules/no-unresolved.md
|
|
8
|
+
*/
|
|
7
9
|
"import/no-unresolved": "error",
|
|
8
|
-
/**
|
|
9
|
-
*
|
|
10
|
+
/**
|
|
11
|
+
* Ensure named imports correspond to a named export in the remote file.
|
|
12
|
+
* https://github.com/import-js/eslint-plugin-import/blob/main/docs/rules/named.md
|
|
13
|
+
*/
|
|
10
14
|
"import/named": "error",
|
|
11
|
-
/**
|
|
12
|
-
*
|
|
15
|
+
/**
|
|
16
|
+
* Ensure a default export is present, given a default import.
|
|
17
|
+
* https://github.com/import-js/eslint-plugin-import/blob/main/docs/rules/default.md
|
|
18
|
+
*/
|
|
13
19
|
"import/default": "error",
|
|
14
|
-
/**
|
|
15
|
-
*
|
|
20
|
+
/**
|
|
21
|
+
* Ensure imported namespaces contain dereferenced properties as they are dereferenced.
|
|
22
|
+
* https://github.com/import-js/eslint-plugin-import/blob/main/docs/rules/namespace.md
|
|
23
|
+
*/
|
|
16
24
|
"import/namespace": "error",
|
|
17
|
-
/**
|
|
18
|
-
*
|
|
25
|
+
/**
|
|
26
|
+
* Restrict which files can be imported in a given folder
|
|
27
|
+
* https://github.com/import-js/eslint-plugin-import/blob/main/docs/rules/no-restricted-paths.md
|
|
28
|
+
*/
|
|
19
29
|
"import/no-restricted-paths": "error",
|
|
20
|
-
/**
|
|
21
|
-
*
|
|
30
|
+
/**
|
|
31
|
+
* Forbid import of modules using absolute paths
|
|
32
|
+
* https://github.com/import-js/eslint-plugin-import/blob/main/docs/rules/no-absolute-path.md
|
|
33
|
+
*/
|
|
22
34
|
"import/no-absolute-path": "error",
|
|
23
|
-
/**
|
|
24
|
-
*
|
|
35
|
+
/**
|
|
36
|
+
* Forbid `require()` calls with expressions
|
|
37
|
+
* https://github.com/import-js/eslint-plugin-import/blob/main/docs/rules/no-dynamic-require.md
|
|
38
|
+
*/
|
|
25
39
|
"import/no-dynamic-require": "error",
|
|
26
|
-
/**
|
|
27
|
-
*
|
|
40
|
+
/**
|
|
41
|
+
* Prevent importing the submodules of other modules
|
|
42
|
+
* https://github.com/import-js/eslint-plugin-import/blob/main/docs/rules/no-internal-modules.md
|
|
43
|
+
*/
|
|
28
44
|
"import/no-internal-modules": "off",
|
|
29
|
-
/**
|
|
30
|
-
*
|
|
45
|
+
/**
|
|
46
|
+
* Forbid webpack loader syntax in imports
|
|
47
|
+
* https://github.com/import-js/eslint-plugin-import/blob/main/docs/rules/no-webpack-loader-syntax.md
|
|
48
|
+
*/
|
|
31
49
|
"import/no-webpack-loader-syntax": "error",
|
|
32
|
-
/**
|
|
33
|
-
*
|
|
50
|
+
/**
|
|
51
|
+
* Forbid a module from importing itself
|
|
52
|
+
* https://github.com/import-js/eslint-plugin-import/blob/main/docs/rules/no-self-import.md
|
|
53
|
+
*/
|
|
34
54
|
"import/no-self-import": "error",
|
|
35
|
-
/**
|
|
36
|
-
*
|
|
55
|
+
/**
|
|
56
|
+
* Forbid a module from importing a module with a dependency path back to itself
|
|
57
|
+
* https://github.com/import-js/eslint-plugin-import/blob/main/docs/rules/no-cycle.md
|
|
58
|
+
*/
|
|
37
59
|
"import/no-cycle": "error",
|
|
38
|
-
/**
|
|
39
|
-
*
|
|
60
|
+
/**
|
|
61
|
+
* Prevent unnecessary path segments in import and require statements
|
|
62
|
+
* https://github.com/import-js/eslint-plugin-import/blob/main/docs/rules/no-useless-path-segments.md
|
|
63
|
+
*/
|
|
40
64
|
"import/no-useless-path-segments": "error",
|
|
41
|
-
/**
|
|
42
|
-
*
|
|
65
|
+
/**
|
|
66
|
+
* Forbid importing modules from parent directories
|
|
67
|
+
* https://github.com/import-js/eslint-plugin-import/blob/main/docs/rules/no-relative-parent-imports.md
|
|
68
|
+
*/
|
|
43
69
|
"import/no-relative-parent-imports": "off",
|
|
44
|
-
/**
|
|
45
|
-
*
|
|
70
|
+
/**
|
|
71
|
+
* Prevent importing packages through relative paths
|
|
72
|
+
* https://github.com/import-js/eslint-plugin-import/blob/main/docs/rules/no-relative-packages.md
|
|
73
|
+
*/
|
|
46
74
|
"import/no-relative-packages": "off",
|
|
47
75
|
};
|