🚀 DAY 5 OF LAUNCH WEEK: Introducing Socket Firewall Enterprise.Learn more →
Socket
Book a DemoInstallSign in
Socket

@opencreek/eslint-plugin-nextjs

Package Overview
Dependencies
Maintainers
3
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@opencreek/eslint-plugin-nextjs

ESLint plugin for Common TypeScript rules

latest
Source
npmnpm
Version
0.4.1-canary.15.1565281924.0
Version published
Weekly downloads
7
-81.08%
Maintainers
3
Weekly downloads
 
Created
Source

@opencreek/eslint-plugin-nextjs

Opinionated linting rules for nextjs Apps

Installation

You'll first need to install ESLint:

npm i eslint --save-dev

Next, install @opencreek/eslint-plugin-nextjs:

npm install @opencreek/eslint-plugin-nextjs --save-dev
yarn  add --dev @opencreek/eslint-plugin-nextjs

Usage

Add @opencreek/nextjs to the plugins section of your .eslintrc configuration file. You can omit the eslint-plugin- prefix:

{
    "plugins": ["@opencreek/nextjs"]
}

Then configure the rules you want to use under the rules section.

{
    "rules": {
        "@opencreek/nextjs/no-literal-hrefs": "error",
        "@opencreek/nextjs/pages-need-getLink-export": "error"
    }
}

Supported Rules

@opencreek/nextjs/no-literal-hrefs Do not allow literal hrefs to nextjs pages

Keywords

eslint

FAQs

Package last updated on 10 Dec 2021

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts