eslint-config-greenpie 7.7.0 → 7.9.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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "eslint-config-greenpie",
3
- "version": "7.7.0",
3
+ "version": "7.9.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.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",
36
+ "@stylistic/eslint-plugin-js": "^1.6.0",
37
+ "@stylistic/eslint-plugin-plus": "^1.6.0",
38
+ "@stylistic/eslint-plugin-ts": "^1.6.0",
39
+ "@typescript-eslint/eslint-plugin": "^6.21.0",
40
+ "@typescript-eslint/parser": "^6.21.0",
41
41
  "eslint": "^8.56.0",
42
- "eslint-plugin-jest": "^27.6.2",
43
- "eslint-plugin-vue": "^9.20.0"
42
+ "eslint-plugin-jest": "^27.6.3",
43
+ "eslint-plugin-vue": "^9.21.1"
44
44
  },
45
45
  "devDependencies": {
46
46
  "eslint": "^8.29.0"
@@ -8,6 +8,8 @@ module.exports = {
8
8
  * {@link https://github.com/eslint-stylistic/eslint-stylistic/releases}
9
9
  */
10
10
  rules: {
11
+ // TODO: do we need this disabling?
12
+
11
13
  // Disable original JavaScript rules
12
14
 
13
15
  '@stylistic/js/block-spacing': 'off',
@@ -24,6 +26,7 @@ module.exports = {
24
26
  '@stylistic/js/no-extra-semi': 'off',
25
27
  '@stylistic/js/object-curly-spacing': 'off',
26
28
  '@stylistic/js/padding-line-between-statements': 'off',
29
+ '@stylistic/js/quote-props': 'off',
27
30
  '@stylistic/js/quotes': 'off',
28
31
  '@stylistic/js/semi': 'off',
29
32
  '@stylistic/js/space-before-blocks': 'off',
@@ -83,6 +86,7 @@ module.exports = {
83
86
  next: ['case', 'default']
84
87
  }],
85
88
 
89
+ '@stylistic/ts/quote-props': ['error', 'as-needed'],
86
90
  '@stylistic/ts/quotes': ['error', 'single'],
87
91
  '@stylistic/ts/semi': 'error',
88
92
  '@stylistic/ts/space-before-blocks': 'error',
@@ -140,6 +140,7 @@ module.exports = {
140
140
  // Don't see any reasons to enforce this rule 🤔
141
141
  '@typescript-eslint/prefer-enum-initializers': 'off',
142
142
 
143
+ '@typescript-eslint/prefer-find': 'error',
143
144
  '@typescript-eslint/prefer-for-of': 'error',
144
145
  '@typescript-eslint/prefer-function-type': 'error',
145
146
  '@typescript-eslint/prefer-includes': 'error',
@@ -147,6 +148,7 @@ module.exports = {
147
148
  '@typescript-eslint/prefer-namespace-keyword': 'error',
148
149
  '@typescript-eslint/prefer-nullish-coalescing': 'error',
149
150
  '@typescript-eslint/prefer-optional-chain': 'error',
151
+ '@typescript-eslint/prefer-promise-reject-errors': 'error',
150
152
  '@typescript-eslint/prefer-readonly': 'error',
151
153
 
152
154
  /*
@@ -198,17 +200,17 @@ module.exports = {
198
200
  'no-use-before-define': 'off',
199
201
  'no-useless-constructor': 'off',
200
202
  'prefer-destructuring': 'off',
203
+ 'prefer-promise-reject-errors': 'off',
201
204
  'require-await': 'off',
202
205
  'return-await': 'off',
203
206
 
204
207
  // Extension Rules
205
208
  '@typescript-eslint/class-methods-use-this': 'error',
206
-
207
209
  '@typescript-eslint/default-param-last': 'error',
208
210
  '@typescript-eslint/dot-notation': 'error',
209
211
  '@typescript-eslint/init-declarations': 'error',
210
-
211
212
  '@typescript-eslint/no-array-constructor': 'error',
213
+ '@typescript-eslint/no-array-delete': 'error',
212
214
  '@typescript-eslint/no-dupe-class-members': 'error',
213
215
  '@typescript-eslint/no-empty-function': 'error',
214
216
  '@typescript-eslint/no-implied-eval': 'error',
package/rules/vue.js CHANGED
@@ -127,7 +127,11 @@ module.exports = {
127
127
  'vue/require-default-prop': 'error',
128
128
  'vue/require-prop-types': 'error',
129
129
  'vue/singleline-html-element-content-newline': 'error',
130
- 'vue/v-bind-style': 'error',
130
+
131
+ 'vue/v-bind-style': ['error', 'shorthand', {
132
+ sameNameShorthand: 'always'
133
+ }],
134
+
131
135
  'vue/v-on-style': 'error',
132
136
  'vue/v-slot-style': 'error',
133
137
  'vue/require-explicit-emits': 'error',
@@ -220,6 +224,7 @@ module.exports = {
220
224
  'vue/no-restricted-props': 'error',
221
225
  'vue/no-restricted-static-attribute': 'error',
222
226
  'vue/no-restricted-v-bind': 'error',
227
+ 'vue/no-restricted-v-on': 'off',
223
228
  'vue/no-root-v-if': 'off',
224
229
  'vue/no-setup-props-reactivity-loss': 'error',
225
230
  'vue/no-static-inline-styles': 'error',
@@ -248,6 +253,7 @@ module.exports = {
248
253
  'vue/prefer-true-attribute-shorthand': 'error',
249
254
  'vue/require-direct-export': 'error',
250
255
  'vue/require-emit-validator': 'error',
256
+ 'vue/require-explicit-slots': 'error',
251
257
  'vue/require-expose': 'error',
252
258
  'vue/require-macro-variable-name': 'error',
253
259
  'vue/require-name-property': 'error',