@mikey-pro/eslint-config 2.5.1 → 2.5.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.cjs +42 -27
- package/package.json +4 -2
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,31 @@ 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
|
+
},
|
|
130
|
+
'newlines-between': 'always',
|
|
131
|
+
},
|
|
132
|
+
],
|
|
133
|
+
'import/extensions': ['error', 'always', { ignorePackages: true }],
|
|
134
|
+
'eslint-comments/no-use': [
|
|
135
|
+
'error',
|
|
136
|
+
{ allow: ['eslint-disable', 'eslint-disable-next-line'] },
|
|
137
|
+
],
|
|
138
|
+
'import/no-commonjs': 0,
|
|
139
|
+
'sort-imports': 0,
|
|
125
140
|
'constructor-super': 2,
|
|
126
141
|
'no-caller': 2,
|
|
127
142
|
'no-const-assign': 2,
|
|
@@ -185,7 +200,7 @@ module.exports = {
|
|
|
185
200
|
'unicode-bom': 2,
|
|
186
201
|
'valid-jsdoc': 0,
|
|
187
202
|
'spaced-comment': [
|
|
188
|
-
|
|
203
|
+
2,
|
|
189
204
|
'always',
|
|
190
205
|
{
|
|
191
206
|
line: {
|
|
@@ -232,10 +247,10 @@ module.exports = {
|
|
|
232
247
|
'react/no-string-refs': 2,
|
|
233
248
|
'react-hooks/rules-of-hooks': 2,
|
|
234
249
|
'react-hooks/exhaustive-deps': 1,
|
|
235
|
-
'unicorn/import-index': [
|
|
250
|
+
'unicorn/import-index': [2, { ignoreImports: true }],
|
|
236
251
|
'filenames/match-regex': 0,
|
|
237
252
|
'unicorn/filename-case': [
|
|
238
|
-
|
|
253
|
+
2,
|
|
239
254
|
{
|
|
240
255
|
cases: {
|
|
241
256
|
camelCase: true,
|
|
@@ -244,7 +259,7 @@ module.exports = {
|
|
|
244
259
|
ignore: ['README.md'],
|
|
245
260
|
},
|
|
246
261
|
],
|
|
247
|
-
'prettier/prettier': [
|
|
262
|
+
'prettier/prettier': [2],
|
|
248
263
|
},
|
|
249
264
|
plugins: [
|
|
250
265
|
'import',
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mikey-pro/eslint-config",
|
|
3
|
-
"version": "2.5.
|
|
3
|
+
"version": "2.5.5",
|
|
4
4
|
"description": "Mikey Pro ESLint configuration",
|
|
5
5
|
"main": "index.cjs",
|
|
6
6
|
"dependencies": {
|
|
@@ -14,7 +14,6 @@
|
|
|
14
14
|
"@vue/babel-plugin-jsx": "^1.1.1",
|
|
15
15
|
"@vue/eslint-config-airbnb": "^6.0",
|
|
16
16
|
"babel-preset-airbnb": "^5.0.0",
|
|
17
|
-
"eslint": "^8.3.0",
|
|
18
17
|
"eslint-config-airbnb": "^19.0",
|
|
19
18
|
"eslint-config-prettier": "^8.3",
|
|
20
19
|
"eslint-config-standard": "^16.0.3",
|
|
@@ -39,6 +38,9 @@
|
|
|
39
38
|
"eslint-plugin-vue": "^8.1",
|
|
40
39
|
"vue-eslint-parser": "^8.0"
|
|
41
40
|
},
|
|
41
|
+
"peerDependencies": {
|
|
42
|
+
"eslint": ">=8.3.0"
|
|
43
|
+
},
|
|
42
44
|
"files": [
|
|
43
45
|
"index.cjs",
|
|
44
46
|
"README.md",
|