@fullstacksjs/eslint-config 13.7.0 → 13.8.1

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.
@@ -113,8 +113,23 @@ function react(options = {}) {
113
113
  '@eslint-react/web-api/no-leaked-event-listener': 'error',
114
114
  '@eslint-react/web-api/no-leaked-interval': 'error',
115
115
  '@eslint-react/web-api/no-leaked-resize-observer': 'error',
116
- 'react-hooks/exhaustive-deps': 'warn',
117
116
  'react-hooks/rules-of-hooks': 'error',
117
+ 'react-hooks/exhaustive-deps': 'warn',
118
+ 'react-hooks/config': 'error',
119
+ 'react-hooks/error-boundaries': 'error',
120
+ 'react-hooks/component-hook-factories': 'error',
121
+ 'react-hooks/gating': 'error',
122
+ 'react-hooks/globals': 'error',
123
+ 'react-hooks/immutability': 'error',
124
+ 'react-hooks/preserve-manual-memoization': 'error',
125
+ 'react-hooks/purity': 'error',
126
+ 'react-hooks/refs': 'error',
127
+ 'react-hooks/set-state-in-effect': 'error',
128
+ 'react-hooks/set-state-in-render': 'error',
129
+ 'react-hooks/static-components': 'error',
130
+ 'react-hooks/unsupported-syntax': 'warn',
131
+ 'react-hooks/use-memo': 'error',
132
+ 'react-hooks/incompatible-library': 'warn',
118
133
  'jsx-a11y/alt-text': 'warn',
119
134
  'jsx-a11y/anchor-has-content': 'error',
120
135
  'jsx-a11y/anchor-is-valid': 'error',
@@ -198,8 +198,7 @@ function typescript(options = {}) {
198
198
  '@typescript-eslint/no-unnecessary-boolean-literal-compare': 'error',
199
199
  '@typescript-eslint/no-unsafe-enum-comparison': 'warn',
200
200
  '@typescript-eslint/no-unnecessary-condition': ['warn', {
201
- allowConstantLoopConditions: false,
202
- allowRuleToRunWithoutStrictNullChecksIKnowWhatIAmDoing: false
201
+ allowConstantLoopConditions: false
203
202
  }],
204
203
  '@typescript-eslint/no-unnecessary-qualifier': 'error',
205
204
  '@typescript-eslint/no-unnecessary-template-expression': 'warn',
@@ -216,8 +215,7 @@ function typescript(options = {}) {
216
215
  '@typescript-eslint/prefer-nullish-coalescing': ['warn', {
217
216
  ignoreConditionalTests: false,
218
217
  ignoreTernaryTests: false,
219
- ignoreMixedLogicalExpressions: false,
220
- allowRuleToRunWithoutStrictNullChecksIKnowWhatIAmDoing: false
218
+ ignoreMixedLogicalExpressions: true
221
219
  }],
222
220
  '@typescript-eslint/prefer-regexp-exec': 'warn',
223
221
  '@typescript-eslint/prefer-promise-reject-errors': 'warn',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fullstacksjs/eslint-config",
3
- "version": "13.7.0",
3
+ "version": "13.8.1",
4
4
  "license": "MIT",
5
5
  "author": "fullstacks <fullstacksjs@gmail.com>",
6
6
  "description": "fullstacks eslint config",
@@ -51,7 +51,7 @@
51
51
  "eslint-plugin-playwright": "2.2.2",
52
52
  "eslint-plugin-prettier": "5.5.4",
53
53
  "eslint-plugin-promise": "7.2.1",
54
- "eslint-plugin-react-hooks": "6.1.1",
54
+ "eslint-plugin-react-hooks": "7.0.0",
55
55
  "eslint-plugin-regexp": "2.10.0",
56
56
  "eslint-plugin-storybook": "0.12.0",
57
57
  "globals": "16.4.0",
@@ -113,8 +113,24 @@ function react(options = {}) {
113
113
  '@eslint-react/web-api/no-leaked-interval': 'error',
114
114
  '@eslint-react/web-api/no-leaked-resize-observer': 'error',
115
115
 
116
- 'react-hooks/exhaustive-deps': 'warn',
117
116
  'react-hooks/rules-of-hooks': 'error',
117
+ 'react-hooks/exhaustive-deps': 'warn',
118
+
119
+ 'react-hooks/config': 'error',
120
+ 'react-hooks/error-boundaries': 'error',
121
+ 'react-hooks/component-hook-factories': 'error',
122
+ 'react-hooks/gating': 'error',
123
+ 'react-hooks/globals': 'error',
124
+ 'react-hooks/immutability': 'error',
125
+ 'react-hooks/preserve-manual-memoization': 'error',
126
+ 'react-hooks/purity': 'error',
127
+ 'react-hooks/refs': 'error',
128
+ 'react-hooks/set-state-in-effect': 'error',
129
+ 'react-hooks/set-state-in-render': 'error',
130
+ 'react-hooks/static-components': 'error',
131
+ 'react-hooks/unsupported-syntax': 'warn',
132
+ 'react-hooks/use-memo': 'error',
133
+ 'react-hooks/incompatible-library': 'warn',
118
134
 
119
135
  'jsx-a11y/alt-text': 'warn',
120
136
  'jsx-a11y/anchor-has-content': 'error',
@@ -175,7 +175,6 @@ function typescript(options = {}) {
175
175
  'warn',
176
176
  {
177
177
  allowConstantLoopConditions: false,
178
- allowRuleToRunWithoutStrictNullChecksIKnowWhatIAmDoing: false,
179
178
  },
180
179
  ],
181
180
  '@typescript-eslint/no-unnecessary-qualifier': 'error',
@@ -193,8 +192,7 @@ function typescript(options = {}) {
193
192
  {
194
193
  ignoreConditionalTests: false,
195
194
  ignoreTernaryTests: false,
196
- ignoreMixedLogicalExpressions: false,
197
- allowRuleToRunWithoutStrictNullChecksIKnowWhatIAmDoing: false,
195
+ ignoreMixedLogicalExpressions: true,
198
196
  },
199
197
  ],
200
198
  '@typescript-eslint/prefer-regexp-exec': 'warn',