145 lines
3.8 KiB
JSON
145 lines
3.8 KiB
JSON
{
|
|
"$schema": "https://biomejs.dev/schemas/2.3.11/schema.json",
|
|
"vcs": {
|
|
"enabled": true,
|
|
"clientKind": "git",
|
|
"useIgnoreFile": true
|
|
},
|
|
"files": {
|
|
"includes": ["**", "!!**/dist", "!!tools/emojis.json"]
|
|
},
|
|
"formatter": {
|
|
"enabled": true,
|
|
"indentStyle": "space"
|
|
},
|
|
"linter": {
|
|
"enabled": true,
|
|
"domains": {
|
|
"vue": "recommended"
|
|
},
|
|
"rules": {
|
|
"recommended": false,
|
|
"complexity": {
|
|
"noAdjacentSpacesInRegex": "error",
|
|
"noExtraBooleanCast": "error",
|
|
"noUselessCatch": "error",
|
|
"noUselessEscapeInRegex": "error"
|
|
},
|
|
"correctness": {
|
|
"noConstAssign": "error",
|
|
"noConstantCondition": "error",
|
|
"noEmptyCharacterClassInRegex": "error",
|
|
"noEmptyPattern": "error",
|
|
"noGlobalObjectCalls": "error",
|
|
"noInvalidBuiltinInstantiation": "error",
|
|
"noInvalidConstructorSuper": "error",
|
|
"noNonoctalDecimalEscape": "error",
|
|
"noPrecisionLoss": "error",
|
|
"noSelfAssign": "error",
|
|
"noSetterReturn": "error",
|
|
"noSwitchDeclarations": "error",
|
|
"noUndeclaredVariables": "error",
|
|
"noUnreachable": "error",
|
|
"noUnreachableSuper": "error",
|
|
"noUnsafeFinally": "error",
|
|
"noUnsafeOptionalChaining": "error",
|
|
"noUnusedLabels": "error",
|
|
"noUnusedPrivateClassMembers": "error",
|
|
"noUnusedVariables": "error",
|
|
"useIsNan": "error",
|
|
"useValidForDirection": "error",
|
|
"useValidTypeof": "error",
|
|
"useYield": "error"
|
|
},
|
|
"suspicious": {
|
|
"noAsyncPromiseExecutor": "error",
|
|
"noCatchAssign": "error",
|
|
"noClassAssign": "error",
|
|
"noCompareNegZero": "error",
|
|
"noConstantBinaryExpressions": "error",
|
|
"noControlCharactersInRegex": "error",
|
|
"noDebugger": "error",
|
|
"noDuplicateCase": "error",
|
|
"noDuplicateClassMembers": "error",
|
|
"noDuplicateElseIf": "error",
|
|
"noDuplicateObjectKeys": "error",
|
|
"noDuplicateParameters": "error",
|
|
"noEmptyBlockStatements": "error",
|
|
"noFallthroughSwitchClause": "error",
|
|
"noFunctionAssign": "error",
|
|
"noGlobalAssign": "error",
|
|
"noImportAssign": "error",
|
|
"noIrregularWhitespace": "error",
|
|
"noMisleadingCharacterClass": "error",
|
|
"noPrototypeBuiltins": "error",
|
|
"noRedeclare": "error",
|
|
"noShadowRestrictedNames": "error",
|
|
"noSparseArray": "error",
|
|
"noUnsafeNegation": "error",
|
|
"noUselessRegexBackrefs": "error",
|
|
"noWith": "error",
|
|
"useGetterReturn": "error"
|
|
}
|
|
}
|
|
},
|
|
"javascript": {
|
|
"formatter": {
|
|
"quoteStyle": "single",
|
|
"semicolons": "asNeeded"
|
|
},
|
|
"globals": []
|
|
},
|
|
"overrides": [
|
|
{
|
|
"includes": ["**/*.spec.js", "test/fixtures/*.js"],
|
|
"javascript": {
|
|
"globals": [
|
|
"vi",
|
|
"describe",
|
|
"it",
|
|
"test",
|
|
"expect",
|
|
"before",
|
|
"beforeEach",
|
|
"after",
|
|
"afterEach"
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"includes": ["**/*.vue"],
|
|
"linter": {
|
|
"rules": {
|
|
"style": {
|
|
"useConst": "off",
|
|
"useImportType": "off"
|
|
},
|
|
"correctness": {
|
|
"noUnusedVariables": "off",
|
|
"noUnusedImports": "off"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
],
|
|
"assist": {
|
|
"enabled": true,
|
|
"actions": {
|
|
"source": {
|
|
"organizeImports": {
|
|
"level": "on",
|
|
"options": {
|
|
"groups": [
|
|
[":NODE:", ":PACKAGE:", "!src/**", "!@fortawesome/**"],
|
|
":BLANK_LINE:",
|
|
[":PATH:", "src/**"],
|
|
":BLANK_LINE:",
|
|
"@fortawesome/fontawesome-svg-core",
|
|
"@fortawesome/*"
|
|
]
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|