@mikey-pro/eslint-config 3.1.9 → 3.2.1
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 +30 -1
- package/package.json +5 -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,7 +212,13 @@ module.exports = {
|
|
|
191
212
|
math: 'always',
|
|
192
213
|
},
|
|
193
214
|
],
|
|
194
|
-
'
|
|
215
|
+
'vue/component-tags-order': [
|
|
216
|
+
2,
|
|
217
|
+
{
|
|
218
|
+
order: [['script', 'template'], 'style'],
|
|
219
|
+
},
|
|
220
|
+
],
|
|
221
|
+
'prettier/prettier': 0,
|
|
195
222
|
},
|
|
196
223
|
},
|
|
197
224
|
{
|
|
@@ -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'],
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mikey-pro/eslint-config",
|
|
3
|
-
"version": "3.1
|
|
3
|
+
"version": "3.2.1",
|
|
4
4
|
"description": "Mikey Pro ESLint configuration",
|
|
5
5
|
"main": "index.cjs",
|
|
6
6
|
"dependencies": {
|
|
@@ -11,6 +11,8 @@
|
|
|
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",
|
|
@@ -28,10 +30,10 @@
|
|
|
28
30
|
"eslint-plugin-md": "^1.0",
|
|
29
31
|
"eslint-plugin-node": "^11.1.0",
|
|
30
32
|
"eslint-plugin-prettier": "^4.0",
|
|
31
|
-
"eslint-plugin-promise": "^5.
|
|
33
|
+
"eslint-plugin-promise": "^5.2.0",
|
|
32
34
|
"eslint-plugin-react": "^7.27",
|
|
33
35
|
"eslint-plugin-react-hooks": "^4.3",
|
|
34
|
-
"eslint-plugin-sonarjs": "^0.
|
|
36
|
+
"eslint-plugin-sonarjs": "^0.11.0",
|
|
35
37
|
"eslint-plugin-svelte3": "^3.2.1",
|
|
36
38
|
"eslint-plugin-toml": "^0.3.0",
|
|
37
39
|
"eslint-plugin-unicorn": "^39.0.0",
|