mirror of
https://github.com/navikt/aksel.git
synced 2026-10-12 16:52:03 +00:00
Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Ken <ken.aleksander@gmail.com>
104 lines
2.2 KiB
JSON
104 lines
2.2 KiB
JSON
{
|
|
"$schema": "https://biomejs.dev/schemas/2.5.14/schema.json",
|
|
"assist": { "actions": { "source": { "organizeImports": "off" } } },
|
|
"javascript": {
|
|
"jsxRuntime": "reactClassic"
|
|
},
|
|
"formatter": {
|
|
"enabled": true,
|
|
"indentStyle": "space",
|
|
"indentWidth": 2
|
|
},
|
|
"css": {
|
|
"parser": {
|
|
"cssModules": true,
|
|
"tailwindDirectives": true
|
|
}
|
|
},
|
|
"vcs": {
|
|
"enabled": true,
|
|
"clientKind": "git",
|
|
"useIgnoreFile": true
|
|
},
|
|
"files": {
|
|
"maxSize": 2000000,
|
|
"includes": [
|
|
"**",
|
|
"!**/public",
|
|
"!**/codemod/**/*.js",
|
|
"!**/modal/dialog-polyfill.ts",
|
|
"!**/_sanity/query-types.ts",
|
|
"!**/component-names.generated.ts",
|
|
"!**/transforms/**/*.input.*",
|
|
"!**/transforms/**/*.output.*",
|
|
"!**/@navikt/aksel-icons/icons/*.svg",
|
|
"!**/@navikt/aksel-icons/template/*.svg",
|
|
"!**/.sanity/runtime/*"
|
|
]
|
|
},
|
|
"linter": {
|
|
"enabled": true,
|
|
"rules": {
|
|
"preset": "recommended",
|
|
|
|
"style": {
|
|
"noDescendingSpecificity": "off",
|
|
"noUselessElse": "error",
|
|
"useConsistentObjectDefinitions": "error",
|
|
"useConsistentArrayType": "error"
|
|
},
|
|
"suspicious": {
|
|
"noExplicitAny": "off",
|
|
"noConsole": {
|
|
"level": "warn",
|
|
"options": {
|
|
"allow": [
|
|
"info",
|
|
"warn",
|
|
"error",
|
|
"group",
|
|
"groupEnd",
|
|
"table",
|
|
"assert",
|
|
"countReset",
|
|
"count",
|
|
"dir",
|
|
"time",
|
|
"timeEnd",
|
|
"timeStamp"
|
|
]
|
|
}
|
|
},
|
|
"noShadow": "error"
|
|
},
|
|
"complexity": {
|
|
"noForEach": "off",
|
|
"useArrowFunction": "off",
|
|
"noImportantStyles": "off"
|
|
}
|
|
}
|
|
},
|
|
"overrides": [
|
|
{
|
|
"includes": ["aksel.nav.no/website/pages/eksempler/**"],
|
|
"linter": {
|
|
"rules": {
|
|
"performance": {
|
|
"noImgElement": "off"
|
|
}
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"includes": ["**/*.stories.ts", "**/*.stories.tsx", "scripts/*.ts"],
|
|
"linter": {
|
|
"rules": {
|
|
"suspicious": {
|
|
"noConsole": "off"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
]
|
|
}
|