@caioms/biomejs-config
Version:
Configuração compartilhada do BiomeJS para meus projetos
69 lines • 1.48 kB
JSON
{
"$schema": "https://biomejs.dev/schemas/2.3.2/schema.json",
"formatter": {
"indentStyle": "tab",
"indentWidth": 2,
"lineWidth": 80
},
"javascript": {
"formatter": {
"arrowParentheses": "asNeeded",
"jsxQuoteStyle": "double",
"quoteStyle": "single",
"semicolons": "asNeeded",
"trailingCommas": "es5"
}
},
"assist": {
"actions": {
"source": {
"organizeImports": "on"
}
}
},
"linter": {
"enabled": true,
"rules": {
"recommended": true,
"style": {
"noNonNullAssertion": "off",
"useSelfClosingElements": "off",
"useImportType": "off",
"noUselessElse": "off"
},
"suspicious": {
"noExplicitAny": "off",
"noArrayIndexKey": "warn"
},
"complexity": {
"noStaticOnlyClass": "off",
"noForEach": "off",
"useOptionalChain": "info",
"noBannedTypes": "warn"
},
"a11y": {
"useValidAnchor": "warn",
"useButtonType": "off"
},
"correctness": {
"useExhaustiveDependencies": "warn",
"noUnreachable": "warn",
"noSwitchDeclarations": "info",
"noConstantCondition": "off"
},
"security": {
"noDangerouslySetInnerHtml": "warn"
}
}
},
"files": {
"includes": [
"**/*",
"!node_modules/**",
"!dist/**",
"!public/**",
"!*.js",
"!*.d.ts"
]
}
}