Skip to content

Commit a6e0927

Browse files
author
devgioele
committed
change peer dependency next to @next/eslint-plugin-next
1 parent e395764 commit a6e0927

3 files changed

Lines changed: 62 additions & 7 deletions

File tree

package-lock.json

Lines changed: 56 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@
5858
"peerDependencies": {
5959
"eslint-plugin-react": "^7.33.0",
6060
"eslint-plugin-react-hooks": "^4.6.0",
61-
"next": "^12.0.0",
61+
"@next/eslint-plugin-next": "^13.4.11",
6262
"eslint-plugin-formatjs": "^4.5.0"
6363
},
6464
"peerDependenciesMeta": {
@@ -68,7 +68,7 @@
6868
"eslint-plugin-react-hooks": {
6969
"optional": true
7070
},
71-
"next": {
71+
"@next/eslint-plugin-next": {
7272
"optional": true
7373
},
7474
"eslint-plugin-formatjs": {

readme.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -53,10 +53,10 @@ npm i -D eslint-plugin-react eslint-plugin-react-hooks
5353

5454
### TypeScript + Next.js
5555

56-
Install the required packages, assuming that you have `next` already installed:
56+
Install the required packages:
5757

5858
```sh
59-
npm i -D eslint-plugin-react eslint-plugin-react-hooks
59+
npm i -D eslint-plugin-react eslint-plugin-react-hooks @next/eslint-plugin-next
6060
```
6161

6262
`.eslintrc`
@@ -89,10 +89,10 @@ Most presets are mutually exclusive, which means that you should not combine the
8989
However, you may combine the preset `formatjs` with any other preset you like.
9090
The following shows how to combine it with the preset `ts-next`:
9191

92-
Install the required packages, assuming that you have `next` already installed:
92+
Install the required packages:
9393

9494
```sh
95-
npm i -D eslint-plugin-react eslint-plugin-react-hooks eslint-plugin-formatjs
95+
npm i -D eslint-plugin-react eslint-plugin-react-hooks @next/eslint-plugin-next eslint-plugin-formatjs
9696
```
9797

9898
`.eslintrc`

0 commit comments

Comments
 (0)