Socket
Socket
Sign inDemoInstall

@opencreek/eslint-plugin-nextjs

Package Overview
Dependencies
127
Maintainers
3
Versions
7
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    @opencreek/eslint-plugin-nextjs

ESLint plugin for Common TypeScript rules


Version published
Weekly downloads
2
decreased by-85.71%
Maintainers
3
Created
Weekly downloads
 

Readme

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

FAQs

Last updated on 10 Dec 2021

Did you know?

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc