eslint-config-greenpie 5.4.0 → 5.5.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.5.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",
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
38
  "eslint-plugin-vue": "^9.4.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',