Files
zenyun-dwg-viewer-demo/biome.json
lafeillou 5965007556 init repo
2025-06-19 20:51:02 +08:00

124 lines
2.3 KiB
JSON

{
"$schema": "./node_modules/@biomejs/biome/configuration_schema.json",
"vcs": { "clientKind": "git", "enabled": true, "useIgnoreFile": true },
"assist": {
"actions": {
"source": {
"organizeImports": "on",
"useSortedAttributes": "on",
"useSortedProperties": "on"
}
},
"enabled": true
},
"formatter": {
"enabled": true,
"indentStyle": "tab"
},
"javascript": {
"formatter": {
"arrowParentheses": "asNeeded",
"bracketSpacing": false,
"jsxQuoteStyle": "single",
"quoteStyle": "single",
"semicolons": "asNeeded",
"trailingCommas": "none"
}
},
"linter": {
"domains": {
"project": "all",
"react": "all",
"test": "all"
},
"enabled": true,
"rules": {
"a11y": "error",
"complexity": "error",
"correctness": "error",
"nursery": "error",
"performance": "error",
"recommended": true,
"security": "error",
"style": "error",
"suspicious": "error"
}
},
"overrides": [
{
"includes": ["**/*"],
"linter": {
"rules": {
"correctness": {
"useImportExtensions": "off",
"noUndeclaredDependencies": "off"
},
"nursery": {
"noUnresolvedImports": "off",
"noUnknownAtRule": "off",
"useExplicitType": "off",
"useForComponent": "off",
"useExportsLast": "off"
},
"suspicious": {
"noReactSpecificProps": "off"
},
"performance": {
"noImgElement": "off",
"noNamespaceImport": "off"
},
"style": {
"useNamingConvention": {
"level": "error",
"options": {
"strictCase": false,
"requireAscii": true
}
},
"useFilenamingConvention": {
"level": "error",
"options": {
"strictCase": false,
"requireAscii": true,
"filenameCases": ["camelCase", "kebab-case", "PascalCase"]
}
}
}
}
}
},
{
"includes": ["vite.config.ts", "playwright.config.ts"],
"linter": {
"rules": {
"correctness": {
"noNodejsModules": "off"
},
"style": {
"noDefaultExport": "off"
}
}
}
},
{
"includes": ["src/**/*.test.tsx"],
"linter": {
"rules": {
"performance": {
"useTopLevelRegex": "off"
}
}
}
},
{
"includes": ["public/**"],
"formatter": {
"enabled": false
},
"linter": {
"enabled": false
}
}
]
}