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"
}