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
npm install -D @navikt/eslint-config-navno
Reference the eslint config in your project:
In your package.json
:
{
"eslintConfig": {
"extends": "@navikt/eslint-config-navno/eslint"
}
}
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"]
}
}
Reference the prettier config in your project:
In your package.json
:
{
"prettier": "@navikt/eslint-config-navno/prettier"
}