Files
compiler-explorer/biome.json
Matt Godbolt 8734c3e492 Update biome (#7956)
- latest biome, and fix its configuration
- fixes "static" content to be globally configured too (instead of
per-line)
- fixes issues:
  - imports fixed up
  - `Date.now()` vs `+new Date()`
  - some unused things `_` prefixed
 
After discussion with the team, turned off the unused parameter warning.
2025-07-28 10:34:46 -05:00

90 lines
1.9 KiB
JSON

{
"$schema": "./node_modules/@biomejs/biome/configuration_schema.json",
"files": {
"includes": [
"cypress/**",
"docs/**",
"lib/**",
"public/**",
"shared/**",
"static/**",
"test/**",
"types/**",
"views/**",
"!static/policies/*.html",
"!lib/storage/data/**/*",
"!lib/asm-docs/generated/**/*",
"!test/**/*.json"
]
},
"overrides": [
{
"includes": ["static/**"],
"linter": {
"rules": {
"suspicious": {
"noPrototypeBuiltins": "off"
}
}
}
}
],
"linter": {
"rules": {
"suspicious": {
"noExplicitAny": "off",
"noImplicitAnyLet": "off",
"noAssignInExpressions": "off",
"noControlCharactersInRegex": "off",
"noFallthroughSwitchClause": "off",
"noDoubleEquals": "off"
},
"style": {
"noParameterAssign": "off",
"noNonNullAssertion": "off",
"useImportType": "off",
"useTemplate": "off"
},
"correctness": {
"noUnsafeOptionalChaining": "off",
"noUnusedImports": "error",
"noUnusedFunctionParameters": "off"
},
"performance": {
"noAccumulatingSpread": "off",
"noDelete": "off"
},
"complexity": {
"noStaticOnlyClass": "off",
"noForEach": "off",
"useLiteralKeys": "off",
"noThisInStatic": "off"
}
}
},
"formatter": {
"enabled": true,
"attributePosition": "auto",
"indentStyle": "space",
"indentWidth": 4,
"lineWidth": 120,
"lineEnding": "lf"
},
"javascript": {
"formatter": {
"arrowParentheses": "asNeeded",
"bracketSameLine": false,
"bracketSpacing": false,
"quoteProperties": "asNeeded",
"semicolons": "always",
"trailingCommas": "all",
"quoteStyle": "single"
}
},
"json": {
"formatter": {
"indentWidth": 2
}
}
}