eslint-plugin-react-hooks-extra 1.5.22 → 1.5.23-beta.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.
- package/dist/index.js +5 -5
- package/dist/index.mjs +5 -5
- package/package.json +8 -8
package/dist/index.js
CHANGED
|
@@ -13,7 +13,7 @@ var __export = (target, all2) => {
|
|
|
13
13
|
|
|
14
14
|
// package.json
|
|
15
15
|
var name = "eslint-plugin-react-hooks-extra";
|
|
16
|
-
var version = "1.5.
|
|
16
|
+
var version = "1.5.23-beta.1";
|
|
17
17
|
var createRule = shared.createRuleForPlugin("hooks-extra");
|
|
18
18
|
|
|
19
19
|
// src/rules/ensure-custom-hooks-using-other-hooks.ts
|
|
@@ -25,7 +25,7 @@ var ensure_custom_hooks_using_other_hooks_default = createRule({
|
|
|
25
25
|
description: "enforce custom hooks using other hooks"
|
|
26
26
|
},
|
|
27
27
|
messages: {
|
|
28
|
-
ENSURE_CUSTOM_HOOKS_USING_OTHER_HOOKS: "A custom hook '{{name}}' should use other hooks"
|
|
28
|
+
ENSURE_CUSTOM_HOOKS_USING_OTHER_HOOKS: "A custom hook '{{name}}' should use other hooks."
|
|
29
29
|
},
|
|
30
30
|
schema: []
|
|
31
31
|
},
|
|
@@ -1169,7 +1169,7 @@ var ensure_use_callback_has_non_empty_deps_default = createRule({
|
|
|
1169
1169
|
description: "enforce 'useCallback' has non-empty dependencies array"
|
|
1170
1170
|
},
|
|
1171
1171
|
messages: {
|
|
1172
|
-
ENSURE_USE_CALLBACK_HAS_NON_EMPTY_DEPS: "An useCallback should have a non-empty dependencies array"
|
|
1172
|
+
ENSURE_USE_CALLBACK_HAS_NON_EMPTY_DEPS: "An useCallback should have a non-empty dependencies array."
|
|
1173
1173
|
},
|
|
1174
1174
|
schema: []
|
|
1175
1175
|
},
|
|
@@ -1219,7 +1219,7 @@ var ensure_use_memo_has_non_empty_deps_default = createRule({
|
|
|
1219
1219
|
description: "enforce 'useMemo' has non-empty dependencies array"
|
|
1220
1220
|
},
|
|
1221
1221
|
messages: {
|
|
1222
|
-
ENSURE_USE_MEMO_HAS_NON_EMPTY_DEPS: "An useMemo should have a non-empty dependencies array"
|
|
1222
|
+
ENSURE_USE_MEMO_HAS_NON_EMPTY_DEPS: "An useMemo should have a non-empty dependencies array."
|
|
1223
1223
|
},
|
|
1224
1224
|
schema: []
|
|
1225
1225
|
},
|
|
@@ -1268,7 +1268,7 @@ var prefer_use_state_lazy_initialization_default = createRule({
|
|
|
1268
1268
|
description: "disallow function calls in 'useState' that aren't wrapped in an initializer function"
|
|
1269
1269
|
},
|
|
1270
1270
|
messages: {
|
|
1271
|
-
PREFER_USE_STATE_LAZY_INITIALIZATION: "To prevent re-computation, consider using lazy initial state for useState calls that involve function calls. Ex: 'useState(() => getValue())'"
|
|
1271
|
+
PREFER_USE_STATE_LAZY_INITIALIZATION: "To prevent re-computation, consider using lazy initial state for useState calls that involve function calls. Ex: 'useState(() => getValue())'."
|
|
1272
1272
|
},
|
|
1273
1273
|
schema: []
|
|
1274
1274
|
},
|
package/dist/index.mjs
CHANGED
|
@@ -11,7 +11,7 @@ var __export = (target, all2) => {
|
|
|
11
11
|
|
|
12
12
|
// package.json
|
|
13
13
|
var name = "eslint-plugin-react-hooks-extra";
|
|
14
|
-
var version = "1.5.
|
|
14
|
+
var version = "1.5.23-beta.1";
|
|
15
15
|
var createRule = createRuleForPlugin("hooks-extra");
|
|
16
16
|
|
|
17
17
|
// src/rules/ensure-custom-hooks-using-other-hooks.ts
|
|
@@ -23,7 +23,7 @@ var ensure_custom_hooks_using_other_hooks_default = createRule({
|
|
|
23
23
|
description: "enforce custom hooks using other hooks"
|
|
24
24
|
},
|
|
25
25
|
messages: {
|
|
26
|
-
ENSURE_CUSTOM_HOOKS_USING_OTHER_HOOKS: "A custom hook '{{name}}' should use other hooks"
|
|
26
|
+
ENSURE_CUSTOM_HOOKS_USING_OTHER_HOOKS: "A custom hook '{{name}}' should use other hooks."
|
|
27
27
|
},
|
|
28
28
|
schema: []
|
|
29
29
|
},
|
|
@@ -1167,7 +1167,7 @@ var ensure_use_callback_has_non_empty_deps_default = createRule({
|
|
|
1167
1167
|
description: "enforce 'useCallback' has non-empty dependencies array"
|
|
1168
1168
|
},
|
|
1169
1169
|
messages: {
|
|
1170
|
-
ENSURE_USE_CALLBACK_HAS_NON_EMPTY_DEPS: "An useCallback should have a non-empty dependencies array"
|
|
1170
|
+
ENSURE_USE_CALLBACK_HAS_NON_EMPTY_DEPS: "An useCallback should have a non-empty dependencies array."
|
|
1171
1171
|
},
|
|
1172
1172
|
schema: []
|
|
1173
1173
|
},
|
|
@@ -1217,7 +1217,7 @@ var ensure_use_memo_has_non_empty_deps_default = createRule({
|
|
|
1217
1217
|
description: "enforce 'useMemo' has non-empty dependencies array"
|
|
1218
1218
|
},
|
|
1219
1219
|
messages: {
|
|
1220
|
-
ENSURE_USE_MEMO_HAS_NON_EMPTY_DEPS: "An useMemo should have a non-empty dependencies array"
|
|
1220
|
+
ENSURE_USE_MEMO_HAS_NON_EMPTY_DEPS: "An useMemo should have a non-empty dependencies array."
|
|
1221
1221
|
},
|
|
1222
1222
|
schema: []
|
|
1223
1223
|
},
|
|
@@ -1266,7 +1266,7 @@ var prefer_use_state_lazy_initialization_default = createRule({
|
|
|
1266
1266
|
description: "disallow function calls in 'useState' that aren't wrapped in an initializer function"
|
|
1267
1267
|
},
|
|
1268
1268
|
messages: {
|
|
1269
|
-
PREFER_USE_STATE_LAZY_INITIALIZATION: "To prevent re-computation, consider using lazy initial state for useState calls that involve function calls. Ex: 'useState(() => getValue())'"
|
|
1269
|
+
PREFER_USE_STATE_LAZY_INITIALIZATION: "To prevent re-computation, consider using lazy initial state for useState calls that involve function calls. Ex: 'useState(() => getValue())'."
|
|
1270
1270
|
},
|
|
1271
1271
|
schema: []
|
|
1272
1272
|
},
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "eslint-plugin-react-hooks-extra",
|
|
3
|
-
"version": "1.5.
|
|
3
|
+
"version": "1.5.23-beta.1",
|
|
4
4
|
"description": "ESLint React's ESLint plugin for React Hooks related rules.",
|
|
5
5
|
"homepage": "https://github.com/rel1cx/eslint-react",
|
|
6
6
|
"bugs": {
|
|
@@ -39,13 +39,13 @@
|
|
|
39
39
|
"@typescript-eslint/type-utils": "7.15.0",
|
|
40
40
|
"@typescript-eslint/types": "7.15.0",
|
|
41
41
|
"@typescript-eslint/utils": "7.15.0",
|
|
42
|
-
"@eslint-react/ast": "1.5.
|
|
43
|
-
"@eslint-react/core": "1.5.
|
|
44
|
-
"@eslint-react/
|
|
45
|
-
"@eslint-react/
|
|
46
|
-
"@eslint-react/var": "1.5.
|
|
47
|
-
"@eslint-react/
|
|
48
|
-
"@eslint-react/types": "1.5.
|
|
42
|
+
"@eslint-react/ast": "1.5.23-beta.1",
|
|
43
|
+
"@eslint-react/core": "1.5.23-beta.1",
|
|
44
|
+
"@eslint-react/jsx": "1.5.23-beta.1",
|
|
45
|
+
"@eslint-react/shared": "1.5.23-beta.1",
|
|
46
|
+
"@eslint-react/var": "1.5.23-beta.1",
|
|
47
|
+
"@eslint-react/tools": "1.5.23-beta.1",
|
|
48
|
+
"@eslint-react/types": "1.5.23-beta.1"
|
|
49
49
|
},
|
|
50
50
|
"devDependencies": {
|
|
51
51
|
"dedent": "1.5.3",
|