@mikey-pro/eslint-config 7.0.3 → 7.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.
- package/index.js +55 -34
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -14,6 +14,7 @@ module.exports = {
|
|
|
14
14
|
'plugin:compat/recommended',
|
|
15
15
|
'plugin:css-modules/recommended',
|
|
16
16
|
'plugin:prettier/recommended',
|
|
17
|
+
'plugin:import/recommended',
|
|
17
18
|
],
|
|
18
19
|
ignorePatterns: [
|
|
19
20
|
'**/dist/**/*',
|
|
@@ -37,6 +38,7 @@ module.exports = {
|
|
|
37
38
|
extends: [
|
|
38
39
|
'plugin:@typescript-eslint/recommended',
|
|
39
40
|
'plugin:@typescript-eslint/recommended-requiring-type-checking',
|
|
41
|
+
'plugin:import/typescript',
|
|
40
42
|
],
|
|
41
43
|
files: ['*.ts', '*.tsx'],
|
|
42
44
|
parser: '@typescript-eslint/parser',
|
|
@@ -54,13 +56,19 @@ module.exports = {
|
|
|
54
56
|
rules: {
|
|
55
57
|
'@typescript-eslint/unbound-method': 0,
|
|
56
58
|
'@typescript-eslint/naming-convention': 0,
|
|
57
|
-
|
|
58
|
-
'import/named': 0,
|
|
59
|
-
'import/namespace': 0,
|
|
60
|
-
'import/no-named-as-default-member': 0,
|
|
61
|
-
'import/no-unresolved': 0,
|
|
59
|
+
|
|
62
60
|
'prettier/prettier': [1, { parser: 'typescript' }],
|
|
63
61
|
},
|
|
62
|
+
settings: {
|
|
63
|
+
'import/parsers': {
|
|
64
|
+
'@typescript-eslint/parser': ['.ts', '.tsx'],
|
|
65
|
+
},
|
|
66
|
+
'import/resolver': {
|
|
67
|
+
typescript: {
|
|
68
|
+
alwaysTryTypes: true,
|
|
69
|
+
},
|
|
70
|
+
},
|
|
71
|
+
},
|
|
64
72
|
},
|
|
65
73
|
{
|
|
66
74
|
files: ['*.css'],
|
|
@@ -106,6 +114,43 @@ module.exports = {
|
|
|
106
114
|
'prettier/prettier': [1, { parser: 'markdown' }],
|
|
107
115
|
},
|
|
108
116
|
},
|
|
117
|
+
{
|
|
118
|
+
files: ['package.json'],
|
|
119
|
+
rules: {
|
|
120
|
+
'prettier/prettier': [1, { parser: 'json' }],
|
|
121
|
+
},
|
|
122
|
+
settings: {
|
|
123
|
+
'json/json-with-comments-files': [],
|
|
124
|
+
'json/package-json-sort-order': [
|
|
125
|
+
'name',
|
|
126
|
+
'version',
|
|
127
|
+
'description',
|
|
128
|
+
'private',
|
|
129
|
+
'main',
|
|
130
|
+
'type',
|
|
131
|
+
'types',
|
|
132
|
+
'typings',
|
|
133
|
+
'browser',
|
|
134
|
+
'engines',
|
|
135
|
+
'scripts',
|
|
136
|
+
'husky',
|
|
137
|
+
'dependencies',
|
|
138
|
+
'devDependencies',
|
|
139
|
+
'peerDependencies',
|
|
140
|
+
'files',
|
|
141
|
+
'bin',
|
|
142
|
+
'productName',
|
|
143
|
+
'homepage',
|
|
144
|
+
'repository',
|
|
145
|
+
'bugs',
|
|
146
|
+
'license',
|
|
147
|
+
'keywords',
|
|
148
|
+
'author',
|
|
149
|
+
'contributors',
|
|
150
|
+
'funding',
|
|
151
|
+
],
|
|
152
|
+
},
|
|
153
|
+
},
|
|
109
154
|
{
|
|
110
155
|
files: ['*.md.json'],
|
|
111
156
|
rules: {
|
|
@@ -186,6 +231,7 @@ module.exports = {
|
|
|
186
231
|
'unicorn',
|
|
187
232
|
'only-warn',
|
|
188
233
|
'@cypress/json',
|
|
234
|
+
'import',
|
|
189
235
|
],
|
|
190
236
|
root: true,
|
|
191
237
|
rules: {
|
|
@@ -196,6 +242,10 @@ module.exports = {
|
|
|
196
242
|
'func-names': 0,
|
|
197
243
|
'import/extensions': [1, 'never', { ignorePackages: true }],
|
|
198
244
|
'import/no-commonjs': 0,
|
|
245
|
+
'import/default': 0,
|
|
246
|
+
'import/named': 0,
|
|
247
|
+
'import/namespace': 0,
|
|
248
|
+
'import/no-named-as-default-member': 0,
|
|
199
249
|
'import/no-unresolved': [
|
|
200
250
|
1,
|
|
201
251
|
{ amd: true, commonjs: true, ignore: ['^node:'] },
|
|
@@ -347,34 +397,5 @@ module.exports = {
|
|
|
347
397
|
jest: {
|
|
348
398
|
version: 29,
|
|
349
399
|
},
|
|
350
|
-
'json/json-with-comments-files': [],
|
|
351
|
-
'json/package-json-sort-order': [
|
|
352
|
-
'name',
|
|
353
|
-
'version',
|
|
354
|
-
'description',
|
|
355
|
-
'private',
|
|
356
|
-
'main',
|
|
357
|
-
'type',
|
|
358
|
-
'types',
|
|
359
|
-
'typings',
|
|
360
|
-
'browser',
|
|
361
|
-
'engines',
|
|
362
|
-
'scripts',
|
|
363
|
-
'husky',
|
|
364
|
-
'dependencies',
|
|
365
|
-
'devDependencies',
|
|
366
|
-
'peerDependencies',
|
|
367
|
-
'files',
|
|
368
|
-
'bin',
|
|
369
|
-
'productName',
|
|
370
|
-
'homepage',
|
|
371
|
-
'repository',
|
|
372
|
-
'bugs',
|
|
373
|
-
'license',
|
|
374
|
-
'keywords',
|
|
375
|
-
'author',
|
|
376
|
-
'contributors',
|
|
377
|
-
'funding',
|
|
378
|
-
],
|
|
379
400
|
},
|
|
380
401
|
};
|