@fullstacksjs/eslint-config 13.7.0 → 13.8.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/cjs/modules/react.js +16 -1
- package/package.json +2 -2
- package/src/modules/react.mjs +17 -1
package/cjs/modules/react.js
CHANGED
|
@@ -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',
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fullstacksjs/eslint-config",
|
|
3
|
-
"version": "13.
|
|
3
|
+
"version": "13.8.0",
|
|
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": "
|
|
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",
|
package/src/modules/react.mjs
CHANGED
|
@@ -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',
|