_comuns/Documentos/biome.json
2025-08-08 11:00:55 -03:00

62 lines
No EOL
1.6 KiB
JSON

{
"$schema": "../node_modules/@biomejs/biome/configuration_schema.json",
"root": false,
"linter": {
"enabled": true,
"rules": {
"recommended": true,
"correctness": {
"noUnusedVariables": "error",
"noUnusedImports": "error",
"noEmptyPattern": "error",
"useExhaustiveDependencies": "off"
},
"style": {
"noParameterAssign": "error",
"useAsConstAssertion": "error",
"useDefaultParameterLast": "error",
"useEnumInitializers": "error",
"useSelfClosingElements": "error",
"useSingleVarDeclarator": "error",
"noUnusedTemplateLiteral": "error",
"useNumberNamespace": "error",
"noInferrableTypes": "error"
},
"suspicious": {
"noDebugger": "off",
"noDoubleEquals": "off",
"noExplicitAny": "off",
"noApproximativeNumericConstant": "warn",
"noAsyncPromiseExecutor": "warn"
},
"complexity": {
"noUselessConstructor": "error",
"noBannedTypes": "off",
"useLiteralKeys": "off",
"useArrowFunction": "warn",
"useDateNow": "off"
},
"performance": {
"noAccumulatingSpread": "warn"
},
"a11y": {
"useSemanticElements": "off"
}
}
},
"formatter": {
"enabled": true,
"indentStyle": "space",
"indentWidth": 2
},
"javascript": {
"formatter": {
"enabled": true,
"semicolons": "asNeeded",
"arrowParentheses": "always",
"bracketSameLine": false,
"trailingCommas": "all",
"attributePosition": "multiline"
}
}
}