eslint-config-greenpie 5.4.0 → 5.6.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": "5.4.0",
3
+ "version": "5.6.0",
4
4
  "description": "GreenPie's ESLint config file",
5
5
  "main": "index.js",
6
6
  "author": "Roman Nuritdinov (Ky6uk)",
@@ -31,13 +31,13 @@
31
31
  "vue"
32
32
  ],
33
33
  "peerDependencies": {
34
- "@typescript-eslint/eslint-plugin": "^5.34.0",
35
- "@typescript-eslint/parser": "^5.34.0",
36
- "eslint": "^8.22.0",
37
- "eslint-plugin-jest": "^26.8.7",
38
- "eslint-plugin-vue": "^9.4.0"
34
+ "@typescript-eslint/eslint-plugin": "^5.37.0",
35
+ "@typescript-eslint/parser": "^5.37.0",
36
+ "eslint": "^8.23.1",
37
+ "eslint-plugin-jest": "^27.0.4",
38
+ "eslint-plugin-vue": "^9.5.0"
39
39
  },
40
40
  "devDependencies": {
41
- "eslint": "^8.22.0"
41
+ "eslint": "^8.23.1"
42
42
  }
43
43
  }
package/rules/base.js CHANGED
@@ -116,7 +116,13 @@ module.exports = {
116
116
  'init-declarations': 'error',
117
117
  'max-classes-per-file': 'error',
118
118
  'max-depth': 'error',
119
- 'max-lines': 'error',
119
+
120
+ 'max-lines': ['error', {
121
+ max: 300,
122
+ skipComments: true,
123
+ skipBlankLines: true
124
+ }],
125
+
120
126
  'max-lines-per-function': 'off',
121
127
  'max-nested-callbacks': 'error',
122
128
  'max-params': 'error',
package/rules/jest.js CHANGED
@@ -30,10 +30,14 @@ module.exports = {
30
30
  'jest/no-identical-title': 'error',
31
31
  'jest/no-interpolation-in-snapshots': 'error',
32
32
  'jest/no-jasmine-globals': 'error',
33
- 'jest/no-jest-import': 'error',
34
33
  'jest/no-large-snapshots': 'error',
35
34
  'jest/no-mocks-import': 'error',
36
- 'jest/no-restricted-matchers': 'error',
35
+
36
+ /**
37
+ * This rule should be used with exact list of matchers
38
+ * {@link https://github.com/jest-community/eslint-plugin-jest/blob/main/docs/rules/no-restricted-matchers.md}
39
+ */
40
+ 'jest/no-restricted-matchers': 'off',
37
41
 
38
42
  'jest/no-standalone-expect': ['error', {
39
43
  additionalTestBlockFunctions: ['it']
@@ -43,6 +47,7 @@ module.exports = {
43
47
  'jest/no-test-return-statement': 'error',
44
48
  'jest/prefer-called-with': 'error',
45
49
  'jest/prefer-comparison-matcher': 'error',
50
+ 'jest/prefer-each': 'error',
46
51
  'jest/prefer-equality-matcher': 'error',
47
52
  'jest/prefer-expect-assertions': 'error',
48
53
  'jest/prefer-expect-resolves': 'error',
package/rules/vue.js CHANGED
@@ -181,7 +181,9 @@ module.exports = {
181
181
  'vue/component-name-in-template-casing': 'error',
182
182
  'vue/component-options-name-casing': 'error',
183
183
  'vue/custom-event-name-casing': 'error',
184
+ 'vue/define-emits-declaration': 'error',
184
185
  'vue/define-macros-order': 'error',
186
+ 'vue/define-props-declaration': 'error',
185
187
  'vue/html-button-has-type': 'error',
186
188
  'vue/html-comment-content-newline': 'error',
187
189
  'vue/html-comment-content-spacing': 'error',
@@ -196,6 +198,7 @@ module.exports = {
196
198
  'vue/no-empty-component-block': 'error',
197
199
  'vue/no-multiple-objects-in-class': 'error',
198
200
  'vue/no-potential-component-option-typo': 'error',
201
+ 'vue/no-ref-object-destructure': 'error',
199
202
  'vue/no-restricted-block': 'error',
200
203
  'vue/no-restricted-call-after-await': 'error',
201
204
  'vue/no-restricted-class': 'error',
@@ -217,6 +220,7 @@ module.exports = {
217
220
  'vue/no-useless-v-bind': 'error',
218
221
  'vue/no-v-text': 'error',
219
222
  'vue/padding-line-between-blocks': 'error',
223
+ 'vue/padding-line-between-tags': 'off',
220
224
  'vue/prefer-prop-type-boolean-first': 'error',
221
225
  'vue/prefer-separate-static-class': 'error',
222
226
  'vue/prefer-true-attribute-shorthand': 'error',