@mikey-pro/eslint-config 3.1.10 → 3.2.2
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 +34 -0
- 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: {
|
|
@@ -191,6 +212,12 @@ module.exports = {
|
|
|
191
212
|
math: 'always',
|
|
192
213
|
},
|
|
193
214
|
],
|
|
215
|
+
'vue/component-tags-order': [
|
|
216
|
+
2,
|
|
217
|
+
{
|
|
218
|
+
order: [['script', 'template'], 'style'],
|
|
219
|
+
},
|
|
220
|
+
],
|
|
194
221
|
'prettier/prettier': 0,
|
|
195
222
|
},
|
|
196
223
|
},
|
|
@@ -388,7 +415,9 @@ module.exports = {
|
|
|
388
415
|
'LICENSE',
|
|
389
416
|
'.vscode',
|
|
390
417
|
'.github',
|
|
418
|
+
'tsconfig.json',
|
|
391
419
|
],
|
|
420
|
+
root: true,
|
|
392
421
|
settings: {
|
|
393
422
|
'json/sort-package-json': 'pro',
|
|
394
423
|
polyfills: ['Promise'],
|
|
@@ -396,6 +425,11 @@ module.exports = {
|
|
|
396
425
|
pragma: 'h',
|
|
397
426
|
version: 'preact',
|
|
398
427
|
},
|
|
428
|
+
settings: {
|
|
429
|
+
'import/resolver': {
|
|
430
|
+
typescript: {},
|
|
431
|
+
},
|
|
432
|
+
},
|
|
399
433
|
},
|
|
400
434
|
parser: '@babel/eslint-parser',
|
|
401
435
|
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.2",
|
|
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",
|