@shakuroinc/eslint-config-react 6.0.3 → 6.0.4
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/.eslintrc.js +19 -15
- package/package.json +1 -1
package/.eslintrc.js
CHANGED
|
@@ -13,8 +13,6 @@ module.exports = {
|
|
|
13
13
|
|
|
14
14
|
extends: [
|
|
15
15
|
'plugin:@typescript-eslint/recommended',
|
|
16
|
-
'plugin:import/recommended',
|
|
17
|
-
'plugin:import/typescript',
|
|
18
16
|
'plugin:jsx-a11y/recommended',
|
|
19
17
|
'plugin:prettier/recommended',
|
|
20
18
|
'plugin:react/recommended',
|
|
@@ -140,7 +138,6 @@ module.exports = {
|
|
|
140
138
|
},
|
|
141
139
|
],
|
|
142
140
|
curly: ['error', 'multi-line'],
|
|
143
|
-
'import/order': 0,
|
|
144
141
|
'no-duplicate-imports': 2,
|
|
145
142
|
'no-restricted-imports': [
|
|
146
143
|
'error',
|
|
@@ -154,18 +151,6 @@ module.exports = {
|
|
|
154
151
|
],
|
|
155
152
|
},
|
|
156
153
|
],
|
|
157
|
-
'import/no-restricted-paths': [
|
|
158
|
-
'error',
|
|
159
|
-
{
|
|
160
|
-
zones: [
|
|
161
|
-
{
|
|
162
|
-
target: 'ui',
|
|
163
|
-
from: 'app',
|
|
164
|
-
message: 'Importing from `app` package is disallowed for architecture reasons',
|
|
165
|
-
},
|
|
166
|
-
],
|
|
167
|
-
},
|
|
168
|
-
],
|
|
169
154
|
'react-hooks/exhaustive-deps': 2,
|
|
170
155
|
'react-hooks/rules-of-hooks': 2,
|
|
171
156
|
'react/button-has-type': 2,
|
|
@@ -217,6 +202,25 @@ module.exports = {
|
|
|
217
202
|
},
|
|
218
203
|
|
|
219
204
|
overrides: [
|
|
205
|
+
{
|
|
206
|
+
files: ['*js?x', '*ts?x'],
|
|
207
|
+
extends: ['plugin:import/recommended', 'plugin:import/typescript'],
|
|
208
|
+
rules: {
|
|
209
|
+
'import/order': 0,
|
|
210
|
+
'import/no-restricted-paths': [
|
|
211
|
+
'error',
|
|
212
|
+
{
|
|
213
|
+
zones: [
|
|
214
|
+
{
|
|
215
|
+
target: 'ui',
|
|
216
|
+
from: 'app',
|
|
217
|
+
message: 'Importing from `app` package is disallowed for architecture reasons',
|
|
218
|
+
},
|
|
219
|
+
],
|
|
220
|
+
},
|
|
221
|
+
],
|
|
222
|
+
},
|
|
223
|
+
},
|
|
220
224
|
{
|
|
221
225
|
files: ['*.mdx', '*.md'],
|
|
222
226
|
extends: 'plugin:mdx/recommended',
|