1.5.3 • Published 7 months ago

eslint-config-ixn-next v1.5.3

Weekly downloads
-
License
MIT
Repository
github
Last release
7 months ago

eslint-config-ixn-next

Ixion Labs' ESLint config for NextJS projects

Usage

NextJS

npm install --save-dev eslint-config-ixn-next
{
  "parserOptions": {
    "project": "./tsconfig.json"
  },
  "extends": "ixn-next"
}

If NextJS is not the root of the project, you can specify the root directory of the NextJS project in the settings.next.rootDir array.

{
  "settings": {
    "next": {
      "rootDir": ["./packages/next"]
    }
  }
}

If you are using this config for a library with no pages repository, you may receive a warning about no Pages directory being found. In that case, set the following rule to off:

{
  "rules": {
    "@next/next/no-html-link-for-pages": "off"
  }
}