@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/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
- /** enforces no braces where they can be omitted
6
- * https://eslint.org/docs/rules/arrow-body-style */
7
- 'arrow-body-style': 'error',
8
- /** require parens in arrow function arguments
9
- * https://eslint.org/docs/rules/arrow-parens */
10
- 'arrow-parens': 'error',
11
- /** require space before/after arrow function's arrow
12
- * https://eslint.org/docs/rules/arrow-spacing */
13
- 'arrow-spacing': 'error',
14
- /** verify super() callings in constructors
15
- * https://eslint.org/docs/rules/constructor-super */
16
- 'constructor-super': 'error',
17
- /** enforce the spacing around the * in generator functions
18
- * https://eslint.org/docs/rules/generator-star-spacing */
19
- 'generator-star-spacing': ['error', { before: false, after: true }],
20
- /** disallow modifying variables of class declarations
21
- * https://eslint.org/docs/rules/no-class-assign */
22
- 'no-class-assign': 'error',
23
- /** disallow arrow functions where they could be confused with comparisons
24
- * https://eslint.org/docs/rules/no-confusing-arrow */
25
- 'no-confusing-arrow': ['error', { allowParens: true }],
26
- /** disallow modifying variables that are declared using const
27
- * https://eslint.org/docs/rules/no-const-assign */
28
- 'no-const-assign': 'error',
29
- /** disallow duplicate class members
30
- * https://eslint.org/docs/rules/no-dupe-class-members
31
- * https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/eslint-plugin/docs/rules/no-dupe-class-members.md */
32
- 'no-dupe-class-members': 'off',
33
- '@typescript-eslint/no-dupe-class-members': 'error',
34
- /** disallow importing from the same path more than once
35
- * https://eslint.org/docs/rules/no-duplicate-imports
36
- * https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/eslint-plugin/docs/rules/no-duplicate-imports.md
37
- * superceded by eslint-plugin-import */
38
- 'no-duplicate-import': 'off',
39
- 'no-duplicate-imports': 'off',
40
- '@typescript-eslint/no-duplicate-imports': 'off',
41
- /** disallow symbol constructor
42
- * https://eslint.org/docs/rules/no-new-symbol */
43
- 'no-new-symbol': 'error',
44
- /** Disallow specified names in exports
45
- * https://eslint.org/docs/rules/no-restricted-exports */
46
- 'no-restricted-exports': 'off',
47
- /** disallow specific imports
48
- * https://eslint.org/docs/rules/no-restricted-imports
49
- * https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/eslint-plugin/docs/rules/no-restricted-imports.md */
50
- 'no-restricted-imports': 'off',
51
- '@typescript-eslint/no-restricted-imports': 'off',
52
- /** disallow to use this/super before super() calling in constructors.
53
- * https://eslint.org/docs/rules/no-this-before-super */
54
- 'no-this-before-super': 'error',
55
- /** disallow useless computed property keys
56
- * https://eslint.org/docs/rules/no-useless-computed-key */
57
- 'no-useless-computed-key': 'error',
58
- /** disallow unnecessary constructor
59
- * https://eslint.org/docs/rules/no-useless-constructor
60
- * https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/eslint-plugin/docs/rules/no-useless-constructor.md */
61
- 'no-useless-constructor': 'off',
62
- '@typescript-eslint/no-useless-constructor': 'error',
63
- /** disallow renaming import, export, and destructured assignments to the same name
64
- * https://eslint.org/docs/rules/no-useless-rename */
65
- 'no-useless-rename': 'error',
66
- /** require let or const instead of var
67
- * https://eslint.org/docs/rules/no-var */
68
- 'no-var': 'error',
69
- /** require method and property shorthand syntax for object literals
70
- * https://eslint.org/docs/rules/object-shorthand */
71
- 'object-shorthand': ['error', 'always', { avoidQuotes: true }],
72
- /** suggest using arrow functions as callbacks
73
- * https://eslint.org/docs/rules/prefer-arrow-callback */
74
- 'prefer-arrow-callback': 'error',
75
- /** suggest using of const declaration for variables that are never modified after declared
76
- * https://eslint.org/docs/rules/prefer-const */
77
- 'prefer-const': ['error', { ignoreReadBeforeAssign: true }],
78
- /** Prefer destructuring from arrays and objects
79
- * https://eslint.org/docs/rules/prefer-destructuring */
80
- 'prefer-destructuring': ['error', {
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
- /** disallow parseInt() in favor of binary, octal, and hexadecimal literals
93
- * https://eslint.org/docs/rules/prefer-numeric-literals */
94
- 'prefer-numeric-literals': 'error',
95
- /** suggest using Reflect methods where applicable
96
- * https://eslint.org/docs/rules/prefer-reflect */
97
- 'prefer-reflect': 'off',
98
- /** use rest parameters instead of arguments
99
- * https://eslint.org/docs/rules/prefer-rest-params */
100
- 'prefer-rest-params': 'error',
101
- /** suggest using the spread syntax instead of .apply()
102
- * https://eslint.org/docs/rules/prefer-spread */
103
- 'prefer-spread': 'error',
104
- /** suggest using template literals instead of string concatenation
105
- * https://eslint.org/docs/rules/prefer-template */
106
- 'prefer-template': 'error',
107
- /** disallow generator functions that do not have yield
108
- * https://eslint.org/docs/rules/require-yield */
109
- 'require-yield': 'error',
110
- /** enforce spacing between object rest-spread
111
- * https://eslint.org/docs/rules/rest-spread-spacing */
112
- 'rest-spread-spacing': 'error',
113
- /** import sorting
114
- * https://eslint.org/docs/rules/sort-imports */
115
- 'sort-imports': 'off',
116
- /** require a Symbol description
117
- * https://eslint.org/docs/rules/symbol-description */
118
- 'symbol-description': 'error',
119
- /** enforce usage of spacing in template strings
120
- * https://eslint.org/docs/rules/template-curly-spacing */
121
- 'template-curly-spacing': 'error',
122
- /** enforce spacing around the * in yield* expressions
123
- * https://eslint.org/docs/rules/yield-star-spacing */
124
- 'yield-star-spacing': 'error',
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
- /** Report any invalid exports, i.e. re-export of the same name
6
- * https://github.com/import-js/eslint-plugin-import/blob/main/docs/rules/export.md */
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
- /** Report use of exported name as identifier of default export
9
- * https://github.com/import-js/eslint-plugin-import/blob/main/docs/rules/no-named-as-default.md */
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
- /** Report use of exported name as property of default export
12
- * https://github.com/import-js/eslint-plugin-import/blob/main/docs/rules/no-named-as-default-member.md */
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
- /** Report imported names marked with `@deprecated` documentation tag
15
- * https://github.com/import-js/eslint-plugin-import/blob/main/docs/rules/no-deprecated.md */
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
- /** Forbid the use of extraneous packages
18
- * https://github.com/import-js/eslint-plugin-import/blob/main/docs/rules/no-extraneous-dependencies.md */
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
- /** Forbid the use of mutable exports with `var` or `let`.
21
- * https://github.com/import-js/eslint-plugin-import/blob/main/docs/rules/no-mutable-exports.md */
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
- /** Report modules without exports, or exports without matching import in another module
24
- * https://github.com/import-js/eslint-plugin-import/blob/main/docs/rules/no-unused-modules.md */
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
- /** Report potentially ambiguous parse goal (`script` vs. `module`)
6
- * https://github.com/import-js/eslint-plugin-import/blob/main/docs/rules/unambiguous.md */
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
- /** Report CommonJS `require` calls and `module.exports` or `exports.*`.
9
- * https://github.com/import-js/eslint-plugin-import/blob/main/docs/rules/no-commonjs.md */
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
- /** Report AMD `require` and `define` calls.
12
- * https://github.com/import-js/eslint-plugin-import/blob/main/docs/rules/no-amd.md */
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
- /** No Node.js builtin modules.
15
- * https://github.com/import-js/eslint-plugin-import/blob/main/docs/rules/no-nodejs-modules.md */
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
- /** Forbid imports with CommonJS exports
18
- * https://github.com/import-js/eslint-plugin-import/blob/main/docs/rules/no-import-module-exports.md */
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
- /** Ensure imports point to a file/module that can be resolved.
6
- * https://github.com/import-js/eslint-plugin-import/blob/main/docs/rules/no-unresolved.md */
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
- /** Ensure named imports correspond to a named export in the remote file.
9
- * https://github.com/import-js/eslint-plugin-import/blob/main/docs/rules/named.md */
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
- /** Ensure a default export is present, given a default import.
12
- * https://github.com/import-js/eslint-plugin-import/blob/main/docs/rules/default.md */
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
- /** Ensure imported namespaces contain dereferenced properties as they are dereferenced.
15
- * https://github.com/import-js/eslint-plugin-import/blob/main/docs/rules/namespace.md */
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
- /** Restrict which files can be imported in a given folder
18
- * https://github.com/import-js/eslint-plugin-import/blob/main/docs/rules/no-restricted-paths.md */
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
- /** Forbid import of modules using absolute paths
21
- * https://github.com/import-js/eslint-plugin-import/blob/main/docs/rules/no-absolute-path.md */
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
- /** Forbid `require()` calls with expressions
24
- * https://github.com/import-js/eslint-plugin-import/blob/main/docs/rules/no-dynamic-require.md */
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
- /** Prevent importing the submodules of other modules
27
- * https://github.com/import-js/eslint-plugin-import/blob/main/docs/rules/no-internal-modules.md */
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
- /** Forbid webpack loader syntax in imports
30
- * https://github.com/import-js/eslint-plugin-import/blob/main/docs/rules/no-webpack-loader-syntax.md */
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
- /** Forbid a module from importing itself
33
- * https://github.com/import-js/eslint-plugin-import/blob/main/docs/rules/no-self-import.md */
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
- /** Forbid a module from importing a module with a dependency path back to itself
36
- * https://github.com/import-js/eslint-plugin-import/blob/main/docs/rules/no-cycle.md */
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
- /** Prevent unnecessary path segments in import and require statements
39
- * https://github.com/import-js/eslint-plugin-import/blob/main/docs/rules/no-useless-path-segments.md */
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
- /** Forbid importing modules from parent directories
42
- * https://github.com/import-js/eslint-plugin-import/blob/main/docs/rules/no-relative-parent-imports.md */
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
- /** Prevent importing packages through relative paths
45
- * https://github.com/import-js/eslint-plugin-import/blob/main/docs/rules/no-relative-packages.md */
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
  };