biome.json•1.97 kB
{
"$schema": "https://biomejs.dev/schemas/1.9.4/schema.json",
"organizeImports": {
"enabled": true
},
"formatter": {
"indentStyle": "space",
"indentWidth": 2,
"lineWidth": 80
},
"javascript": {
"formatter": {
"quoteStyle": "single"
}
},
"css": {
"parser": {
"cssModules": true
}
},
"linter": {
"enabled": true,
"rules": {
"recommended": true,
"a11y": {
"noSvgWithoutTitle": "off",
"noAutofocus": "off",
"useKeyWithClickEvents": "off",
"useIframeTitle": "off",
"useButtonType": "off",
"useValidAnchor": "off",
"noPositiveTabindex": "off",
"useAriaPropsForRole": "off",
"noBlankTarget": "off",
"useFocusableInteractive": "off",
"useSemanticElements": "off",
"noLabelWithoutControl": "off"
},
"correctness": {
"noUnusedImports": "error",
"noUnusedVariables": "error",
"useExhaustiveDependencies": "off",
"useJsxKeyInIterable": "off",
"noConstantCondition": "off"
},
"complexity": {
"noUselessSwitchCase": "off",
"noBannedTypes": "off",
"noForEach": "off",
"noUselessFragments": "off"
},
"suspicious": {
"noExplicitAny": "off",
"noAssignInExpressions": "off",
"noArrayIndexKey": "off",
"noFallthroughSwitchClause": "off",
"noPrototypeBuiltins": "off",
"useDefaultSwitchClauseLast": "off",
"noConsoleLog": "error",
"noCommentText": "off"
},
"security": {
"noDangerouslySetInnerHtml": "off"
},
"style": {
"noNonNullAssertion": "off",
"useSingleVarDeclarator": "off",
"noParameterAssign": "off"
},
"performance": {
"noAccumulatingSpread": "off"
}
}
},
"files": {
"ignore": ["build", "npm-lock.yaml", "node_modules/**/*"]
}
}