Skip to content

eslint-config-navno 1.2.1

Install from the command line:
Learn more about npm packages
$ npm install @navikt/eslint-config-navno@1.2.1
Install via package.json:
"@navikt/eslint-config-navno": "1.2.1"

About this version

Common configuration for frontend applications by Team Navno

Installing

npm install -D @navikt/eslint-config-navno

General usage

Reference the eslint config in your project:

In your package.json:

{
  "eslintConfig": {
    "extends": "@navikt/eslint-config-navno/eslint"
  }
}

Use in NextJS

Using esling config in your NextJS project:

This package does not include NextJS specific config, so make sure to also add the eslint-config-next package to your project:

npm install -D eslint-config-next

In your package.json:

{
  "eslintConfig": {
    "extends": ["@navikt/eslint-config-navno", "next/core-web-vitals"]
  }
}

Use prettier

Reference the prettier config in your project:

In your package.json:

{
  "prettier": "@navikt/eslint-config-navno/prettier"
}

Details


Assets

  • eslint-config-navno-1.2.1.tgz

Download activity

  • Total downloads 1
  • Last 30 days 0
  • Last week 0
  • Today 0

Recent versions

View all