Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refactor!: migrate from eslint-plugin-react to eslint react #453

Merged
merged 3 commits into from
Apr 17, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -471,7 +471,7 @@ export default antfu({
Running `npx eslint` should prompt you to install the required dependencies, otherwise, you can install them manually:

```bash
npm i -D eslint-plugin-react eslint-plugin-react-hooks eslint-plugin-react-refresh
npm i -D @eslint-react/eslint-plugin eslint-plugin-react-hooks eslint-plugin-react-refresh
```

#### Svelte
Expand Down
10 changes: 5 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,12 +39,12 @@
"prepare": "simple-git-hooks"
},
"peerDependencies": {
"@eslint-react/eslint-plugin": "^1.5.8",
"@unocss/eslint-plugin": ">=0.50.0",
"astro-eslint-parser": "^0.16.3",
"eslint": ">=8.40.0",
"eslint-plugin-astro": "^0.31.4",
"eslint-plugin-format": ">=0.1.0",
"eslint-plugin-react": "^7.33.2",
"eslint-plugin-react-hooks": "^4.6.0",
"eslint-plugin-react-refresh": "^0.4.4",
"eslint-plugin-solid": "^0.13.2",
Expand All @@ -54,6 +54,9 @@
"svelte-eslint-parser": "^0.33.1"
},
"peerDependenciesMeta": {
"@eslint-react/eslint-plugin": {
"optional": true
},
"@unocss/eslint-plugin": {
"optional": true
},
Expand All @@ -66,9 +69,6 @@
"eslint-plugin-format": {
"optional": true
},
"eslint-plugin-react": {
"optional": true
},
"eslint-plugin-react-hooks": {
"optional": true
},
Expand Down Expand Up @@ -130,6 +130,7 @@
"@antfu/eslint-config": "workspace:*",
"@antfu/eslint-plugin-prettier": "^5.0.1-1",
"@antfu/ni": "^0.21.12",
"@eslint-react/eslint-plugin": "^1.5.8",
"@eslint/config-inspector": "^0.4.6",
"@stylistic/eslint-plugin-migrate": "^1.7.0",
"@types/eslint": "^8.56.9",
Expand All @@ -144,7 +145,6 @@
"eslint": "^9.0.0",
"eslint-plugin-astro": "^0.34.0",
"eslint-plugin-format": "^0.1.0",
"eslint-plugin-react": "^7.34.1",
"eslint-plugin-react-hooks": "^4.6.0",
"eslint-plugin-react-refresh": "^0.4.6",
"eslint-plugin-solid": "^0.13.2",
Expand Down