biome.json•2.42 kB
{
"$schema": "https://biomejs.dev/schemas/2.0.0-beta.6/schema.json",
"vcs": {
"enabled": true,
"clientKind": "git",
"useIgnoreFile": true
},
"files": {
"ignoreUnknown": false,
"includes": [
"**",
"!**/dist/**",
"!**/src/varint.ts",
"!**/src/utf8.ts",
"!**/src/types.ts",
"!**/src/helpers.ts",
"!**/src/extern.ts",
"!**/src/decimals.ts",
"!**/src/binary.ts"
]
},
"formatter": {
"enabled": true,
"indentStyle": "tab",
"indentWidth": 3
},
"assist": {
"actions": {
"source": {
"organizeImports": "on"
}
}
},
"linter": {
"enabled": true,
"rules": {
"recommended": true,
"correctness": {
"noConstantMathMinMaxClamp": "error",
"noUndeclaredVariables": "error",
"noUnusedImports": "error",
"noUnusedFunctionParameters": "error",
"noUnusedPrivateClassMembers": "error",
"useExhaustiveDependencies": {
"level": "error",
"options": {
"reportUnnecessaryDependencies": false
}
},
"noUnusedVariables": "error"
},
"style": {
"noParameterProperties": "error",
"noYodaExpression": "error",
"useConsistentBuiltinInstantiation": "error",
"useFragmentSyntax": "error",
"useShorthandAssign": "error",
"noNonNullAssertion": "off",
"noParameterAssign": "error",
"useAsConstAssertion": "error",
"useDefaultParameterLast": "error",
"useEnumInitializers": "error",
"useSelfClosingElements": "error",
"useSingleVarDeclarator": "error",
"noUnusedTemplateLiteral": "error",
"useNumberNamespace": "error",
"noInferrableTypes": "error",
"noUselessElse": "error",
"useArrayLiterals": "error"
},
"suspicious": {
"useAwait": "error",
"noEvolvingTypes": "error",
"noExplicitAny": "off"
},
"complexity": {
"noUselessStringConcat": "error",
"noUselessUndefinedInitialization": "error",
"noVoid": "error",
"useDateNow": "error",
"noBannedTypes": "off",
"noForEach": "off"
}
}
},
"javascript": {
"formatter": {
"arrowParentheses": "always",
"quoteStyle": "double",
"bracketSameLine": false,
"semicolons": "asNeeded",
"bracketSpacing": true,
"trailingCommas": "none",
"quoteProperties": "asNeeded",
"enabled": true,
"attributePosition": "auto",
"indentWidth": 3,
"indentStyle": "tab",
"jsxQuoteStyle": "double",
"lineEnding": "lf",
"lineWidth": 100
}
}
}