mirror of
https://github.com/mara-li/obsidian-my-thesaurus.git
synced 2026-07-22 05:38:22 +00:00
113 lines
2.8 KiB
JSON
113 lines
2.8 KiB
JSON
{
|
|
"$schema": "https://biomejs.dev/schemas/1.9.4/schema.json",
|
|
"organizeImports": {
|
|
"enabled": true
|
|
},
|
|
"linter": {
|
|
"enabled": true,
|
|
"rules": {
|
|
"recommended": false,
|
|
"complexity": {
|
|
"noExtraBooleanCast": "error",
|
|
"noMultipleSpacesInRegularExpressionLiterals": "error",
|
|
"noUselessCatch": "error",
|
|
"noWith": "error"
|
|
},
|
|
"style": {
|
|
"noVar": "error",
|
|
"useFilenamingConvention": "error",
|
|
"useImportType": "error",
|
|
"useNamingConvention": {
|
|
"level": "warn",
|
|
"options": {
|
|
"strictCase": false
|
|
}
|
|
},
|
|
"useTemplate": "warn",
|
|
"useConst": "error"
|
|
},
|
|
"correctness": {
|
|
"noConstAssign": "error",
|
|
"noConstantCondition": "error",
|
|
"noEmptyCharacterClassInRegex": "error",
|
|
"noEmptyPattern": "error",
|
|
"noGlobalObjectCalls": "error",
|
|
"noInnerDeclarations": "error",
|
|
"noInvalidConstructorSuper": "error",
|
|
"noNewSymbol": "error",
|
|
"noNonoctalDecimalEscape": "error",
|
|
"noPrecisionLoss": "error",
|
|
"noSelfAssign": "error",
|
|
"noSetterReturn": "error",
|
|
"noSwitchDeclarations": "error",
|
|
"noUndeclaredVariables": "error",
|
|
"noUnreachable": "error",
|
|
"noUnreachableSuper": "error",
|
|
"noUnsafeFinally": "error",
|
|
"noUnsafeOptionalChaining": "error",
|
|
"noUnusedLabels": "error",
|
|
"noUnusedVariables": "warn",
|
|
"noUnusedImports": "warn",
|
|
"useIsNan": "error",
|
|
"useValidForDirection": "error",
|
|
"useYield": "error"
|
|
},
|
|
"suspicious": {
|
|
"noAssignInExpressions": "error",
|
|
"noAsyncPromiseExecutor": "error",
|
|
"noCatchAssign": "error",
|
|
"noClassAssign": "error",
|
|
"noCompareNegZero": "error",
|
|
"noControlCharactersInRegex": "error",
|
|
"noDebugger": "error",
|
|
"noDuplicateCase": "error",
|
|
"noDuplicateClassMembers": "error",
|
|
"noDuplicateObjectKeys": "error",
|
|
"noDuplicateParameters": "error",
|
|
"noEmptyBlockStatements": "error",
|
|
"noFallthroughSwitchClause": "error",
|
|
"noFunctionAssign": "error",
|
|
"noGlobalAssign": "error",
|
|
"noImportAssign": "error",
|
|
"noMisleadingCharacterClass": "error",
|
|
"noPrototypeBuiltins": "error",
|
|
"noRedeclare": "error",
|
|
"noShadowRestrictedNames": "error",
|
|
"noUnsafeNegation": "error",
|
|
"useGetterReturn": "error",
|
|
"useValidTypeof": "error"
|
|
}
|
|
},
|
|
"ignore": ["**/npm node_modules", "**/build", "**/dist", "**/src/i18n/locales"]
|
|
},
|
|
"overrides": [
|
|
{
|
|
"ignore": ["**/*.js"],
|
|
"include": ["**/*.ts", "**/*.tsx"]
|
|
},
|
|
{
|
|
"include": ["**/*.js"]
|
|
},
|
|
{
|
|
"include": ["*.json"]
|
|
}
|
|
],
|
|
"formatter": {
|
|
"enabled": true,
|
|
"indentStyle": "tab",
|
|
"indentWidth": 2,
|
|
"lineWidth": 90
|
|
},
|
|
"javascript": {
|
|
"formatter": {
|
|
"quoteStyle": "double",
|
|
"semicolons": "always",
|
|
"trailingCommas": "es5"
|
|
}
|
|
},
|
|
"json": {
|
|
"formatter": {
|
|
"trailingCommas": "none"
|
|
}
|
|
}
|
|
}
|