claude-prism/biome.json

156 lines
3.7 KiB
JSON

{
"$schema": "./node_modules/@biomejs/biome/configuration_schema.json",
"vcs": {
"enabled": true,
"clientKind": "git",
"useIgnoreFile": true
},
"formatter": {
"enabled": true,
"formatWithErrors": false,
"indentStyle": "space",
"indentWidth": 2,
"lineWidth": 80,
"lineEnding": "lf"
},
"assist": {
"enabled": false
},
"linter": {
"enabled": true,
"domains": {
"react": "all",
"next": "all"
},
"rules": {
"recommended": true,
"suspicious": {
"noExplicitAny": "off",
"noArrayIndexKey": "off",
"noEmptyInterface": "off",
"useIterableCallbackReturn": "off",
"noThenProperty": "off",
"noConfusingVoidType": "off",
"noImplicitAnyLet": "off",
"noAssignInExpressions": "off",
"noRedeclare": "off",
"noConfusingLabels": {
"level": "error",
"options": {
"allowedLabels": ["DEV"]
}
},
"noDoubleEquals": "off",
"noPrototypeBuiltins": "off",
"noDocumentCookie": "off"
},
"style": {
"noNamespace": "off",
"useImportType": "off",
"noNonNullAssertion": "off",
"useComponentExportOnlyModules": "off"
},
"correctness": {
"noUnusedVariables": {
"level": "warn",
"options": {
"ignoreRestSiblings": true
}
},
"useExhaustiveDependencies": "off",
"useHookAtTopLevel": "off",
"noSwitchDeclarations": "off",
"noUnsafeOptionalChaining": "off",
"useUniqueElementIds": "off",
"noNestedComponentDefinitions": "off"
},
"complexity": {
"noForEach": "off",
"noBannedTypes": "off",
"noUselessConstructor": "off",
"noStaticOnlyClass": "off",
"useArrowFunction": "off",
"noThisInStatic": "off",
"useFlatMap": "off",
"useLiteralKeys": "off"
},
"a11y": {
"useKeyWithClickEvents": "off",
"noSvgWithoutTitle": "off",
"noStaticElementInteractions": "off",
"useFocusableInteractive": "off",
"useButtonType": "off",
"useSemanticElements": "off",
"noRedundantAlt": "off",
"noRedundantRoles": "off",
"useAriaPropsForRole": "off"
},
"security": {
"noDangerouslySetInnerHtml": "off"
},
"performance": {
"noImgElement": "off"
},
"nursery": {
"useSortedClasses": {
"fix": "safe",
"level": "error",
"options": {
"attributes": ["className"],
"functions": ["clsx", "cva", "tw", "twMerge", "cn", "twJoin", "tv"]
}
}
}
}
},
"javascript": {
"formatter": {
"enabled": true,
"quoteStyle": "double",
"jsxQuoteStyle": "double",
"quoteProperties": "asNeeded",
"trailingCommas": "all",
"semicolons": "always",
"arrowParentheses": "always",
"bracketSpacing": true,
"bracketSameLine": false,
"attributePosition": "auto"
},
"parser": {
"unsafeParameterDecoratorsEnabled": true
}
},
"json": {
"formatter": {
"enabled": true,
"trailingCommas": "none"
},
"parser": {
"allowComments": true,
"allowTrailingCommas": false
}
},
"css": {
"parser": {
"cssModules": false,
"tailwindDirectives": true
},
"formatter": {
"enabled": false
},
"linter": {
"enabled": false
}
},
"files": {
"includes": [
"**",
"!**/dist",
"!**/node_modules",
"!**/.next",
"!**/.vercel",
"!**/out",
"!**/next-env.d.ts"
]
}
}