@shakuroinc/eslint-config-react 6.0.3 → 6.0.5

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.
Files changed (2) hide show
  1. package/.eslintrc.js +26 -16
  2. 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',
@@ -57,6 +55,12 @@ module.exports = {
57
55
  leadingUnderscore: 'forbid',
58
56
  trailingUnderscore: 'forbid',
59
57
  },
58
+ {
59
+ selector: ['default', 'variable', 'property'],
60
+ format: null,
61
+ leadingUnderscore: 'allow',
62
+ filter: '^_$',
63
+ },
60
64
  {
61
65
  selector: 'typeLike',
62
66
  format: ['PascalCase'],
@@ -67,8 +71,8 @@ module.exports = {
67
71
  },
68
72
  {
69
73
  selector: 'property',
70
- filter: '^__html$',
71
74
  format: null,
75
+ filter: '^__html$',
72
76
  },
73
77
  ],
74
78
  '@typescript-eslint/no-empty-function': 0,
@@ -140,7 +144,6 @@ module.exports = {
140
144
  },
141
145
  ],
142
146
  curly: ['error', 'multi-line'],
143
- 'import/order': 0,
144
147
  'no-duplicate-imports': 2,
145
148
  'no-restricted-imports': [
146
149
  'error',
@@ -154,18 +157,6 @@ module.exports = {
154
157
  ],
155
158
  },
156
159
  ],
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
160
  'react-hooks/exhaustive-deps': 2,
170
161
  'react-hooks/rules-of-hooks': 2,
171
162
  'react/button-has-type': 2,
@@ -217,6 +208,25 @@ module.exports = {
217
208
  },
218
209
 
219
210
  overrides: [
211
+ {
212
+ files: ['*js?x', '*ts?x'],
213
+ extends: ['plugin:import/recommended', 'plugin:import/typescript'],
214
+ rules: {
215
+ 'import/order': 0,
216
+ 'import/no-restricted-paths': [
217
+ 'error',
218
+ {
219
+ zones: [
220
+ {
221
+ target: 'ui',
222
+ from: 'app',
223
+ message: 'Importing from `app` package is disallowed for architecture reasons',
224
+ },
225
+ ],
226
+ },
227
+ ],
228
+ },
229
+ },
220
230
  {
221
231
  files: ['*.mdx', '*.md'],
222
232
  extends: 'plugin:mdx/recommended',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@shakuroinc/eslint-config-react",
3
- "version": "6.0.3",
3
+ "version": "6.0.5",
4
4
  "main": ".eslintrc.js",
5
5
  "author": "Shakuro team",
6
6
  "license": "MIT",