1.0.0 • Published 1 year ago

eslint-plugin-nextjs-link-require-shallow-prefetch v1.0.0

Weekly downloads
-
License
ISC
Repository
-
Last release
1 year ago

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-prefetchNext.js Link tag will make Shallow and Prefetch attributes mandatory🔧
1.0.0

1 year ago

0.0.1

1 year ago

0.0.0

1 year ago