@fullstacksjs/eslint-config 10.9.0 → 10.10.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/README.md CHANGED
@@ -106,11 +106,16 @@ To conditionally disable expensive linting rules, you can modify your configurat
106
106
 
107
107
  list of expensiveRules to be effected:
108
108
 
109
- ```js
110
- '@typescript-eslint/no-misused-promises'
111
- 'import/no-cycle'
112
- 'import/namespace'
113
109
  ```
110
+ @typescript-eslint/no-misused-promises
111
+ import/no-cycle
112
+ import/named *
113
+ import/namespace *
114
+ import/default *
115
+ import/no-named-as-default-member *
116
+ ```
117
+
118
+ > *: If you are using Typescript these rules are not needed and disabled by default.
114
119
 
115
120
  ```js
116
121
  module.exports = init({
package/import.js CHANGED
@@ -14,7 +14,7 @@ module.exports = {
14
14
  },
15
15
  rules: {
16
16
  'import/consistent-type-specifier-style': ['warn', 'prefer-top-level'],
17
- 'import/default': 'error',
17
+ 'import/default': expensiveRules('error'),
18
18
  'import/dynamic-import-chunkname': 'off',
19
19
  'import/export': expensiveRules('error'),
20
20
  'import/exports-last': 'off',
@@ -40,7 +40,7 @@ module.exports = {
40
40
  'import/no-internal-modules': 'off',
41
41
  'import/no-mutable-exports': 'error',
42
42
  'import/no-named-as-default': 'error',
43
- 'import/no-named-as-default-member': 'error',
43
+ 'import/no-named-as-default-member': expensiveRules('error'),
44
44
  'import/no-named-default': 'error',
45
45
  'import/no-named-export': 'off',
46
46
  'import/no-namespace': 'off',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fullstacksjs/eslint-config",
3
- "version": "10.9.0",
3
+ "version": "10.10.0",
4
4
  "license": "MIT",
5
5
  "author": "fullstacks <fullstacksjs@gmail.com>",
6
6
  "description": "fullstacks eslint config",
@@ -50,8 +50,8 @@
50
50
  "main": "index.js",
51
51
  "dependencies": {
52
52
  "@graphql-eslint/eslint-plugin": "3.20.1",
53
- "@typescript-eslint/eslint-plugin": "6.15.0",
54
- "@typescript-eslint/parser": "6.15.0",
53
+ "@typescript-eslint/eslint-plugin": "6.19.0",
54
+ "@typescript-eslint/parser": "6.19.0",
55
55
  "deepmerge": "4.3.1",
56
56
  "eslint-config-next": "14.0.4",
57
57
  "eslint-config-prettier": "9.1.0",
@@ -59,24 +59,24 @@
59
59
  "eslint-plugin-cypress": "2.15.1",
60
60
  "eslint-plugin-fp": "2.3.0",
61
61
  "eslint-plugin-import": "2.29.1",
62
- "eslint-plugin-jest": "27.6.0",
62
+ "eslint-plugin-jest": "27.6.3",
63
63
  "eslint-plugin-jest-formatting": "3.1.0",
64
64
  "eslint-plugin-jsx-a11y": "6.8.0",
65
65
  "eslint-plugin-node": "11.1.0",
66
- "eslint-plugin-prettier": "5.1.1",
66
+ "eslint-plugin-prettier": "5.1.3",
67
67
  "eslint-plugin-promise": "6.1.1",
68
68
  "eslint-plugin-react": "7.33.2",
69
69
  "eslint-plugin-react-hooks": "4.6.0",
70
70
  "eslint-plugin-simple-import-sort": "10.0.0",
71
71
  "eslint-plugin-storybook": "0.6.15",
72
- "eslint-plugin-tailwindcss": "3.13.0",
72
+ "eslint-plugin-tailwindcss": "3.14.0",
73
73
  "read-pkg-up": "7.0.1"
74
74
  },
75
75
  "devDependencies": {
76
76
  "@semantic-release/github": "9.2.6",
77
77
  "@semantic-release/npm": "11.0.2",
78
78
  "@semantic-release/release-notes-generator": "12.1.0",
79
- "cspell": "8.2.3",
79
+ "cspell": "8.3.2",
80
80
  "eslint": "8.56.0",
81
81
  "eslint-find-rules": "4.1.0",
82
82
  "husky": "8.0.3",
@@ -84,8 +84,8 @@
84
84
  "np": "9.2.0",
85
85
  "npm-run-all": "4.1.5",
86
86
  "pinst": "3.0.0",
87
- "prettier": "3.1.1",
88
- "semantic-release": "22.0.12",
87
+ "prettier": "3.2.4",
88
+ "semantic-release": "23.0.0",
89
89
  "typescript": "5.3.3"
90
90
  },
91
91
  "peerDependencies": {
package/typecheck.js CHANGED
@@ -54,6 +54,7 @@ module.exports = {
54
54
  },
55
55
  ],
56
56
  '@typescript-eslint/prefer-regexp-exec': 'warn',
57
+ '@typescript-eslint/prefer-promise-reject-errors': 'warn',
57
58
  '@typescript-eslint/prefer-return-this-type': 'warn',
58
59
  '@typescript-eslint/prefer-string-starts-ends-with': 'warn',
59
60
  '@typescript-eslint/restrict-template-expressions': [
@@ -79,6 +80,7 @@ module.exports = {
79
80
 
80
81
  // collisions
81
82
  'dot-notation': 'off',
83
+ 'prefer-promise-reject-errors': 'off',
82
84
  },
83
85
  },
84
86
  ],
package/typescript.js CHANGED
@@ -159,6 +159,10 @@ module.exports = {
159
159
 
160
160
  // open issues
161
161
  'react/jsx-no-useless-fragment': 'off', // Need useless-fragment for JSX return type
162
+ 'import/named': 'off',
163
+ 'import/namespace': 'off',
164
+ 'import/default': 'off',
165
+ 'import/no-named-as-default-member': 'off',
162
166
  },
163
167
  },
164
168
  ],