130 lines
2.6 KiB
JSON
130 lines
2.6 KiB
JSON
{
|
|
"$schema": "https://biomejs.dev/schemas/2.3.11/schema.json",
|
|
"vcs": {
|
|
"enabled": true,
|
|
"clientKind": "git",
|
|
"useIgnoreFile": true
|
|
},
|
|
"files": {
|
|
"ignoreUnknown": false,
|
|
"includes": [
|
|
"**",
|
|
"!**/dist",
|
|
"!**/node_modules",
|
|
"!**/src-tauri/target",
|
|
"!**/*.gen.ts",
|
|
"!**/src-tauri/src/*.html"
|
|
]
|
|
},
|
|
"overrides": [
|
|
{
|
|
"includes": ["wdio.conf.ts", "*.config.ts", "*.config.js"],
|
|
"linter": {
|
|
"rules": {
|
|
"suspicious": {
|
|
"noConsole": "off"
|
|
}
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"includes": ["e2e/**/*.ts", "e2e-native/**/*.ts"],
|
|
"linter": {
|
|
"rules": {
|
|
"suspicious": {
|
|
"noConsole": "off"
|
|
}
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"includes": ["src/components/ui/chart.tsx"],
|
|
"linter": {
|
|
"rules": {
|
|
"security": {
|
|
"noDangerouslySetInnerHtml": "off"
|
|
}
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"includes": ["src/components/ui/sidebar/context.tsx"],
|
|
"linter": {
|
|
"rules": {
|
|
"suspicious": {
|
|
"noDocumentCookie": "off"
|
|
}
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"includes": ["src/lib/debug.ts"],
|
|
"linter": {
|
|
"rules": {
|
|
"suspicious": {
|
|
"noConsole": "off"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
],
|
|
"formatter": {
|
|
"enabled": true,
|
|
"indentStyle": "space",
|
|
"indentWidth": 2,
|
|
"lineWidth": 100
|
|
},
|
|
"assist": { "actions": { "source": { "organizeImports": "on" } } },
|
|
"css": {
|
|
"linter": {
|
|
"enabled": true
|
|
},
|
|
"parser": {
|
|
"cssModules": true,
|
|
"tailwindDirectives": true
|
|
}
|
|
},
|
|
"linter": {
|
|
"enabled": true,
|
|
"rules": {
|
|
"recommended": true,
|
|
"a11y": {
|
|
"useSemanticElements": "warn",
|
|
"useFocusableInteractive": "warn",
|
|
"useAriaPropsForRole": "warn"
|
|
},
|
|
"correctness": {
|
|
"noUnusedImports": "error",
|
|
"noUnusedVariables": "error",
|
|
"useExhaustiveDependencies": "warn"
|
|
},
|
|
"complexity": {
|
|
"noBannedTypes": "warn"
|
|
},
|
|
"security": {
|
|
"noDangerouslySetInnerHtml": "warn"
|
|
},
|
|
"style": {
|
|
"noNonNullAssertion": "error",
|
|
"useConst": "error",
|
|
"useImportType": "error"
|
|
},
|
|
"suspicious": {
|
|
"noExplicitAny": "error",
|
|
"noConsole": "error",
|
|
"noArrayIndexKey": "off",
|
|
"noDocumentCookie": "warn",
|
|
"noUnknownAtRules": "off"
|
|
}
|
|
}
|
|
},
|
|
"javascript": {
|
|
"formatter": {
|
|
"quoteStyle": "single",
|
|
"jsxQuoteStyle": "double",
|
|
"semicolons": "always",
|
|
"trailingCommas": "es5"
|
|
}
|
|
}
|
|
}
|