biome.json•1.64 kB
{
"$schema": "./node_modules/@biomejs/biome/configuration_schema.json",
"assist": { "actions": { "source": { "organizeImports": "on" } } },
"files": {
"includes": [
"**",
"!**/.vscode/launch.json",
"!.settlemint",
"!contracts/artifacts",
"!**/graphql-env.d.ts",
"!**/graphql-cache.d.ts",
"!**/sdk/js/schema.graphql"
]
},
"linter": {
"enabled": true,
"rules": {
"recommended": true,
"a11y": {
"useHtmlLang": "warn",
"useButtonType": "warn",
"useAriaPropsForRole": "warn",
"useFocusableInteractive": "warn"
},
"security": {
"noDangerouslySetInnerHtml": "warn"
},
"complexity": {
"noForEach": "warn"
},
"correctness": {
"useExhaustiveDependencies": "warn",
"noUnusedImports": "error"
},
"style": {
"noNonNullAssertion": "off",
"noParameterAssign": "error",
"useAsConstAssertion": "error",
"useDefaultParameterLast": "error",
"useEnumInitializers": "error",
"useSelfClosingElements": "error",
"useSingleVarDeclarator": "error",
"noUnusedTemplateLiteral": "error",
"useNumberNamespace": "error",
"noInferrableTypes": "error",
"noUselessElse": "error"
}
}
},
"formatter": {
"enabled": true,
"formatWithErrors": false,
"attributePosition": "auto",
"indentStyle": "space",
"indentWidth": 2,
"lineEnding": "lf",
"lineWidth": 120
},
"vcs": {
"enabled": true,
"clientKind": "git",
"useIgnoreFile": true
}
}