Skip to content

Commit 857b0e8

Browse files
committed
refactor(eslint-plugin-react-hooks): move rules to rules folder
Since the compiler plugin is going to be merged into the hooks plugin,, and ultimately decomposed into several more rules, it would be good to start creating a more traditional folder structure for the plugin. This change just moves the rules into a `rules` folder.
1 parent eb1f77d commit 857b0e8

File tree

3 files changed

+2
-2
lines changed

3 files changed

+2
-2
lines changed

Diff for: packages/eslint-plugin-react-hooks/README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ If you are still using ESLint below 9.0.0, please continue to use `recommended-l
3636
For [ESLint 9.0.0 and above](https://eslint.org/blog/2024/04/eslint-v9.0.0-released/) users, add the `recommended-latest` config.
3737

3838
```js
39-
import reactHooks from 'eslint-plugin-react-hooks';
39+
import * as reactHooks from 'eslint-plugin-react-hooks';
4040

4141
export default [
4242
// ...
@@ -67,7 +67,7 @@ If you want more fine-grained configuration, you can instead add a snippet like
6767
#### Flat Config (eslint.config.js)
6868

6969
```js
70-
import reactHooks from 'eslint-plugin-react-hooks';
70+
import * as reactHooks from 'eslint-plugin-react-hooks';
7171

7272
export default [
7373
{

0 commit comments

Comments
 (0)