@fullstacksjs/eslint-config 8.4.1 → 8.4.2

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/README.md CHANGED
@@ -60,11 +60,11 @@ It reads your root `package.json` dependencies and includes necessary rules.
60
60
 
61
61
  ## NextJS
62
62
 
63
- [NextJS](https://nextjs.org/) config is subset of base config which is compatible with builtin NextJS eslint config.
63
+ Our index setup conflicts with the built-in ESLint [NextJS](https://nextjs.org/) configuration. To utilize it in a NextJS project, configure your eslintrc file as follows.
64
64
 
65
65
  ```json
66
66
  {
67
- "extends": ["@fullstacksjs/eslint-config/nextjs"]
67
+ "extends": ["next/core-web-vitals", "@fullstacksjs/eslint-config/nextjs"]
68
68
  }
69
69
  ```
70
70
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fullstacksjs/eslint-config",
3
- "version": "8.4.1",
3
+ "version": "8.4.2",
4
4
  "license": "MIT",
5
5
  "author": "fullstacks <fullstacksjs@gmail.com>",
6
6
  "description": "fullstacks eslint config",
@@ -47,15 +47,15 @@
47
47
  "main": "index.js",
48
48
  "dependencies": {
49
49
  "@frontendmonster/utils": "0.3.11",
50
- "@graphql-eslint/eslint-plugin": "3.10.1",
51
- "@typescript-eslint/eslint-plugin": "5.17.0",
52
- "@typescript-eslint/parser": "5.17.0",
50
+ "@graphql-eslint/eslint-plugin": "3.10.3",
51
+ "@typescript-eslint/eslint-plugin": "5.20.0",
52
+ "@typescript-eslint/parser": "5.20.0",
53
53
  "eslint-config-prettier": "8.5.0",
54
- "eslint-import-resolver-typescript": "2.7.0",
54
+ "eslint-import-resolver-typescript": "2.7.1",
55
55
  "eslint-plugin-cypress": "2.12.1",
56
56
  "eslint-plugin-fp": "2.3.0",
57
- "eslint-plugin-import": "2.25.4",
58
- "eslint-plugin-jest": "26.1.3",
57
+ "eslint-plugin-import": "2.26.0",
58
+ "eslint-plugin-jest": "26.1.5",
59
59
  "eslint-plugin-jest-formatting": "3.1.0",
60
60
  "eslint-plugin-jsx-a11y": "6.5.1",
61
61
  "eslint-plugin-node": "11.1.0",
@@ -64,19 +64,19 @@
64
64
  "eslint-plugin-react": "7.29.4",
65
65
  "eslint-plugin-react-hooks": "4.4.0",
66
66
  "eslint-plugin-simple-import-sort": "7.0.0",
67
- "eslint-plugin-storybook": "0.5.7",
67
+ "eslint-plugin-storybook": "0.5.11",
68
68
  "read-pkg-up": "7.0.1"
69
69
  },
70
70
  "devDependencies": {
71
71
  "cspell": "5.19.7",
72
- "eslint": "8.12.0",
72
+ "eslint": "8.14.0",
73
73
  "eslint-find-rules": "4.1.0",
74
74
  "husky": "7.0.4",
75
- "lint-staged": "12.3.7",
75
+ "lint-staged": "12.4.0",
76
76
  "np": "7.6.1",
77
77
  "npm-run-all": "4.1.5",
78
78
  "pinst": "3.0.0",
79
- "prettier": "2.6.1",
79
+ "prettier": "2.6.2",
80
80
  "typescript": "4.6.3"
81
81
  },
82
82
  "peerDependencies": {
@@ -5,14 +5,15 @@ module.exports = {
5
5
  'getter-return': ['error', { allowImplicit: true }],
6
6
  'no-compare-neg-zero': 'error',
7
7
  'no-cond-assign': 'error',
8
+ 'no-constant-binary-expression': 'warn',
8
9
  'no-constant-condition': 'error',
9
10
  'no-control-regex': 'error',
10
11
  'no-debugger': 'error',
11
12
  'no-dupe-args': 'error',
12
13
  'no-dupe-keys': 'error',
13
14
  'no-duplicate-case': 'error',
14
- 'no-empty-character-class': 'error',
15
15
  'no-empty': 'error',
16
+ 'no-empty-character-class': 'error',
16
17
  'no-ex-assign': 'error',
17
18
  'no-extra-boolean-cast': 'off',
18
19
  'no-func-assign': 'error',
@@ -26,8 +27,8 @@ module.exports = {
26
27
  'no-sparse-arrays': 'error',
27
28
  'no-template-curly-in-string': 'off', // Some libs need curly in string for internal templates.
28
29
  'no-unexpected-multiline': 'error',
29
- 'no-unreachable-loop': 'error',
30
30
  'no-unreachable': 'error',
31
+ 'no-unreachable-loop': 'error',
31
32
  'no-unsafe-finally': 'error',
32
33
  'no-unsafe-negation': 'error',
33
34
  'no-useless-backreference': 'error',
package/rules/import.js CHANGED
@@ -16,21 +16,21 @@ module.exports = {
16
16
  'import/no-anonymous-default-export': 'off',
17
17
  'import/no-commonjs': 'off',
18
18
  'import/no-cycle': ['error', { maxDepth: Infinity }],
19
- 'import/no-relative-packages': 'error',
20
- 'import/no-import-module-exports': 'off',
21
19
  'import/no-default-export': 'off',
22
20
  'import/no-deprecated': 'warn',
23
21
  'import/no-duplicates': 'error',
24
22
  'import/no-dynamic-require': 'off',
25
23
  'import/no-extraneous-dependencies': ['error', { devDependencies: true }],
24
+ 'import/no-import-module-exports': 'off',
26
25
  'import/no-internal-modules': 'off',
27
26
  'import/no-mutable-exports': 'error',
28
- 'import/no-named-as-default-member': 'error',
29
27
  'import/no-named-as-default': 'error',
28
+ 'import/no-named-as-default-member': 'error',
30
29
  'import/no-named-default': 'error',
31
30
  'import/no-named-export': 'off',
32
31
  'import/no-namespace': 'off',
33
32
  'import/no-nodejs-modules': 'off',
33
+ 'import/no-relative-packages': 'error',
34
34
  'import/no-relative-parent-imports': 'off',
35
35
  'import/no-restricted-paths': 'off',
36
36
  'import/no-self-import': 'error',