@mikey-pro/eslint-config 3.1.11 → 3.2.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/index.cjs +28 -1
- package/package.json +6 -3
package/index.cjs
CHANGED
|
@@ -12,6 +12,27 @@ module.exports = {
|
|
|
12
12
|
'plugin:prettier/recommended',
|
|
13
13
|
],
|
|
14
14
|
overrides: [
|
|
15
|
+
{
|
|
16
|
+
files: ['*.ts', '*.tsx'],
|
|
17
|
+
parser: '@typescript-eslint/parser',
|
|
18
|
+
parserOptions: {
|
|
19
|
+
tsconfigRootDir: __dirname,
|
|
20
|
+
project: ['../../../tsconfig.json'],
|
|
21
|
+
sourceType: 'module',
|
|
22
|
+
ecmaVersion: 'latest',
|
|
23
|
+
ecmaFeatures: {
|
|
24
|
+
jsx: true,
|
|
25
|
+
},
|
|
26
|
+
},
|
|
27
|
+
plugins: ['@typescript-eslint'],
|
|
28
|
+
extends: [
|
|
29
|
+
'plugin:@typescript-eslint/recommended',
|
|
30
|
+
'plugin:@typescript-eslint/recommended-requiring-type-checking',
|
|
31
|
+
],
|
|
32
|
+
rules: {
|
|
33
|
+
'prettier/prettier': [2, { parser: 'typescript' }],
|
|
34
|
+
},
|
|
35
|
+
},
|
|
15
36
|
{
|
|
16
37
|
files: ['*.css'],
|
|
17
38
|
rules: {
|
|
@@ -71,6 +92,7 @@ module.exports = {
|
|
|
71
92
|
},
|
|
72
93
|
},
|
|
73
94
|
rules: {
|
|
95
|
+
'react/state-in-constructor': 0,
|
|
74
96
|
'react/no-deprecated': 2,
|
|
75
97
|
'react/react-in-jsx-scope': 0,
|
|
76
98
|
'react/display-name': [1, { ignoreTranspilerName: false }],
|
|
@@ -192,7 +214,7 @@ module.exports = {
|
|
|
192
214
|
},
|
|
193
215
|
],
|
|
194
216
|
'vue/component-tags-order': [
|
|
195
|
-
|
|
217
|
+
2,
|
|
196
218
|
{
|
|
197
219
|
order: [['script', 'template'], 'style'],
|
|
198
220
|
},
|
|
@@ -394,7 +416,9 @@ module.exports = {
|
|
|
394
416
|
'LICENSE',
|
|
395
417
|
'.vscode',
|
|
396
418
|
'.github',
|
|
419
|
+
'tsconfig.json',
|
|
397
420
|
],
|
|
421
|
+
root: true,
|
|
398
422
|
settings: {
|
|
399
423
|
'json/sort-package-json': 'pro',
|
|
400
424
|
polyfills: ['Promise'],
|
|
@@ -402,6 +426,9 @@ module.exports = {
|
|
|
402
426
|
pragma: 'h',
|
|
403
427
|
version: 'preact',
|
|
404
428
|
},
|
|
429
|
+
'import/resolver': {
|
|
430
|
+
typescript: {},
|
|
431
|
+
},
|
|
405
432
|
},
|
|
406
433
|
parser: '@babel/eslint-parser',
|
|
407
434
|
parserOptions: {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mikey-pro/eslint-config",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.2.3",
|
|
4
4
|
"description": "Mikey Pro ESLint configuration",
|
|
5
5
|
"main": "index.cjs",
|
|
6
6
|
"dependencies": {
|
|
@@ -11,12 +11,15 @@
|
|
|
11
11
|
"@babel/preset-env": "^7.16",
|
|
12
12
|
"@html-eslint/eslint-plugin": "^0.13.0",
|
|
13
13
|
"@html-eslint/parser": "^0.13.0",
|
|
14
|
+
"@typescript-eslint/eslint-plugin": "^5.5.0",
|
|
15
|
+
"@typescript-eslint/parser": "^5.5.0",
|
|
14
16
|
"@vue/babel-plugin-jsx": "^1.1.1",
|
|
15
17
|
"@vue/eslint-config-airbnb": "^6.0",
|
|
16
18
|
"babel-preset-airbnb": "^5.0.0",
|
|
17
19
|
"eslint-config-airbnb": "^19.0",
|
|
18
20
|
"eslint-config-prettier": "^8.3",
|
|
19
21
|
"eslint-config-standard": "^16.0.3",
|
|
22
|
+
"eslint-import-resolver-typescript": "^2.5.0",
|
|
20
23
|
"eslint-plugin-compat": "^4.0",
|
|
21
24
|
"eslint-plugin-css-modules": "^2.11",
|
|
22
25
|
"eslint-plugin-disable-autofix": "^0.1.6",
|
|
@@ -28,10 +31,10 @@
|
|
|
28
31
|
"eslint-plugin-md": "^1.0",
|
|
29
32
|
"eslint-plugin-node": "^11.1.0",
|
|
30
33
|
"eslint-plugin-prettier": "^4.0",
|
|
31
|
-
"eslint-plugin-promise": "^5.
|
|
34
|
+
"eslint-plugin-promise": "^5.2.0",
|
|
32
35
|
"eslint-plugin-react": "^7.27",
|
|
33
36
|
"eslint-plugin-react-hooks": "^4.3",
|
|
34
|
-
"eslint-plugin-sonarjs": "^0.
|
|
37
|
+
"eslint-plugin-sonarjs": "^0.11.0",
|
|
35
38
|
"eslint-plugin-svelte3": "^3.2.1",
|
|
36
39
|
"eslint-plugin-toml": "^0.3.0",
|
|
37
40
|
"eslint-plugin-unicorn": "^39.0.0",
|