@alexlit/config-eslint 61.0.1 → 61.0.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/package.json +12 -12
- package/plugins/vue.js +34 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@alexlit/config-eslint",
|
|
3
|
-
"version": "61.0.
|
|
3
|
+
"version": "61.0.2",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "eslint config",
|
|
6
6
|
"keywords": [
|
|
@@ -40,9 +40,9 @@
|
|
|
40
40
|
},
|
|
41
41
|
"dependencies": {
|
|
42
42
|
"@intlify/eslint-plugin-vue-i18n": "^2.0.0",
|
|
43
|
-
"@typescript-eslint/eslint-plugin": "^5.
|
|
44
|
-
"@typescript-eslint/parser": "^5.
|
|
45
|
-
"eslint": "^8.
|
|
43
|
+
"@typescript-eslint/eslint-plugin": "^5.60.0",
|
|
44
|
+
"@typescript-eslint/parser": "^5.60.0",
|
|
45
|
+
"eslint": "^8.43.0",
|
|
46
46
|
"eslint-config-airbnb-base": "^15.0.0",
|
|
47
47
|
"eslint-config-prettier": "^8.8.0",
|
|
48
48
|
"eslint-define-config": "^1.20.0",
|
|
@@ -55,13 +55,13 @@
|
|
|
55
55
|
"eslint-plugin-ext": "^0.1.0",
|
|
56
56
|
"eslint-plugin-filenames": "^1.3.2",
|
|
57
57
|
"eslint-plugin-import": "^2.27.5",
|
|
58
|
-
"eslint-plugin-jest": "^27.2.
|
|
59
|
-
"eslint-plugin-jest-dom": "^
|
|
58
|
+
"eslint-plugin-jest": "^27.2.2",
|
|
59
|
+
"eslint-plugin-jest-dom": "^5.0.1",
|
|
60
60
|
"eslint-plugin-jest-formatting": "^3.1.0",
|
|
61
|
-
"eslint-plugin-jsdoc": "^46.
|
|
61
|
+
"eslint-plugin-jsdoc": "^46.2.6",
|
|
62
62
|
"eslint-plugin-jsx-a11y": "^6.7.1",
|
|
63
63
|
"eslint-plugin-lit": "^1.8.3",
|
|
64
|
-
"eslint-plugin-lit-a11y": "^
|
|
64
|
+
"eslint-plugin-lit-a11y": "^3.0.0",
|
|
65
65
|
"eslint-plugin-more": "^1.0.5",
|
|
66
66
|
"eslint-plugin-no-await-in-promise": "^1.1.3",
|
|
67
67
|
"eslint-plugin-no-constructor-bind": "^2.0.4",
|
|
@@ -91,14 +91,14 @@
|
|
|
91
91
|
"eslint-plugin-typescript-sort-keys": "^2.3.0",
|
|
92
92
|
"eslint-plugin-unicorn": "^47.0.0",
|
|
93
93
|
"eslint-plugin-unused-imports": "^2.0.0",
|
|
94
|
-
"eslint-plugin-vue": "^9.
|
|
94
|
+
"eslint-plugin-vue": "^9.15.0",
|
|
95
95
|
"eslint-plugin-vuejs-accessibility": "^2.1.0",
|
|
96
|
-
"eslint-plugin-vuetify": "^2.0.
|
|
96
|
+
"eslint-plugin-vuetify": "^2.0.2",
|
|
97
97
|
"eslint-plugin-wc": "^1.5.0",
|
|
98
98
|
"eslint-plugin-write-good-comments": "^0.2.0",
|
|
99
|
-
"typescript": "^5.
|
|
99
|
+
"typescript": "^5.1.3"
|
|
100
100
|
},
|
|
101
101
|
"devDependencies": {
|
|
102
|
-
"@alexlit/lint-kit": "^
|
|
102
|
+
"@alexlit/lint-kit": "^96.0.1"
|
|
103
103
|
}
|
|
104
104
|
}
|
package/plugins/vue.js
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
* @see [eslint-plugin-vue](https://eslint.vuejs.org/rules/)
|
|
4
4
|
*/
|
|
5
5
|
module.exports = {
|
|
6
|
-
extends: ['plugin:vue/recommended'],
|
|
6
|
+
extends: ['plugin:vue/vue3-recommended'],
|
|
7
7
|
|
|
8
8
|
overrides: [
|
|
9
9
|
{
|
|
@@ -62,9 +62,13 @@ module.exports = {
|
|
|
62
62
|
'vue/define-props-declaration': ['error'],
|
|
63
63
|
|
|
64
64
|
'vue/dot-notation': ['error'],
|
|
65
|
+
|
|
65
66
|
'vue/eqeqeq': ['error'],
|
|
67
|
+
|
|
66
68
|
'vue/html-button-has-type': ['error'],
|
|
69
|
+
|
|
67
70
|
'vue/html-comment-content-newline': ['warn'],
|
|
71
|
+
|
|
68
72
|
'vue/html-comment-content-spacing': ['warn'],
|
|
69
73
|
|
|
70
74
|
'vue/html-comment-indent': ['warn'],
|
|
@@ -96,12 +100,26 @@ module.exports = {
|
|
|
96
100
|
},
|
|
97
101
|
],
|
|
98
102
|
|
|
103
|
+
'vue/max-lines-per-block': [
|
|
104
|
+
'warn',
|
|
105
|
+
{
|
|
106
|
+
script: 500,
|
|
107
|
+
skipBlankLines: true,
|
|
108
|
+
style: 500,
|
|
109
|
+
template: 500,
|
|
110
|
+
},
|
|
111
|
+
],
|
|
112
|
+
|
|
99
113
|
'vue/new-line-between-multi-line-property': ['error'],
|
|
100
114
|
|
|
101
115
|
'vue/next-tick-style': ['error', 'promise'],
|
|
102
116
|
|
|
103
117
|
'vue/no-child-content': ['error'],
|
|
104
118
|
|
|
119
|
+
'vue/no-console': ['error'],
|
|
120
|
+
|
|
121
|
+
'vue/no-custom-modifiers-on-v-model': 'off',
|
|
122
|
+
|
|
105
123
|
'vue/no-deprecated-scope-attribute': ['error'],
|
|
106
124
|
|
|
107
125
|
'vue/no-deprecated-slot-attribute': ['error'],
|
|
@@ -143,6 +161,8 @@ module.exports = {
|
|
|
143
161
|
},
|
|
144
162
|
],
|
|
145
163
|
|
|
164
|
+
'vue/no-restricted-component-names': ['error'],
|
|
165
|
+
|
|
146
166
|
'vue/no-restricted-component-options': ['error'],
|
|
147
167
|
|
|
148
168
|
'vue/no-restricted-props': ['error'],
|
|
@@ -203,6 +223,19 @@ module.exports = {
|
|
|
203
223
|
|
|
204
224
|
'vue/require-direct-export': 'off',
|
|
205
225
|
|
|
226
|
+
'vue/require-macro-variable-name': [
|
|
227
|
+
'error',
|
|
228
|
+
{
|
|
229
|
+
defineEmits: '$emit',
|
|
230
|
+
defineProps: '$props',
|
|
231
|
+
defineSlots: '$slots',
|
|
232
|
+
useAttrs: '$attrs',
|
|
233
|
+
useSlots: '$slots',
|
|
234
|
+
},
|
|
235
|
+
],
|
|
236
|
+
|
|
237
|
+
'vue/require-typed-ref': ['error'],
|
|
238
|
+
|
|
206
239
|
'vue/sort-keys': [
|
|
207
240
|
'warn',
|
|
208
241
|
'asc',
|