@eslint-react/eslint-plugin 1.12.3 → 1.12.4-beta.3
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 +5 -4
- package/dist/index.d.mts +1 -9
- package/dist/index.d.ts +1 -9
- package/dist/index.js +1 -3
- package/dist/index.mjs +1 -3
- package/package.json +10 -10
package/README.md
CHANGED
|
@@ -8,6 +8,9 @@
|
|
|
8
8
|
|
|
9
9
|
A series of composable ESLint plugins for libraries and frameworks that use React as a UI runtime.
|
|
10
10
|
|
|
11
|
+
> [!IMPORTANT]\
|
|
12
|
+
> `eslint-react` is not a fork of `eslint-plugin-react` and meanwhile `eslint-plugin-react` is not upstream of `eslint-react`.
|
|
13
|
+
|
|
11
14
|
## Features
|
|
12
15
|
|
|
13
16
|
- **Universal** rules for libraries and frameworks that use React as a UI runtime.
|
|
@@ -43,6 +46,7 @@ A series of composable ESLint plugins for libraries and frameworks that use Reac
|
|
|
43
46
|
- [`npmgraph/npmgraph`](https://github.com/npmgraph/npmgraph) - A tool for exploring NPM modules and dependencies.
|
|
44
47
|
- [`react-navigation/react-navigation`](https://github.com/react-navigation/react-navigation) - Routing and navigation for your React Native apps.
|
|
45
48
|
- [`RebeccaStevens/eslint-config-rebeccastevens`](https://github.com/RebeccaStevens/eslint-config-rebeccastevens) - RebeccaStevens' ESLint config preset.
|
|
49
|
+
- [`refined-github/refined-github`](https://github.com/refined-github/refined-github) - :octocat: Browser extension that simplifies the GitHub interface and adds useful features.
|
|
46
50
|
- [`RSSNext/follow`](https://github.com/RSSNext/follow) - 🧡 Next generation information browser.
|
|
47
51
|
- [`satya164/PocketGear`](https://github.com/satya164/PocketGear) - A clean and simple Pokédex app for Pokémon GO.
|
|
48
52
|
- [`SukkaW/eslint-config-sukka`](https://github.com/SukkaW/eslint-config-sukka) - ESLint configuration of Sukka.
|
|
@@ -51,6 +55,7 @@ A series of composable ESLint plugins for libraries and frameworks that use Reac
|
|
|
51
55
|
- [`TanStack/query`](https://github.com/TanStack/query) - 🤖 Powerful asynchronous state management, server-state utilities and data fetching for the web. TS/JS, React Query, Solid Query, Svelte Query and Vue Query.
|
|
52
56
|
- [`TanStack/router`](https://github.com/TanStack/router) - 🤖 Fully typesafe Router for React (and friends) w/ built-in caching, 1st class search-param APIs, client-side cache integration and isomorphic rendering.
|
|
53
57
|
- [`TanStack/store`](https://github.com/TanStack/store) - 🤖 Framework agnostic, type-safe store w/ reactive framework adapters.
|
|
58
|
+
- [`toss/suspensive`](https://github.com/toss/suspensive) - Manage asynchronous operations, timing, error handling, detecting intersection of elements, and caching easily and declaratively (One of TanStack Query community resources).
|
|
54
59
|
|
|
55
60
|
_Data collected from GitHub dependents network, if there are any mismatch or outdated information, feel free to [open issue](https://github.com/Rel1cx/eslint-react/issues/new?assignees=&labels=type%3A+documentation&projects=&template=docs_report.md&title=%5Bdocs%5D+) or pull request._
|
|
56
61
|
|
|
@@ -212,7 +217,3 @@ This project is licensed under the MIT License - see the [LICENSE](LICENSE) file
|
|
|
212
217
|
- [eslint-plugin-filenames-simple](https://github.com/epaew/eslint-plugin-filenames-simple)
|
|
213
218
|
- [rome/tools](https://github.com/rome/tools)
|
|
214
219
|
- [rust-clippy](https://github.com/rust-lang/rust-clippy)
|
|
215
|
-
|
|
216
|
-
## Prior art
|
|
217
|
-
|
|
218
|
-
- [eslint-plugin-react](https://github.com/jsx-eslint/eslint-plugin-react)
|
package/dist/index.d.mts
CHANGED
|
@@ -228,7 +228,6 @@ declare const _default: {
|
|
|
228
228
|
readonly rules: {
|
|
229
229
|
readonly "@eslint-react/hooks-extra/ensure-custom-hooks-using-other-hooks": "warn";
|
|
230
230
|
readonly "@eslint-react/hooks-extra/no-direct-set-state-in-use-effect": "warn";
|
|
231
|
-
readonly "@eslint-react/hooks-extra/no-direct-set-state-in-use-layout-effect": "warn";
|
|
232
231
|
readonly "@eslint-react/hooks-extra/prefer-use-state-lazy-initialization": "warn";
|
|
233
232
|
readonly "@eslint-react/web-api/no-leaked-event-listener": "warn";
|
|
234
233
|
readonly "@eslint-react/web-api/no-leaked-interval": "warn";
|
|
@@ -293,7 +292,6 @@ declare const _default: {
|
|
|
293
292
|
readonly rules: {
|
|
294
293
|
readonly "@eslint-react/hooks-extra/ensure-custom-hooks-using-other-hooks": "warn";
|
|
295
294
|
readonly "@eslint-react/hooks-extra/no-direct-set-state-in-use-effect": "warn";
|
|
296
|
-
readonly "@eslint-react/hooks-extra/no-direct-set-state-in-use-layout-effect": "warn";
|
|
297
295
|
readonly "@eslint-react/hooks-extra/prefer-use-state-lazy-initialization": "warn";
|
|
298
296
|
readonly "@eslint-react/web-api/no-leaked-event-listener": "warn";
|
|
299
297
|
readonly "@eslint-react/web-api/no-leaked-interval": "warn";
|
|
@@ -366,7 +364,6 @@ declare const _default: {
|
|
|
366
364
|
readonly "@eslint-react/no-leaked-conditional-rendering": "warn";
|
|
367
365
|
readonly "@eslint-react/hooks-extra/ensure-custom-hooks-using-other-hooks": "warn";
|
|
368
366
|
readonly "@eslint-react/hooks-extra/no-direct-set-state-in-use-effect": "warn";
|
|
369
|
-
readonly "@eslint-react/hooks-extra/no-direct-set-state-in-use-layout-effect": "warn";
|
|
370
367
|
readonly "@eslint-react/hooks-extra/prefer-use-state-lazy-initialization": "warn";
|
|
371
368
|
readonly "@eslint-react/web-api/no-leaked-event-listener": "warn";
|
|
372
369
|
readonly "@eslint-react/web-api/no-leaked-interval": "warn";
|
|
@@ -432,7 +429,6 @@ declare const _default: {
|
|
|
432
429
|
readonly "@eslint-react/no-leaked-conditional-rendering": "warn";
|
|
433
430
|
readonly "@eslint-react/hooks-extra/ensure-custom-hooks-using-other-hooks": "warn";
|
|
434
431
|
readonly "@eslint-react/hooks-extra/no-direct-set-state-in-use-effect": "warn";
|
|
435
|
-
readonly "@eslint-react/hooks-extra/no-direct-set-state-in-use-layout-effect": "warn";
|
|
436
432
|
readonly "@eslint-react/hooks-extra/prefer-use-state-lazy-initialization": "warn";
|
|
437
433
|
readonly "@eslint-react/web-api/no-leaked-event-listener": "warn";
|
|
438
434
|
readonly "@eslint-react/web-api/no-leaked-interval": "warn";
|
|
@@ -704,7 +700,6 @@ declare const _default: {
|
|
|
704
700
|
readonly "@eslint-react/hooks-extra/ensure-use-callback-has-non-empty-deps": "warn";
|
|
705
701
|
readonly "@eslint-react/hooks-extra/ensure-use-memo-has-non-empty-deps": "warn";
|
|
706
702
|
readonly "@eslint-react/hooks-extra/no-direct-set-state-in-use-effect": "warn";
|
|
707
|
-
readonly "@eslint-react/hooks-extra/no-direct-set-state-in-use-layout-effect": "warn";
|
|
708
703
|
readonly "@eslint-react/hooks-extra/prefer-use-state-lazy-initialization": "warn";
|
|
709
704
|
readonly "@eslint-react/naming-convention/component-name": "warn";
|
|
710
705
|
readonly "@eslint-react/naming-convention/filename": "warn";
|
|
@@ -786,7 +781,6 @@ declare const _default: {
|
|
|
786
781
|
readonly "@eslint-react/hooks-extra/ensure-use-callback-has-non-empty-deps": "warn";
|
|
787
782
|
readonly "@eslint-react/hooks-extra/ensure-use-memo-has-non-empty-deps": "warn";
|
|
788
783
|
readonly "@eslint-react/hooks-extra/no-direct-set-state-in-use-effect": "warn";
|
|
789
|
-
readonly "@eslint-react/hooks-extra/no-direct-set-state-in-use-layout-effect": "warn";
|
|
790
784
|
readonly "@eslint-react/hooks-extra/prefer-use-state-lazy-initialization": "warn";
|
|
791
785
|
readonly "@eslint-react/naming-convention/component-name": "warn";
|
|
792
786
|
readonly "@eslint-react/naming-convention/filename": "warn";
|
|
@@ -875,7 +869,6 @@ declare const _default: {
|
|
|
875
869
|
readonly "@eslint-react/hooks-extra/ensure-use-callback-has-non-empty-deps"?: "off";
|
|
876
870
|
readonly "@eslint-react/hooks-extra/ensure-use-memo-has-non-empty-deps"?: "off";
|
|
877
871
|
readonly "@eslint-react/hooks-extra/no-direct-set-state-in-use-effect"?: "off";
|
|
878
|
-
readonly "@eslint-react/hooks-extra/no-direct-set-state-in-use-layout-effect"?: "off";
|
|
879
872
|
readonly "@eslint-react/hooks-extra/prefer-use-state-lazy-initialization"?: "off";
|
|
880
873
|
readonly "@eslint-react/naming-convention/component-name"?: "off";
|
|
881
874
|
readonly "@eslint-react/naming-convention/filename"?: "off";
|
|
@@ -957,7 +950,6 @@ declare const _default: {
|
|
|
957
950
|
readonly "@eslint-react/hooks-extra/ensure-use-callback-has-non-empty-deps"?: "off";
|
|
958
951
|
readonly "@eslint-react/hooks-extra/ensure-use-memo-has-non-empty-deps"?: "off";
|
|
959
952
|
readonly "@eslint-react/hooks-extra/no-direct-set-state-in-use-effect"?: "off";
|
|
960
|
-
readonly "@eslint-react/hooks-extra/no-direct-set-state-in-use-layout-effect"?: "off";
|
|
961
953
|
readonly "@eslint-react/hooks-extra/prefer-use-state-lazy-initialization"?: "off";
|
|
962
954
|
readonly "@eslint-react/naming-convention/component-name"?: "off";
|
|
963
955
|
readonly "@eslint-react/naming-convention/filename"?: "off";
|
|
@@ -1063,7 +1055,7 @@ declare const _default: {
|
|
|
1063
1055
|
readonly "hooks-extra/ensure-use-callback-has-non-empty-deps": _typescript_eslint_utils_ts_eslint.RuleModule<"ensureUseCallbackHasNonEmptyDeps", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
1064
1056
|
readonly "hooks-extra/ensure-use-memo-has-non-empty-deps": _typescript_eslint_utils_ts_eslint.RuleModule<"ensureUseMemoHasNonEmptyDeps", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
1065
1057
|
readonly "hooks-extra/no-direct-set-state-in-use-effect": _typescript_eslint_utils_ts_eslint.RuleModule<"noDirectSetStateInUseEffect", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
1066
|
-
readonly "hooks-extra/no-direct-set-state-in-use-layout-effect": _typescript_eslint_utils_ts_eslint.RuleModule<"
|
|
1058
|
+
readonly "hooks-extra/no-direct-set-state-in-use-layout-effect": _typescript_eslint_utils_ts_eslint.RuleModule<"noDirectSetStateInUseEffect", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
1067
1059
|
readonly "hooks-extra/prefer-use-state-lazy-initialization": _typescript_eslint_utils_ts_eslint.RuleModule<"preferUseStateLazyInitialization", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
1068
1060
|
readonly "web-api/no-leaked-event-listener": _typescript_eslint_utils_ts_eslint.RuleModule<"noLeakedEventListenerInEffect" | "noLeakedEventListenerInLifecycle" | "noLeakedEventListenerOfInlineFunction", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
1069
1061
|
readonly "web-api/no-leaked-interval": _typescript_eslint_utils_ts_eslint.RuleModule<"noLeakedIntervalInEffect" | "noLeakedIntervalInLifecycle" | "noLeakedIntervalNoIntervalId", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
package/dist/index.d.ts
CHANGED
|
@@ -228,7 +228,6 @@ declare const _default: {
|
|
|
228
228
|
readonly rules: {
|
|
229
229
|
readonly "@eslint-react/hooks-extra/ensure-custom-hooks-using-other-hooks": "warn";
|
|
230
230
|
readonly "@eslint-react/hooks-extra/no-direct-set-state-in-use-effect": "warn";
|
|
231
|
-
readonly "@eslint-react/hooks-extra/no-direct-set-state-in-use-layout-effect": "warn";
|
|
232
231
|
readonly "@eslint-react/hooks-extra/prefer-use-state-lazy-initialization": "warn";
|
|
233
232
|
readonly "@eslint-react/web-api/no-leaked-event-listener": "warn";
|
|
234
233
|
readonly "@eslint-react/web-api/no-leaked-interval": "warn";
|
|
@@ -293,7 +292,6 @@ declare const _default: {
|
|
|
293
292
|
readonly rules: {
|
|
294
293
|
readonly "@eslint-react/hooks-extra/ensure-custom-hooks-using-other-hooks": "warn";
|
|
295
294
|
readonly "@eslint-react/hooks-extra/no-direct-set-state-in-use-effect": "warn";
|
|
296
|
-
readonly "@eslint-react/hooks-extra/no-direct-set-state-in-use-layout-effect": "warn";
|
|
297
295
|
readonly "@eslint-react/hooks-extra/prefer-use-state-lazy-initialization": "warn";
|
|
298
296
|
readonly "@eslint-react/web-api/no-leaked-event-listener": "warn";
|
|
299
297
|
readonly "@eslint-react/web-api/no-leaked-interval": "warn";
|
|
@@ -366,7 +364,6 @@ declare const _default: {
|
|
|
366
364
|
readonly "@eslint-react/no-leaked-conditional-rendering": "warn";
|
|
367
365
|
readonly "@eslint-react/hooks-extra/ensure-custom-hooks-using-other-hooks": "warn";
|
|
368
366
|
readonly "@eslint-react/hooks-extra/no-direct-set-state-in-use-effect": "warn";
|
|
369
|
-
readonly "@eslint-react/hooks-extra/no-direct-set-state-in-use-layout-effect": "warn";
|
|
370
367
|
readonly "@eslint-react/hooks-extra/prefer-use-state-lazy-initialization": "warn";
|
|
371
368
|
readonly "@eslint-react/web-api/no-leaked-event-listener": "warn";
|
|
372
369
|
readonly "@eslint-react/web-api/no-leaked-interval": "warn";
|
|
@@ -432,7 +429,6 @@ declare const _default: {
|
|
|
432
429
|
readonly "@eslint-react/no-leaked-conditional-rendering": "warn";
|
|
433
430
|
readonly "@eslint-react/hooks-extra/ensure-custom-hooks-using-other-hooks": "warn";
|
|
434
431
|
readonly "@eslint-react/hooks-extra/no-direct-set-state-in-use-effect": "warn";
|
|
435
|
-
readonly "@eslint-react/hooks-extra/no-direct-set-state-in-use-layout-effect": "warn";
|
|
436
432
|
readonly "@eslint-react/hooks-extra/prefer-use-state-lazy-initialization": "warn";
|
|
437
433
|
readonly "@eslint-react/web-api/no-leaked-event-listener": "warn";
|
|
438
434
|
readonly "@eslint-react/web-api/no-leaked-interval": "warn";
|
|
@@ -704,7 +700,6 @@ declare const _default: {
|
|
|
704
700
|
readonly "@eslint-react/hooks-extra/ensure-use-callback-has-non-empty-deps": "warn";
|
|
705
701
|
readonly "@eslint-react/hooks-extra/ensure-use-memo-has-non-empty-deps": "warn";
|
|
706
702
|
readonly "@eslint-react/hooks-extra/no-direct-set-state-in-use-effect": "warn";
|
|
707
|
-
readonly "@eslint-react/hooks-extra/no-direct-set-state-in-use-layout-effect": "warn";
|
|
708
703
|
readonly "@eslint-react/hooks-extra/prefer-use-state-lazy-initialization": "warn";
|
|
709
704
|
readonly "@eslint-react/naming-convention/component-name": "warn";
|
|
710
705
|
readonly "@eslint-react/naming-convention/filename": "warn";
|
|
@@ -786,7 +781,6 @@ declare const _default: {
|
|
|
786
781
|
readonly "@eslint-react/hooks-extra/ensure-use-callback-has-non-empty-deps": "warn";
|
|
787
782
|
readonly "@eslint-react/hooks-extra/ensure-use-memo-has-non-empty-deps": "warn";
|
|
788
783
|
readonly "@eslint-react/hooks-extra/no-direct-set-state-in-use-effect": "warn";
|
|
789
|
-
readonly "@eslint-react/hooks-extra/no-direct-set-state-in-use-layout-effect": "warn";
|
|
790
784
|
readonly "@eslint-react/hooks-extra/prefer-use-state-lazy-initialization": "warn";
|
|
791
785
|
readonly "@eslint-react/naming-convention/component-name": "warn";
|
|
792
786
|
readonly "@eslint-react/naming-convention/filename": "warn";
|
|
@@ -875,7 +869,6 @@ declare const _default: {
|
|
|
875
869
|
readonly "@eslint-react/hooks-extra/ensure-use-callback-has-non-empty-deps"?: "off";
|
|
876
870
|
readonly "@eslint-react/hooks-extra/ensure-use-memo-has-non-empty-deps"?: "off";
|
|
877
871
|
readonly "@eslint-react/hooks-extra/no-direct-set-state-in-use-effect"?: "off";
|
|
878
|
-
readonly "@eslint-react/hooks-extra/no-direct-set-state-in-use-layout-effect"?: "off";
|
|
879
872
|
readonly "@eslint-react/hooks-extra/prefer-use-state-lazy-initialization"?: "off";
|
|
880
873
|
readonly "@eslint-react/naming-convention/component-name"?: "off";
|
|
881
874
|
readonly "@eslint-react/naming-convention/filename"?: "off";
|
|
@@ -957,7 +950,6 @@ declare const _default: {
|
|
|
957
950
|
readonly "@eslint-react/hooks-extra/ensure-use-callback-has-non-empty-deps"?: "off";
|
|
958
951
|
readonly "@eslint-react/hooks-extra/ensure-use-memo-has-non-empty-deps"?: "off";
|
|
959
952
|
readonly "@eslint-react/hooks-extra/no-direct-set-state-in-use-effect"?: "off";
|
|
960
|
-
readonly "@eslint-react/hooks-extra/no-direct-set-state-in-use-layout-effect"?: "off";
|
|
961
953
|
readonly "@eslint-react/hooks-extra/prefer-use-state-lazy-initialization"?: "off";
|
|
962
954
|
readonly "@eslint-react/naming-convention/component-name"?: "off";
|
|
963
955
|
readonly "@eslint-react/naming-convention/filename"?: "off";
|
|
@@ -1063,7 +1055,7 @@ declare const _default: {
|
|
|
1063
1055
|
readonly "hooks-extra/ensure-use-callback-has-non-empty-deps": _typescript_eslint_utils_ts_eslint.RuleModule<"ensureUseCallbackHasNonEmptyDeps", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
1064
1056
|
readonly "hooks-extra/ensure-use-memo-has-non-empty-deps": _typescript_eslint_utils_ts_eslint.RuleModule<"ensureUseMemoHasNonEmptyDeps", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
1065
1057
|
readonly "hooks-extra/no-direct-set-state-in-use-effect": _typescript_eslint_utils_ts_eslint.RuleModule<"noDirectSetStateInUseEffect", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
1066
|
-
readonly "hooks-extra/no-direct-set-state-in-use-layout-effect": _typescript_eslint_utils_ts_eslint.RuleModule<"
|
|
1058
|
+
readonly "hooks-extra/no-direct-set-state-in-use-layout-effect": _typescript_eslint_utils_ts_eslint.RuleModule<"noDirectSetStateInUseEffect", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
1067
1059
|
readonly "hooks-extra/prefer-use-state-lazy-initialization": _typescript_eslint_utils_ts_eslint.RuleModule<"preferUseStateLazyInitialization", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
1068
1060
|
readonly "web-api/no-leaked-event-listener": _typescript_eslint_utils_ts_eslint.RuleModule<"noLeakedEventListenerInEffect" | "noLeakedEventListenerInLifecycle" | "noLeakedEventListenerOfInlineFunction", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
1069
1061
|
readonly "web-api/no-leaked-interval": _typescript_eslint_utils_ts_eslint.RuleModule<"noLeakedIntervalInEffect" | "noLeakedIntervalInLifecycle" | "noLeakedIntervalNoIntervalId", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
package/dist/index.js
CHANGED
|
@@ -37,7 +37,7 @@ var react__namespace = /*#__PURE__*/_interopNamespace(react);
|
|
|
37
37
|
|
|
38
38
|
// package.json
|
|
39
39
|
var name = "@eslint-react/eslint-plugin";
|
|
40
|
-
var version = "1.12.3";
|
|
40
|
+
var version = "1.12.4-beta.3";
|
|
41
41
|
function transformKeys(obj, transform) {
|
|
42
42
|
if (tools.typeOf(obj) !== "object") return obj;
|
|
43
43
|
const res = {};
|
|
@@ -121,7 +121,6 @@ var allPreset = {
|
|
|
121
121
|
"hooks-extra/ensure-use-callback-has-non-empty-deps": "warn",
|
|
122
122
|
"hooks-extra/ensure-use-memo-has-non-empty-deps": "warn",
|
|
123
123
|
"hooks-extra/no-direct-set-state-in-use-effect": "warn",
|
|
124
|
-
"hooks-extra/no-direct-set-state-in-use-layout-effect": "warn",
|
|
125
124
|
"hooks-extra/prefer-use-state-lazy-initialization": "warn",
|
|
126
125
|
"naming-convention/component-name": "warn",
|
|
127
126
|
"naming-convention/filename": "warn",
|
|
@@ -196,7 +195,6 @@ var webApiPreset = {
|
|
|
196
195
|
var hooksExtraPreset = {
|
|
197
196
|
"hooks-extra/ensure-custom-hooks-using-other-hooks": "warn",
|
|
198
197
|
"hooks-extra/no-direct-set-state-in-use-effect": "warn",
|
|
199
|
-
"hooks-extra/no-direct-set-state-in-use-layout-effect": "warn",
|
|
200
198
|
"hooks-extra/prefer-use-state-lazy-initialization": "warn"
|
|
201
199
|
};
|
|
202
200
|
var recommendedPreset = {
|
package/dist/index.mjs
CHANGED
|
@@ -10,7 +10,7 @@ import * as react from 'eslint-plugin-react-x';
|
|
|
10
10
|
|
|
11
11
|
// package.json
|
|
12
12
|
var name = "@eslint-react/eslint-plugin";
|
|
13
|
-
var version = "1.12.3";
|
|
13
|
+
var version = "1.12.4-beta.3";
|
|
14
14
|
function transformKeys(obj, transform) {
|
|
15
15
|
if (typeOf(obj) !== "object") return obj;
|
|
16
16
|
const res = {};
|
|
@@ -94,7 +94,6 @@ var allPreset = {
|
|
|
94
94
|
"hooks-extra/ensure-use-callback-has-non-empty-deps": "warn",
|
|
95
95
|
"hooks-extra/ensure-use-memo-has-non-empty-deps": "warn",
|
|
96
96
|
"hooks-extra/no-direct-set-state-in-use-effect": "warn",
|
|
97
|
-
"hooks-extra/no-direct-set-state-in-use-layout-effect": "warn",
|
|
98
97
|
"hooks-extra/prefer-use-state-lazy-initialization": "warn",
|
|
99
98
|
"naming-convention/component-name": "warn",
|
|
100
99
|
"naming-convention/filename": "warn",
|
|
@@ -169,7 +168,6 @@ var webApiPreset = {
|
|
|
169
168
|
var hooksExtraPreset = {
|
|
170
169
|
"hooks-extra/ensure-custom-hooks-using-other-hooks": "warn",
|
|
171
170
|
"hooks-extra/no-direct-set-state-in-use-effect": "warn",
|
|
172
|
-
"hooks-extra/no-direct-set-state-in-use-layout-effect": "warn",
|
|
173
171
|
"hooks-extra/prefer-use-state-lazy-initialization": "warn"
|
|
174
172
|
};
|
|
175
173
|
var recommendedPreset = {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@eslint-react/eslint-plugin",
|
|
3
|
-
"version": "1.12.3",
|
|
3
|
+
"version": "1.12.4-beta.3",
|
|
4
4
|
"description": "The main ESLint plugin of ESLint React. Contains all the rules and presets of ESLint React.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"eslint",
|
|
@@ -47,15 +47,15 @@
|
|
|
47
47
|
"@typescript-eslint/type-utils": "^8.3.0",
|
|
48
48
|
"@typescript-eslint/types": "^8.3.0",
|
|
49
49
|
"@typescript-eslint/utils": "^8.3.0",
|
|
50
|
-
"@eslint-react/
|
|
51
|
-
"@eslint-react/
|
|
52
|
-
"
|
|
53
|
-
"eslint-
|
|
54
|
-
"eslint-plugin-react-dom": "1.12.3",
|
|
55
|
-
"eslint-plugin-react-
|
|
56
|
-
"eslint-plugin-react-
|
|
57
|
-
"eslint-plugin-react-web-api": "1.12.3",
|
|
58
|
-
"eslint-plugin-react-x": "1.12.3"
|
|
50
|
+
"@eslint-react/shared": "1.12.4-beta.3",
|
|
51
|
+
"@eslint-react/tools": "1.12.4-beta.3",
|
|
52
|
+
"eslint-plugin-react-debug": "1.12.4-beta.3",
|
|
53
|
+
"@eslint-react/types": "1.12.4-beta.3",
|
|
54
|
+
"eslint-plugin-react-dom": "1.12.4-beta.3",
|
|
55
|
+
"eslint-plugin-react-naming-convention": "1.12.4-beta.3",
|
|
56
|
+
"eslint-plugin-react-hooks-extra": "1.12.4-beta.3",
|
|
57
|
+
"eslint-plugin-react-web-api": "1.12.4-beta.3",
|
|
58
|
+
"eslint-plugin-react-x": "1.12.4-beta.3"
|
|
59
59
|
},
|
|
60
60
|
"devDependencies": {
|
|
61
61
|
"tsup": "^8.2.4"
|