@eslint-react/eslint-plugin 1.8.0-next.2 → 1.8.0-next.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 +21 -31
- package/dist/index.d.mts +547 -15
- package/dist/index.d.ts +547 -15
- package/dist/index.js +1 -1
- package/dist/index.mjs +1 -1
- package/package.json +10 -10
package/README.md
CHANGED
|
@@ -32,26 +32,34 @@ A series of composable ESLint rules rewritten from scratch for libraries and fra
|
|
|
32
32
|
- [`eslint-plugin-react-hooks-extra`](https://github.com/Rel1cx/eslint-react/tree/main/packages/plugins/eslint-plugin-react-hooks-extra) - Extra React Hooks rules.
|
|
33
33
|
- [`eslint-plugin-react-naming-convention`](https://github.com/Rel1cx/eslint-react/tree/main/packages/plugins/eslint-plugin-react-naming-convention) - Naming convention rules.
|
|
34
34
|
|
|
35
|
-
##
|
|
36
|
-
|
|
37
|
-
### Node.js
|
|
38
|
-
|
|
39
|
-
- 18.18.0 or later
|
|
35
|
+
## Who is using?
|
|
40
36
|
|
|
41
|
-
|
|
37
|
+
- [`antfu/eslint-config`](https://github.com/antfu/eslint-config) - Anthony's ESLint config preset.
|
|
38
|
+
- [`christopher-buss/roblox-ts-eslint-config`](https://github.com/christopher-buss/roblox-ts-eslint-config) - iSentinel's ESLint config preset for Roblox-TS.
|
|
39
|
+
- [`DimensionDev/Maskbook`](https://github.com/DimensionDev/Maskbook) - The portal to the new, open Internet. ([I:b]).
|
|
40
|
+
- [`dream-num/univer`](https://github.com/dream-num/univer) - Univer is an open-source alternative to Google Sheets, Slides, and Docs.
|
|
41
|
+
- [`hairyf/overlastic`](https://github.com/hairyf/overlastic) - A universal overlays utils, support react, vue, vanilla, svelte.
|
|
42
|
+
- [`react-navigation/react-navigation`](https://github.com/react-navigation/react-navigation) - Routing and navigation for your React Native apps.
|
|
43
|
+
- [`RSSNext/follow`](https://github.com/RSSNext/follow) - 🧡 Next generation information browser.
|
|
44
|
+
- [`SukkaW/eslint-config-sukka`](https://github.com/SukkaW/eslint-config-sukka) - ESLint configuration of Sukka.
|
|
45
|
+
- [`SukkaW/foxact`](https://github.com/SukkaW/foxact) - React Hooks/Utils done right. For Browser, SSR, and React Server Components.
|
|
46
|
+
- [`TanStack/form`](https://github.com/TanStack/form) - 🤖 Powerful and type-safe form state management for the web. TS/JS, React Form, Solid Form, Lit Form and Vue Form.
|
|
47
|
+
- [`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.
|
|
48
|
+
- [`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.
|
|
49
|
+
- [`TanStack/store`](https://github.com/TanStack/store) - 🤖 Framework agnostic, type-safe store w/ reactive framework adapters.
|
|
42
50
|
|
|
43
|
-
|
|
51
|
+
Find more projects using ESLint React on [GitHub](https://github.com/Rel1cx/eslint-react/network/dependents).
|
|
44
52
|
|
|
45
|
-
|
|
53
|
+
## Install
|
|
46
54
|
|
|
47
55
|
```sh
|
|
48
56
|
# npm
|
|
49
57
|
npm install --save-dev @eslint-react/eslint-plugin
|
|
50
58
|
```
|
|
51
59
|
|
|
52
|
-
|
|
60
|
+
## Setup
|
|
53
61
|
|
|
54
|
-
|
|
62
|
+
### Flat Config
|
|
55
63
|
|
|
56
64
|
Add the plugin to your `eslint.config.js`:
|
|
57
65
|
|
|
@@ -74,7 +82,7 @@ export default [
|
|
|
74
82
|
];
|
|
75
83
|
```
|
|
76
84
|
|
|
77
|
-
|
|
85
|
+
### Legacy Config
|
|
78
86
|
|
|
79
87
|
Add the plugin to your `.eslintrc.json`:
|
|
80
88
|
|
|
@@ -98,7 +106,7 @@ Add the plugin to your `.eslintrc.json`:
|
|
|
98
106
|
|
|
99
107
|
## Presets
|
|
100
108
|
|
|
101
|
-
|
|
109
|
+
### Flat Config
|
|
102
110
|
|
|
103
111
|
- **recommended**\
|
|
104
112
|
Enable rules that are recommended by ESLint React.
|
|
@@ -111,7 +119,7 @@ Add the plugin to your `.eslintrc.json`:
|
|
|
111
119
|
- **off**\
|
|
112
120
|
Disable all rules in this plugin except for debug rules.
|
|
113
121
|
|
|
114
|
-
|
|
122
|
+
### Legacy Config
|
|
115
123
|
|
|
116
124
|
- **recommended-legacy**\
|
|
117
125
|
Enable rules that are recommended by ESLint React.
|
|
@@ -134,24 +142,6 @@ Add the plugin to your `.eslintrc.json`:
|
|
|
134
142
|
|
|
135
143
|
[Frequently Asked Questions ↗](https://eslint-react.xyz/docs/faq)
|
|
136
144
|
|
|
137
|
-
## Who is using?
|
|
138
|
-
|
|
139
|
-
- [`antfu/eslint-config`](https://github.com/antfu/eslint-config) - Anthony's ESLint config preset.
|
|
140
|
-
- [`christopher-buss/roblox-ts-eslint-config`](https://github.com/christopher-buss/roblox-ts-eslint-config) - iSentinel's ESLint config preset for Roblox-TS.
|
|
141
|
-
- [`DimensionDev/Maskbook`](https://github.com/DimensionDev/Maskbook) - The portal to the new, open Internet. ([I:b]).
|
|
142
|
-
- [`dream-num/univer`](https://github.com/dream-num/univer) - Univer is an open-source alternative to Google Sheets, Slides, and Docs.
|
|
143
|
-
- [`hairyf/overlastic`](https://github.com/hairyf/overlastic) - A universal overlays utils, support react, vue, vanilla, svelte.
|
|
144
|
-
- [`react-navigation/react-navigation`](https://github.com/react-navigation/react-navigation) - Routing and navigation for your React Native apps.
|
|
145
|
-
- [`RSSNext/follow`](https://github.com/RSSNext/follow) - 🧡 Next generation information browser.
|
|
146
|
-
- [`SukkaW/eslint-config-sukka`](https://github.com/SukkaW/eslint-config-sukka) - ESLint configuration of Sukka.
|
|
147
|
-
- [`SukkaW/foxact`](https://github.com/SukkaW/foxact) - React Hooks/Utils done right. For Browser, SSR, and React Server Components.
|
|
148
|
-
- [`TanStack/form`](https://github.com/TanStack/form) - 🤖 Powerful and type-safe form state management for the web. TS/JS, React Form, Solid Form, Lit Form and Vue Form.
|
|
149
|
-
- [`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.
|
|
150
|
-
- [`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.
|
|
151
|
-
- [`TanStack/store`](https://github.com/TanStack/store) - 🤖 Framework agnostic, type-safe store w/ reactive framework adapters.
|
|
152
|
-
|
|
153
|
-
Find more projects using ESLint React on [GitHub](https://github.com/Rel1cx/eslint-react/network/dependents).
|
|
154
|
-
|
|
155
145
|
## Contributing
|
|
156
146
|
|
|
157
147
|
Before you start working on something, it's best to check if there is an existing issue first. It's also a good idea to reach the maintainer and confirm if it makes sense or if someone else is already working on it.
|