@egy186/eslint-config 0.67.0 → 0.70.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/base.js CHANGED
@@ -3,8 +3,7 @@
3
3
  /* eslint max-lines: "off" */
4
4
 
5
5
  module.exports = {
6
- env: { es2017: true },
7
- parserOptions: { ecmaVersion: 2018 },
6
+ env: { es2019: true },
8
7
  reportUnusedDisableDirectives: true,
9
8
  rules: {
10
9
  ...{
package/jest.js CHANGED
@@ -10,6 +10,7 @@ module.exports = {
10
10
  'jest/no-alias-methods': 'error',
11
11
  'jest/no-commented-out-tests': 'error',
12
12
  'jest/no-conditional-expect': 'error',
13
+ 'jest/no-conditional-in-test': 'error',
13
14
  'jest/no-deprecated-functions': 'error',
14
15
  'jest/no-disabled-tests': 'error',
15
16
  'jest/no-done-callback': 'error',
@@ -18,7 +19,6 @@ module.exports = {
18
19
  'jest/no-focused-tests': 'error',
19
20
  'jest/no-hooks': 'off',
20
21
  'jest/no-identical-title': 'error',
21
- 'jest/no-if': 'error',
22
22
  'jest/no-interpolation-in-snapshots': 'error',
23
23
  'jest/no-jasmine-globals': 'error',
24
24
  'jest/no-jest-import': 'error',
@@ -35,6 +35,7 @@ module.exports = {
35
35
  'jest/prefer-expect-resolves': 'error',
36
36
  'jest/prefer-hooks-on-top': 'error',
37
37
  'jest/prefer-lowercase-title': 'error',
38
+ 'jest/prefer-snapshot-hint': 'error',
38
39
  'jest/prefer-spy-on': 'error',
39
40
  'jest/prefer-strict-equal': 'error',
40
41
  'jest/prefer-to-be': 'error',
package/jsdoc.js CHANGED
@@ -49,6 +49,7 @@ module.exports = {
49
49
  'jsdoc/require-throws': 'error',
50
50
  'jsdoc/require-yields': 'error',
51
51
  'jsdoc/require-yields-check': 'error',
52
+ 'jsdoc/sort-tags': 'error',
52
53
  'jsdoc/tag-lines': 'error',
53
54
  'jsdoc/valid-types': 'error'
54
55
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@egy186/eslint-config",
3
3
  "description": "Eslint shareable config",
4
- "version": "0.67.0",
4
+ "version": "0.70.0",
5
5
  "author": "egy186",
6
6
  "bugs": {
7
7
  "url": "https://github.com/egy186/eslint-config/issues"
@@ -10,18 +10,18 @@
10
10
  "lodash": "^4.17.21"
11
11
  },
12
12
  "devDependencies": {
13
- "@typescript-eslint/eslint-plugin": "~5.10.0",
14
- "@typescript-eslint/parser": "~5.10.0",
15
- "eslint": "~8.7.0",
13
+ "@typescript-eslint/eslint-plugin": "~5.12.1",
14
+ "@typescript-eslint/parser": "~5.12.1",
15
+ "eslint": "~8.10.0",
16
16
  "eslint-plugin-import": "~2.25.4",
17
- "eslint-plugin-jest": "~25.7.0",
18
- "eslint-plugin-jsdoc": "~37.6.1",
17
+ "eslint-plugin-jest": "~26.1.1",
18
+ "eslint-plugin-jsdoc": "~37.9.4",
19
19
  "eslint-plugin-node": "~11.1.0",
20
- "eslint-plugin-react": "~7.28.0",
20
+ "eslint-plugin-react": "~7.29.2",
21
21
  "eslint-plugin-react-hooks": "~4.3.0",
22
22
  "husky": "^7.0.4",
23
23
  "require-dir": "^1.2.0",
24
- "typescript": "^4.5.4"
24
+ "typescript": "^4.5.5"
25
25
  },
26
26
  "engines": {
27
27
  "node": ">=12.22.0"
@@ -47,12 +47,12 @@
47
47
  "peerDependencies": {
48
48
  "@typescript-eslint/eslint-plugin": "^5.3.1",
49
49
  "@typescript-eslint/parser": "^5.3.1",
50
- "eslint": "^8.5.0",
50
+ "eslint": "^8.9.0",
51
51
  "eslint-plugin-import": "^2.25.3",
52
- "eslint-plugin-jest": "^25.7.0",
53
- "eslint-plugin-jsdoc": "^37.0.3",
52
+ "eslint-plugin-jest": "^26.1.0",
53
+ "eslint-plugin-jsdoc": "^37.8.0",
54
54
  "eslint-plugin-node": "^11.1.0",
55
- "eslint-plugin-react": "^7.27.0",
55
+ "eslint-plugin-react": "^7.29.2",
56
56
  "eslint-plugin-react-hooks": "^4.3.0",
57
57
  "typescript": "^4.4.4"
58
58
  },
package/react.js CHANGED
@@ -23,6 +23,8 @@ module.exports = {
23
23
  unnamedComponents: 'arrow-function'
24
24
  }
25
25
  ],
26
+ 'react/hook-use-state': 'error',
27
+ 'react/iframe-missing-sandbox': 'error',
26
28
  'react/jsx-boolean-value': 'error',
27
29
  'react/jsx-child-element-spacing': 'error',
28
30
  'react/jsx-closing-bracket-location': 'error',
@@ -49,7 +51,14 @@ module.exports = {
49
51
  ],
50
52
  'react/jsx-indent': ['error', 2],
51
53
  'react/jsx-indent-props': ['error', 2],
52
- 'react/jsx-key': 'error',
54
+ 'react/jsx-key': [
55
+ 'error',
56
+ {
57
+ checkFragmentShorthand: true,
58
+ checkKeyMustBeforeSpread: true,
59
+ warnOnDuplicates: true
60
+ }
61
+ ],
53
62
  'react/jsx-max-depth': 'error',
54
63
  'react/jsx-max-props-per-line': 'error',
55
64
  'react/jsx-newline': 'off',