promogame-react-unity-template/biome.json

68 lines
1.4 KiB
JSON

{
"$schema": "https://biomejs.dev/schemas/1.9.3/schema.json",
"organizeImports": {
"enabled": true
},
"files": {
"ignoreUnknown": false,
"ignore": ["src/main.tsx", "src/generated/*.ts"]
},
"linter": {
"enabled": true,
"rules": {
"recommended": true,
"complexity": {
"useSimplifiedLogicExpression": "warn"
},
"nursery": {
"useSortedClasses": "warn"
},
"correctness": {
"noUnusedImports": "error",
"noUnusedPrivateClassMembers": "error",
"noUnusedVariables": "error"
},
"suspicious": {
"noConsoleLog": "off",
"noArrayIndexKey": "off"
},
"style": {
"noNonNullAssertion": "off"
}
}
},
"formatter": {
"enabled": true,
"formatWithErrors": true,
"attributePosition": "auto",
"indentStyle": "space",
"indentWidth": 2,
"lineEnding": "lf",
"lineWidth": 120
},
"vcs": {
"enabled": true,
"clientKind": "git"
},
"javascript": {
"formatter": {
"arrowParentheses": "always",
"bracketSameLine": false,
"bracketSpacing": true,
"quoteStyle": "single",
"jsxQuoteStyle": "single",
"quoteProperties": "asNeeded",
"semicolons": "always",
"trailingCommas": "all",
"indentStyle": "space",
"indentWidth": 2
}
},
"json": {
"formatter": {
"enabled": true,
"trailingCommas": "none"
}
}
}