fix eslint plugin install in docs (#27807)

This commit is contained in:
stefanprobst 2021-08-06 17:39:47 +02:00 committed by GitHub
parent b24cd1eaba
commit 62707d4590
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -184,9 +184,9 @@ module.exports = {
The plugin can be installed normally in your project without needing to run `next lint`:
```bash
npm install --save-dev eslint-plugin-next
npm install --save-dev @next/eslint-plugin-next
# or
yarn add --dev eslint-plugin-next
yarn add --dev @next/eslint-plugin-next
```
This eliminates the risk of collisions or errors that can occur due to importing the same plugin or parser across multiple configurations.