53 lines
1.1 KiB
JSON
53 lines
1.1 KiB
JSON
{
|
|
"$schema": "https://biomejs.dev/schemas/latest/schema.json",
|
|
"formatter": {
|
|
"enabled": true,
|
|
"indentStyle": "space",
|
|
"indentWidth": 2,
|
|
"lineWidth": 120
|
|
},
|
|
"linter": {
|
|
"enabled": true,
|
|
"rules": {
|
|
"recommended": true,
|
|
"complexity": {
|
|
"noForEach": "error"
|
|
},
|
|
"correctness": {
|
|
"useImportExtensions": {
|
|
"level": "error",
|
|
"options": {
|
|
"forceJsExtensions": true
|
|
}
|
|
}
|
|
},
|
|
"performance": {
|
|
"useTopLevelRegex": "error"
|
|
},
|
|
"style": {
|
|
"noNegationElse": "error",
|
|
"noNonNullAssertion": "error",
|
|
"useBlockStatements": "error",
|
|
"useConst": "error",
|
|
"useTemplate": "error"
|
|
},
|
|
"suspicious": {
|
|
"noExplicitAny": "error"
|
|
},
|
|
"nursery": {
|
|
"useRegexpExec": "error"
|
|
}
|
|
}
|
|
},
|
|
"javascript": {
|
|
"formatter": {
|
|
"quoteStyle": "single",
|
|
"semicolons": "always"
|
|
}
|
|
},
|
|
"files": {
|
|
"includes": ["src/**/*.{ts,tsx}", "tests/**/*.{ts,tsx}"],
|
|
"ignoreUnknown": true
|
|
}
|
|
}
|