eslint-plugin-nextjs-link-require-shallow-prefetch
v1.0.0
Published
Next.js Link tag will require Shallow and Prefetch attributes
Downloads
97
Maintainers
Readme
eslint-plugin-nextjs-link-require-shallow-prefetch
Next.js Link tag will require Shallow and Prefetch attributes
Installation
You'll first need to install ESLint:
npm i eslint --save-dev
Next, install eslint-plugin-nextjs-link-require-shallow-prefetch
:
npm install eslint-plugin-nextjs-link-require-shallow-prefetch --save-dev
Usage
Add nextjs-link-require-shallow-prefetch
to the plugins section of your .eslintrc
configuration file. You can omit the eslint-plugin-
prefix:
{
"plugins": [
"nextjs-link-require-shallow-prefetch"
]
}
Then configure the rules you want to use under the rules section.
{
"rules": {
"nextjs-link-require-shallow-prefetch/rule-name": 2
}
}
Rules
🔧 Automatically fixable by the --fix
CLI option.
| Name | Description | 🔧 | | :----------------------------------------------------------------------------------------- | :------------------------------------------------------------ | :- | | nextjs-link-require-shallow-prefetch | Next.js Link tag will make Shallow and Prefetch attributes mandatory | 🔧 |