@mikey-pro/eslint-config 2.5.1 → 2.5.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 +39 -27
- package/package.json +1 -1
package/index.cjs
CHANGED
|
@@ -20,7 +20,7 @@ module.exports = {
|
|
|
20
20
|
extends: ['plugin:md/recommended'],
|
|
21
21
|
rules: {
|
|
22
22
|
'md/remark': [
|
|
23
|
-
|
|
23
|
+
2,
|
|
24
24
|
{
|
|
25
25
|
plugins: [
|
|
26
26
|
'preset-lint-markdown-style-guide',
|
|
@@ -28,13 +28,13 @@ module.exports = {
|
|
|
28
28
|
],
|
|
29
29
|
},
|
|
30
30
|
],
|
|
31
|
-
'prettier/prettier': [
|
|
31
|
+
'prettier/prettier': [2, { parser: 'markdown' }],
|
|
32
32
|
},
|
|
33
33
|
},
|
|
34
34
|
{
|
|
35
35
|
files: ['*.md.json'],
|
|
36
36
|
rules: {
|
|
37
|
-
'prettier/prettier': [
|
|
37
|
+
'prettier/prettier': [2, { parser: 'json' }],
|
|
38
38
|
},
|
|
39
39
|
},
|
|
40
40
|
{
|
|
@@ -42,15 +42,15 @@ module.exports = {
|
|
|
42
42
|
parser: '@html-eslint/parser',
|
|
43
43
|
extends: ['plugin:@html-eslint/recommended'],
|
|
44
44
|
rules: {
|
|
45
|
-
'spaced-comment':
|
|
46
|
-
'@html-eslint/indent':
|
|
47
|
-
'@html-eslint/no-extra-spacing-attrs':
|
|
48
|
-
'@html-eslint/require-closing-tags':
|
|
45
|
+
'spaced-comment': 0,
|
|
46
|
+
'@html-eslint/indent': 0,
|
|
47
|
+
'@html-eslint/no-extra-spacing-attrs': 0,
|
|
48
|
+
'@html-eslint/require-closing-tags': 0,
|
|
49
49
|
'disable-autofix/@html-eslint/require-closing-tags': [
|
|
50
|
-
|
|
50
|
+
2,
|
|
51
51
|
{ selfClosing: 'always' },
|
|
52
52
|
],
|
|
53
|
-
'prettier/prettier': [
|
|
53
|
+
'prettier/prettier': [2, { parser: 'html' }],
|
|
54
54
|
},
|
|
55
55
|
},
|
|
56
56
|
{
|
|
@@ -59,7 +59,7 @@ module.exports = {
|
|
|
59
59
|
extends: ['plugin:vue/vue3-recommended', '@vue/airbnb'],
|
|
60
60
|
rules: {
|
|
61
61
|
'vue/html-self-closing': [
|
|
62
|
-
|
|
62
|
+
2,
|
|
63
63
|
{
|
|
64
64
|
html: {
|
|
65
65
|
void: 'always',
|
|
@@ -70,18 +70,18 @@ module.exports = {
|
|
|
70
70
|
math: 'always',
|
|
71
71
|
},
|
|
72
72
|
],
|
|
73
|
-
'prettier/prettier':
|
|
73
|
+
'prettier/prettier': 0,
|
|
74
74
|
},
|
|
75
75
|
},
|
|
76
76
|
{
|
|
77
77
|
files: ['*.svelte'],
|
|
78
78
|
processor: 'svelte3/svelte3',
|
|
79
79
|
rules: {
|
|
80
|
-
'import/first':
|
|
81
|
-
'import/no-duplicates':
|
|
82
|
-
'import/no-mutable-exports':
|
|
83
|
-
'import/no-unresolved':
|
|
84
|
-
'prettier/prettier':
|
|
80
|
+
'import/first': 0,
|
|
81
|
+
'import/no-duplicates': 0,
|
|
82
|
+
'import/no-mutable-exports': 0,
|
|
83
|
+
'import/no-unresolved': 0,
|
|
84
|
+
'prettier/prettier': 0,
|
|
85
85
|
},
|
|
86
86
|
},
|
|
87
87
|
],
|
|
@@ -94,7 +94,7 @@ module.exports = {
|
|
|
94
94
|
},
|
|
95
95
|
rules: {
|
|
96
96
|
'no-restricted-syntax': [
|
|
97
|
-
|
|
97
|
+
2,
|
|
98
98
|
{
|
|
99
99
|
selector: 'ForInStatement',
|
|
100
100
|
message:
|
|
@@ -112,16 +112,28 @@ module.exports = {
|
|
|
112
112
|
},
|
|
113
113
|
],
|
|
114
114
|
camelcase: 0,
|
|
115
|
-
'no-console':
|
|
116
|
-
'func-names':
|
|
117
|
-
'no-process-exit':
|
|
118
|
-
'class-methods-use-this':
|
|
119
|
-
'no-underscore-dangle':
|
|
115
|
+
'no-console': 0,
|
|
116
|
+
'func-names': 0,
|
|
117
|
+
'no-process-exit': 0,
|
|
118
|
+
'class-methods-use-this': 0,
|
|
119
|
+
'no-underscore-dangle': 0,
|
|
120
120
|
'import/no-unresolved': [
|
|
121
121
|
2,
|
|
122
122
|
{ commonjs: true, amd: true, ignore: ['^node:'] },
|
|
123
123
|
],
|
|
124
|
-
'import/
|
|
124
|
+
'import/order': [
|
|
125
|
+
2,
|
|
126
|
+
{
|
|
127
|
+
alphabetize: {
|
|
128
|
+
order: 'asc',
|
|
129
|
+
caseInsensitive: true,
|
|
130
|
+
},
|
|
131
|
+
'newlines-between': 'always',
|
|
132
|
+
},
|
|
133
|
+
],
|
|
134
|
+
'import/extensions': ['error', 'always', { ignorePackages: true }],
|
|
135
|
+
'import/no-commonjs': 0,
|
|
136
|
+
'sort-imports': 0,
|
|
125
137
|
'constructor-super': 2,
|
|
126
138
|
'no-caller': 2,
|
|
127
139
|
'no-const-assign': 2,
|
|
@@ -185,7 +197,7 @@ module.exports = {
|
|
|
185
197
|
'unicode-bom': 2,
|
|
186
198
|
'valid-jsdoc': 0,
|
|
187
199
|
'spaced-comment': [
|
|
188
|
-
|
|
200
|
+
2,
|
|
189
201
|
'always',
|
|
190
202
|
{
|
|
191
203
|
line: {
|
|
@@ -232,10 +244,10 @@ module.exports = {
|
|
|
232
244
|
'react/no-string-refs': 2,
|
|
233
245
|
'react-hooks/rules-of-hooks': 2,
|
|
234
246
|
'react-hooks/exhaustive-deps': 1,
|
|
235
|
-
'unicorn/import-index': [
|
|
247
|
+
'unicorn/import-index': [2, { ignoreImports: true }],
|
|
236
248
|
'filenames/match-regex': 0,
|
|
237
249
|
'unicorn/filename-case': [
|
|
238
|
-
|
|
250
|
+
2,
|
|
239
251
|
{
|
|
240
252
|
cases: {
|
|
241
253
|
camelCase: true,
|
|
@@ -244,7 +256,7 @@ module.exports = {
|
|
|
244
256
|
ignore: ['README.md'],
|
|
245
257
|
},
|
|
246
258
|
],
|
|
247
|
-
'prettier/prettier': [
|
|
259
|
+
'prettier/prettier': [2],
|
|
248
260
|
},
|
|
249
261
|
plugins: [
|
|
250
262
|
'import',
|