- package.json: test:coverage adds --check-coverage --lines=8 (current baseline is 8.32%; floor only goes up) - biome.json: ignore *.main.js webpack chunks, coverage/, node_modules/ - docs/CONTRIBUTING.md: document ratchet policy and long-term 70% target
56 lines
1.3 KiB
JSON
56 lines
1.3 KiB
JSON
{
|
|
"$schema": "https://biomejs.dev/schemas/1.8.3/schema.json",
|
|
"organizeImports": {
|
|
"enabled": true
|
|
},
|
|
"files": {
|
|
"ignore": ["main.js", "*.main.js", "coverage/**", "node_modules/**"]
|
|
},
|
|
"formatter": {
|
|
"enabled": true,
|
|
"formatWithErrors": false,
|
|
"ignore": [],
|
|
"attributePosition": "auto",
|
|
"indentStyle": "space",
|
|
"indentWidth": 2,
|
|
"lineEnding": "lf",
|
|
"lineWidth": 80
|
|
},
|
|
"javascript": {
|
|
"formatter": {
|
|
"arrowParentheses": "always",
|
|
"bracketSameLine": false,
|
|
"bracketSpacing": true,
|
|
"jsxQuoteStyle": "double",
|
|
"quoteProperties": "asNeeded",
|
|
"semicolons": "always",
|
|
"trailingCommas": "es5"
|
|
}
|
|
},
|
|
"linter": {
|
|
"enabled": true,
|
|
"rules": {
|
|
"recommended": true,
|
|
"suspicious": {
|
|
"noExplicitAny": "off",
|
|
"noPrototypeBuiltins": "off",
|
|
"noControlCharactersInRegex": "off"
|
|
},
|
|
"style": {
|
|
"noUselessElse": "off",
|
|
"useNodejsImportProtocol": "off",
|
|
"noUnusedTemplateLiteral": "off",
|
|
"useTemplate": "off",
|
|
"noNonNullAssertion": "off"
|
|
},
|
|
"performance": {
|
|
"noDelete": "off"
|
|
},
|
|
"complexity": {
|
|
"noForEach": "off",
|
|
"useLiteralKeys": "off"
|
|
}
|
|
}
|
|
}
|
|
}
|