82 lines
1.3 KiB
JSON
82 lines
1.3 KiB
JSON
{
|
|
"$schema": "./node_modules/@biomejs/biome/configuration_schema.json",
|
|
"vcs": {
|
|
"useIgnoreFile": true
|
|
},
|
|
"files": {
|
|
"includes": [
|
|
"**",
|
|
"!dist",
|
|
"!packages/*/dist",
|
|
"!storybook-static",
|
|
"!src/shared/api/generated",
|
|
"!src/shared/api/spec",
|
|
"!coverage",
|
|
"!node_modules"
|
|
]
|
|
},
|
|
"linter": {
|
|
"rules": {
|
|
"preset": "recommended",
|
|
"nursery": {
|
|
"useReactFunctionComponentDefinition": {
|
|
"level": "error",
|
|
"options": {
|
|
"namedComponents": "arrowFunction"
|
|
}
|
|
}
|
|
},
|
|
"style": {
|
|
"noDefaultExport": "error",
|
|
"useExportsLast": "error",
|
|
"noMagicNumbers": "error"
|
|
}
|
|
}
|
|
},
|
|
"overrides": [
|
|
{
|
|
"includes": [
|
|
"eslint.config.mjs",
|
|
"vite.config.ts",
|
|
"vitest.config.ts",
|
|
".storybook/main.ts",
|
|
".storybook/preview.tsx",
|
|
"packages/*/vite.config.ts"
|
|
],
|
|
"linter": {
|
|
"rules": {
|
|
"style": {
|
|
"noDefaultExport": "off"
|
|
}
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"includes": ["**/*.stories.tsx"],
|
|
"linter": {
|
|
"rules": {
|
|
"style": {
|
|
"noDefaultExport": "off",
|
|
"useExportsLast": "off"
|
|
}
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"includes": [
|
|
"**/*.test.ts",
|
|
"**/*.test.tsx",
|
|
"**/*.stories.tsx",
|
|
"src/test/**"
|
|
],
|
|
"linter": {
|
|
"rules": {
|
|
"style": {
|
|
"noMagicNumbers": "off"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
]
|
|
}
|