@fullstacksjs/eslint-config 8.0.0 → 8.1.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": "@fullstacksjs/eslint-config",
3
- "version": "8.0.0",
3
+ "version": "8.1.0",
4
4
  "license": "MIT",
5
5
  "author": "fullstacks <fullstacksjs@gmail.com>",
6
6
  "description": "fullstacks eslint config",
@@ -42,20 +42,20 @@
42
42
  "main": "index.js",
43
43
  "dependencies": {
44
44
  "@frontendmonster/utils": "0.3.11",
45
- "@typescript-eslint/eslint-plugin": "5.6.0",
46
- "@typescript-eslint/parser": "5.6.0",
45
+ "@typescript-eslint/eslint-plugin": "5.10.2",
46
+ "@typescript-eslint/parser": "5.10.2",
47
47
  "eslint-config-prettier": "8.3.0",
48
48
  "eslint-import-resolver-typescript": "2.5.0",
49
49
  "eslint-plugin-cypress": "2.12.1",
50
50
  "eslint-plugin-fp": "2.3.0",
51
- "eslint-plugin-import": "2.25.3",
52
- "eslint-plugin-jest": "25.3.0",
51
+ "eslint-plugin-import": "2.25.4",
52
+ "eslint-plugin-jest": "26.1.0",
53
53
  "eslint-plugin-jest-formatting": "3.1.0",
54
54
  "eslint-plugin-jsx-a11y": "6.5.1",
55
55
  "eslint-plugin-node": "11.1.0",
56
56
  "eslint-plugin-prettier": "4.0.0",
57
57
  "eslint-plugin-promise": "6.0.0",
58
- "eslint-plugin-react": "7.27.1",
58
+ "eslint-plugin-react": "7.28.0",
59
59
  "eslint-plugin-react-hooks": "4.3.0",
60
60
  "eslint-plugin-simple-import-sort": "7.0.0",
61
61
  "eslint-plugin-storybook": "0.5.6",
@@ -66,15 +66,15 @@
66
66
  "yargs": "17.3.1"
67
67
  },
68
68
  "devDependencies": {
69
- "eslint": "8.5.0",
70
- "eslint-find-rules": "4.0.0",
69
+ "eslint": "8.8.0",
70
+ "eslint-find-rules": "4.1.0",
71
71
  "husky": "7.0.4",
72
- "lint-staged": "12.1.2",
72
+ "lint-staged": "12.3.3",
73
73
  "np": "7.6.0",
74
74
  "npm-run-all": "4.1.5",
75
75
  "pinst": "2.1.6",
76
76
  "prettier": "2.5.1",
77
- "typescript": "4.5.4"
77
+ "typescript": "4.5.5"
78
78
  },
79
79
  "peerDependencies": {
80
80
  "cypress": ">=8",
package/rules/jest.js CHANGED
@@ -7,6 +7,7 @@ module.exports = {
7
7
  'jest/no-alias-methods': 'off',
8
8
  'jest/no-commented-out-tests': 'warn',
9
9
  'jest/no-conditional-expect': 'error',
10
+ 'jest/no-conditional-in-test': 'error',
10
11
  'jest/no-deprecated-functions': 'error',
11
12
  'jest/no-disabled-tests': 'warn',
12
13
  'jest/no-done-callback': 'warn',
@@ -16,7 +17,6 @@ module.exports = {
16
17
  'jest/no-focused-tests': 'error',
17
18
  'jest/no-hooks': 'off',
18
19
  'jest/no-identical-title': 'error',
19
- 'jest/no-if': 'error',
20
20
  'jest/no-interpolation-in-snapshots': 'error',
21
21
  'jest/no-jasmine-globals': 'off',
22
22
  'jest/no-jest-import': 'error',
@@ -34,6 +34,7 @@ module.exports = {
34
34
  'jest/prefer-hooks-on-top': 'error',
35
35
  'jest/prefer-inline-snapshots': 'off',
36
36
  'jest/prefer-lowercase-title': 'off',
37
+ 'jest/prefer-snapshot-hint': 'warn',
37
38
  'jest/prefer-spy-on': 'off',
38
39
  'jest/prefer-strict-equal': 'off',
39
40
  'jest/prefer-to-be-null': 'off',
package/rules/react.js CHANGED
@@ -10,7 +10,7 @@ module.exports = {
10
10
  'react/forbid-elements': 'off',
11
11
  'react/forbid-foreign-prop-types': 'error',
12
12
  'react/forbid-prop-types': 'off',
13
- 'react/function-component-definition': 'off',
13
+ 'react/function-component-definition': ['warn', { namedComponents: 'arrow-function', unnamedComponents: 'arrow-function' }],
14
14
  'react/jsx-boolean-value': 'off',
15
15
  'react/jsx-child-element-spacing': 'warn',
16
16
  'react/jsx-curly-brace-presence': ['warn', { props: 'never', children: 'ignore' }],
@@ -68,10 +68,10 @@ module.exports = {
68
68
  'react/no-unused-state': 'error',
69
69
  'react/no-will-update-set-state': 'error',
70
70
  'react/prefer-es6-class': 'off',
71
+ 'react/prefer-exact-props': 'off',
71
72
  'react/prefer-read-only-props': 'off',
72
73
  'react/prefer-stateless-function': 'off',
73
74
  'react/prop-types': 'off',
74
- 'react/prefer-exact-props': 'off',
75
75
  'react/react-in-jsx-scope': 'off', // jsx automatic runtime
76
76
  'react/require-default-props': 'off',
77
77
  'react/require-optimization': 'off',