| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114 |
- {
- "$schema": "https://biomejs.dev/schemas/2.4.10/schema.json",
- "vcs": {
- "enabled": true,
- "clientKind": "git",
- "useIgnoreFile": true
- },
- "files": {
- "includes": ["**", "!!**/dist", "!!**/packages/@ant"]
- },
- "formatter": {
- "enabled": true,
- "indentStyle": "space",
- "indentWidth": 2,
- "lineWidth": 80
- },
- "linter": {
- "enabled": true,
- "rules": {
- "recommended": true,
- "suspicious": {
- "noExplicitAny": "off",
- "noAssignInExpressions": "off",
- "noDoubleEquals": "off",
- "noRedeclare": "off",
- "noImplicitAnyLet": "off",
- "noGlobalIsNan": "off",
- "noFallthroughSwitchClause": "off",
- "noShadowRestrictedNames": "off",
- "noArrayIndexKey": "off",
- "noConsole": "off",
- "noConfusingLabels": "off",
- "useIterableCallbackReturn": "off"
- },
- "style": {
- "useConst": "off",
- "noNonNullAssertion": "off",
- "noParameterAssign": "off",
- "useDefaultParameterLast": "off",
- "noUnusedTemplateLiteral": "off",
- "useTemplate": "off",
- "useNumberNamespace": "off",
- "useNodejsImportProtocol": "off",
- "useImportType": "off"
- },
- "complexity": {
- "noForEach": "off",
- "noBannedTypes": "off",
- "noUselessConstructor": "off",
- "noStaticOnlyClass": "off",
- "useOptionalChain": "off",
- "noUselessSwitchCase": "off",
- "noUselessFragments": "off",
- "noUselessTernary": "off",
- "noUselessLoneBlockStatements": "off",
- "noUselessEmptyExport": "off",
- "useArrowFunction": "off",
- "useLiteralKeys": "off"
- },
- "correctness": {
- "noUnusedVariables": "off",
- "noUnusedImports": "off",
- "useExhaustiveDependencies": "off",
- "noSwitchDeclarations": "off",
- "noUnreachable": "off",
- "useHookAtTopLevel": "off",
- "noVoidTypeReturn": "off",
- "noConstantCondition": "off",
- "noUnusedFunctionParameters": "off"
- },
- "a11y": {
- "recommended": false
- },
- "nursery": {
- "recommended": false
- }
- }
- },
- "json": {
- "formatter": {
- "enabled": false
- }
- },
- "javascript": {
- "formatter": {
- "quoteStyle": "single",
- "semicolons": "asNeeded",
- "arrowParentheses": "asNeeded",
- "trailingCommas": "all"
- }
- },
- "overrides": [
- {
- "includes": ["**/*.tsx"],
- "javascript": {
- "formatter": {
- "semicolons": "always"
- }
- },
- "formatter": {
- "lineWidth": 120
- }
- },
- {
- "includes": ["scripts/**", "packages/**", "**/*.js", "**/*.mjs", "**/*.jsx"],
- "formatter": {
- "enabled": false
- }
- }
- ],
- "assist": {
- "enabled": false
- }
- }
|