eslint-config-greenpie 6.1.0 → 6.3.0
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 +5 -5
- package/rules/base.js +0 -1
- package/rules/vue.js +17 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "eslint-config-greenpie",
|
|
3
|
-
"version": "6.
|
|
3
|
+
"version": "6.3.0",
|
|
4
4
|
"description": "GreenPie's ESLint config file",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"author": "Roman Nuritdinov (Ky6uk)",
|
|
@@ -33,11 +33,11 @@
|
|
|
33
33
|
"vue"
|
|
34
34
|
],
|
|
35
35
|
"peerDependencies": {
|
|
36
|
-
"@typescript-eslint/eslint-plugin": "^6.
|
|
37
|
-
"@typescript-eslint/parser": "^6.
|
|
38
|
-
"eslint": "^8.
|
|
36
|
+
"@typescript-eslint/eslint-plugin": "^6.3.0",
|
|
37
|
+
"@typescript-eslint/parser": "^6.3.0",
|
|
38
|
+
"eslint": "^8.46.0",
|
|
39
39
|
"eslint-plugin-jest": "^27.2.3",
|
|
40
|
-
"eslint-plugin-vue": "^9.
|
|
40
|
+
"eslint-plugin-vue": "^9.16.1"
|
|
41
41
|
},
|
|
42
42
|
"devDependencies": {
|
|
43
43
|
"eslint": "^8.29.0"
|
package/rules/base.js
CHANGED
package/rules/vue.js
CHANGED
|
@@ -162,7 +162,6 @@ module.exports = {
|
|
|
162
162
|
*/
|
|
163
163
|
|
|
164
164
|
'vue/attributes-order': 'error',
|
|
165
|
-
'vue/component-tags-order': 'error',
|
|
166
165
|
'vue/no-lone-template': 'error',
|
|
167
166
|
'vue/no-multiple-slot-args': 'error',
|
|
168
167
|
'vue/no-v-html': 'error',
|
|
@@ -178,9 +177,23 @@ module.exports = {
|
|
|
178
177
|
'vue/block-lang': ['error', {
|
|
179
178
|
script: {
|
|
180
179
|
lang: 'ts'
|
|
180
|
+
},
|
|
181
|
+
|
|
182
|
+
style: {
|
|
183
|
+
lang: 'scss'
|
|
181
184
|
}
|
|
182
185
|
}],
|
|
183
186
|
|
|
187
|
+
'vue/block-order': ['error', {
|
|
188
|
+
order: [
|
|
189
|
+
'template',
|
|
190
|
+
'script:not([setup])',
|
|
191
|
+
'script[setup]',
|
|
192
|
+
'style:not([module])',
|
|
193
|
+
'style[module]'
|
|
194
|
+
]
|
|
195
|
+
}],
|
|
196
|
+
|
|
184
197
|
'vue/block-tag-newline': 'error',
|
|
185
198
|
'vue/component-api-style': 'error',
|
|
186
199
|
'vue/component-name-in-template-casing': 'error',
|
|
@@ -207,6 +220,7 @@ module.exports = {
|
|
|
207
220
|
'vue/next-tick-style': 'error',
|
|
208
221
|
'vue/no-bare-strings-in-template': 'error',
|
|
209
222
|
'vue/no-boolean-default': 'error',
|
|
223
|
+
'vue/no-deprecated-model-definition': 'error',
|
|
210
224
|
'vue/no-duplicate-attr-inheritance': 'error',
|
|
211
225
|
'vue/no-empty-component-block': 'error',
|
|
212
226
|
'vue/no-multiple-objects-in-class': 'error',
|
|
@@ -236,6 +250,7 @@ module.exports = {
|
|
|
236
250
|
|
|
237
251
|
'vue/no-unused-properties': 'error',
|
|
238
252
|
'vue/no-unused-refs': 'error',
|
|
253
|
+
'vue/no-use-v-else-with-v-for': 'error',
|
|
239
254
|
'vue/no-useless-mustaches': 'error',
|
|
240
255
|
'vue/no-useless-v-bind': 'error',
|
|
241
256
|
'vue/no-v-text': 'error',
|
|
@@ -252,6 +267,7 @@ module.exports = {
|
|
|
252
267
|
'vue/require-macro-variable-name': 'error',
|
|
253
268
|
'vue/require-name-property': 'error',
|
|
254
269
|
'vue/require-prop-comment': 'off',
|
|
270
|
+
'vue/require-typed-object-prop': 'error',
|
|
255
271
|
'vue/require-typed-ref': 'error',
|
|
256
272
|
|
|
257
273
|
'vue/script-indent': ['error', 2, {
|