eslint-config-greenpie 7.5.0 → 7.7.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 +9 -9
- package/rules/typescript.js +1 -0
- package/rules/vue.js +6 -22
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "eslint-config-greenpie",
|
|
3
|
-
"version": "7.
|
|
3
|
+
"version": "7.7.0",
|
|
4
4
|
"description": "GreenPie's ESLint config file",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"author": "Roman Nuritdinov (Ky6uk)",
|
|
@@ -33,14 +33,14 @@
|
|
|
33
33
|
"vue"
|
|
34
34
|
],
|
|
35
35
|
"peerDependencies": {
|
|
36
|
-
"@stylistic/eslint-plugin-js": "^1.5.
|
|
37
|
-
"@stylistic/eslint-plugin-plus": "^1.5.
|
|
38
|
-
"@stylistic/eslint-plugin-ts": "^1.5.
|
|
39
|
-
"@typescript-eslint/eslint-plugin": "^6.
|
|
40
|
-
"@typescript-eslint/parser": "^6.
|
|
41
|
-
"eslint": "^8.
|
|
42
|
-
"eslint-plugin-jest": "^27.6.
|
|
43
|
-
"eslint-plugin-vue": "^9.
|
|
36
|
+
"@stylistic/eslint-plugin-js": "^1.5.3",
|
|
37
|
+
"@stylistic/eslint-plugin-plus": "^1.5.3",
|
|
38
|
+
"@stylistic/eslint-plugin-ts": "^1.5.3",
|
|
39
|
+
"@typescript-eslint/eslint-plugin": "^6.18.1",
|
|
40
|
+
"@typescript-eslint/parser": "^6.18.1",
|
|
41
|
+
"eslint": "^8.56.0",
|
|
42
|
+
"eslint-plugin-jest": "^27.6.2",
|
|
43
|
+
"eslint-plugin-vue": "^9.20.0"
|
|
44
44
|
},
|
|
45
45
|
"devDependencies": {
|
|
46
46
|
"eslint": "^8.29.0"
|
package/rules/typescript.js
CHANGED
|
@@ -130,6 +130,7 @@ module.exports = {
|
|
|
130
130
|
'@typescript-eslint/no-unnecessary-type-assertion': 'error',
|
|
131
131
|
'@typescript-eslint/no-unnecessary-type-constraint': 'error',
|
|
132
132
|
'@typescript-eslint/no-useless-empty-export': 'error',
|
|
133
|
+
'@typescript-eslint/no-useless-template-literals': 'error',
|
|
133
134
|
'@typescript-eslint/no-var-requires': 'error',
|
|
134
135
|
'@typescript-eslint/non-nullable-type-assertion-style': 'error',
|
|
135
136
|
'@typescript-eslint/parameter-properties': 'error',
|
package/rules/vue.js
CHANGED
|
@@ -15,8 +15,6 @@ module.exports = {
|
|
|
15
15
|
* {@link https://eslint.vuejs.org/rules/#priority-a-essential-error-prevention}
|
|
16
16
|
*/
|
|
17
17
|
|
|
18
|
-
// Vue 3, Vue 2
|
|
19
|
-
|
|
20
18
|
'vue/multi-word-component-names': 'error',
|
|
21
19
|
'vue/no-arrow-functions-in-watch': 'error',
|
|
22
20
|
'vue/no-async-in-computed-properties': 'error',
|
|
@@ -69,9 +67,6 @@ module.exports = {
|
|
|
69
67
|
'vue/valid-v-show': 'error',
|
|
70
68
|
'vue/valid-v-slot': 'error',
|
|
71
69
|
'vue/valid-v-text': 'error',
|
|
72
|
-
|
|
73
|
-
// Vue 3
|
|
74
|
-
|
|
75
70
|
'vue/no-deprecated-data-object-declaration': 'error',
|
|
76
71
|
'vue/no-deprecated-destroyed-lifecycle': 'error',
|
|
77
72
|
'vue/no-deprecated-dollar-listeners-api': 'error',
|
|
@@ -101,25 +96,12 @@ module.exports = {
|
|
|
101
96
|
'vue/valid-v-is': 'error',
|
|
102
97
|
'vue/valid-v-memo': 'error',
|
|
103
98
|
|
|
104
|
-
// Vue 2
|
|
105
|
-
|
|
106
|
-
/*
|
|
107
|
-
* 'vue/no-custom-modifiers-on-v-model': 'error',
|
|
108
|
-
* 'vue/no-multiple-template-root': 'error',
|
|
109
|
-
* 'vue/no-v-for-template-key': 'error',
|
|
110
|
-
* 'vue/no-v-model-argument': 'error',
|
|
111
|
-
* 'vue/valid-model-definition': 'error',
|
|
112
|
-
* 'vue/valid-v-bind-sync': 'error',
|
|
113
|
-
*/
|
|
114
|
-
|
|
115
99
|
/**
|
|
116
100
|
* Priority B: Strongly Recommended (Improving Readability)
|
|
117
101
|
*
|
|
118
102
|
* {@link https://eslint.vuejs.org/rules/#priority-b-strongly-recommended-improving-readability}
|
|
119
103
|
*/
|
|
120
104
|
|
|
121
|
-
// Vue 3, Vue 2
|
|
122
|
-
|
|
123
105
|
'vue/attribute-hyphenation': 'error',
|
|
124
106
|
'vue/component-definition-name-casing': 'error',
|
|
125
107
|
|
|
@@ -148,9 +130,6 @@ module.exports = {
|
|
|
148
130
|
'vue/v-bind-style': 'error',
|
|
149
131
|
'vue/v-on-style': 'error',
|
|
150
132
|
'vue/v-slot-style': 'error',
|
|
151
|
-
|
|
152
|
-
// Vue 3
|
|
153
|
-
|
|
154
133
|
'vue/require-explicit-emits': 'error',
|
|
155
134
|
'vue/v-on-event-hyphenation': 'error',
|
|
156
135
|
|
|
@@ -201,6 +180,11 @@ module.exports = {
|
|
|
201
180
|
'vue/define-emits-declaration': 'error',
|
|
202
181
|
'vue/define-macros-order': 'error',
|
|
203
182
|
'vue/define-props-declaration': 'error',
|
|
183
|
+
|
|
184
|
+
'vue/enforce-style-attribute': ['error', {
|
|
185
|
+
allow: ['module', 'plain']
|
|
186
|
+
}],
|
|
187
|
+
|
|
204
188
|
'vue/html-button-has-type': 'error',
|
|
205
189
|
'vue/html-comment-content-newline': 'error',
|
|
206
190
|
'vue/html-comment-content-spacing': 'error',
|
|
@@ -245,7 +229,7 @@ module.exports = {
|
|
|
245
229
|
'vue/no-undef-properties': 'error',
|
|
246
230
|
|
|
247
231
|
'vue/no-unsupported-features': ['error', {
|
|
248
|
-
version: '^3.
|
|
232
|
+
version: '^3.4.0'
|
|
249
233
|
}],
|
|
250
234
|
|
|
251
235
|
'vue/no-unused-emit-declarations': 'error',
|