clawchain/wagmi/biome.json

141 lines
3.0 KiB
JSON

{
"$schema": "./node_modules/@biomejs/biome/configuration_schema.json",
"files": {
"includes": [
"**",
"!**/CHANGELOG.md",
"!**/pnpm-lock.yaml",
"!**/routeTree.gen.ts",
"!**/tsconfig.base.json",
"!**/worker-configuration.d.ts"
]
},
"formatter": {
"enabled": true,
"formatWithErrors": false,
"indentStyle": "space",
"indentWidth": 2,
"lineWidth": 80
},
"linter": {
"includes": ["**", "!**/packages/create-wagmi/templates/**/*"],
"enabled": true,
"rules": {
"recommended": true,
"a11y": {
"useButtonType": "off"
},
"complexity": {
"noImportantStyles": "off"
},
"correctness": {
"noUnusedVariables": "error",
"useExhaustiveDependencies": "error"
},
"performance": {
"noBarrelFile": "error",
"noReExportAll": "error",
"noDelete": "off"
},
"style": {
"noNonNullAssertion": "off",
"noParameterAssign": "error",
"useAsConstAssertion": "error",
"useDefaultParameterLast": "error",
"useEnumInitializers": "error",
"useSelfClosingElements": "error",
"useSingleVarDeclarator": "error",
"noUnusedTemplateLiteral": "error",
"useNumberNamespace": "error",
"noInferrableTypes": "error",
"noUselessElse": "error",
"useConsistentArrayType": {
"level": "error",
"options": {
"syntax": "shorthand"
}
}
},
"suspicious": {
"noArrayIndexKey": "off",
"noConfusingVoidType": "off",
"noExplicitAny": "off",
"noConsole": {
"level": "error",
"options": {
"allow": ["log"]
}
},
"noTsIgnore": "off"
}
}
},
"javascript": {
"formatter": {
"quoteStyle": "single",
"trailingCommas": "all",
"semicolons": "asNeeded"
}
},
"assist": {
"actions": {
"source": {
"organizeImports": "on"
}
}
},
"overrides": [
{
"includes": ["**/*.vue"],
"linter": {
"rules": {
"correctness": {
"noUnusedImports": "off",
"noUnusedVariables": "off"
}
}
}
},
{
"includes": ["site/snippets/**"],
"linter": {
"rules": {
"correctness": {
"noUnusedImports": "off"
}
}
}
},
{
"includes": ["scripts/**/*.ts"],
"linter": {
"rules": {
"suspicious": {
"noConsole": {
"level": "off",
"options": {
"allow": ["log"]
}
}
}
}
}
},
{
"includes": ["playgrounds/**"],
"linter": {
"rules": {
"style": {
"useNodejsImportProtocol": "off"
}
}
}
}
],
"vcs": {
"enabled": true,
"clientKind": "git",
"useIgnoreFile": true
}
}