chatbot-template/biome.json

130 lines
3.1 KiB
JSON
Raw Normal View History

2024-11-15 10:37:01 -05:00
{
"$schema": "https://biomejs.dev/schemas/1.9.4/schema.json",
"files": {
"ignoreUnknown": false,
"ignore": [
"**/pnpm-lock.yaml",
"lib/db/migrations",
2024-11-15 11:09:44 -05:00
"lib/editor/react-renderer.tsx",
2024-11-15 10:37:01 -05:00
"node_modules",
".next",
"public",
".vercel"
]
},
2024-11-15 13:00:15 -05:00
"vcs": {
"enabled": true,
"clientKind": "git",
"defaultBranch": "main",
"useIgnoreFile": true
},
2024-11-15 10:37:01 -05:00
"formatter": {
"enabled": true,
"formatWithErrors": false,
"indentStyle": "space",
"indentWidth": 2,
"lineEnding": "lf",
"lineWidth": 80,
2024-11-15 13:00:15 -05:00
"attributePosition": "auto"
2024-11-15 10:37:01 -05:00
},
2024-11-15 11:09:44 -05:00
"linter": {
"enabled": true,
"rules": {
"recommended": true,
"a11y": {
2024-11-15 13:00:15 -05:00
"useHtmlLang": "warn",
"noHeaderScope": "warn",
"useValidAriaRole": {
"level": "warn",
"options": {
"ignoreNonDom": false,
"allowInvalidRoles": ["none", "text"]
}
},
"useSemanticElements": "off",
"noSvgWithoutTitle": "off",
"useMediaCaption": "off",
"noAutofocus": "off",
"noBlankTarget": "off"
2024-11-15 11:09:44 -05:00
},
2024-11-15 13:00:15 -05:00
"complexity": {
"noUselessStringConcat": "warn",
"noForEach": "off",
"noUselessSwitchCase": "off",
"noUselessThisAlias": "off"
2024-11-15 11:09:44 -05:00
},
"correctness": {
2024-11-15 13:00:15 -05:00
"noUnusedImports": "warn",
"useArrayLiterals": "warn",
"noNewSymbol": "warn",
"useJsxKeyInIterable": "off",
"useExhaustiveDependencies": "off",
"noUnnecessaryContinue": "off"
},
"security": {
"noDangerouslySetInnerHtml": "off"
},
"style": {
"useFragmentSyntax": "warn",
"noYodaExpression": "warn",
"useDefaultParameterLast": "warn",
"useExponentiationOperator": "off",
"noUnusedTemplateLiteral": "off",
"noUselessElse": "off"
},
"suspicious": {
"noExplicitAny": "off"
},
"nursery": {
"noStaticElementInteractions": "warn",
"noHeadImportInDocument": "warn",
"noDocumentImportInPage": "warn",
"noDuplicateElseIf": "warn",
"noIrregularWhitespace": "warn",
"useValidAutocomplete": "warn"
2024-11-15 11:09:44 -05:00
}
}
},
2024-11-15 10:37:01 -05:00
"javascript": {
2024-11-15 13:00:15 -05:00
"jsxRuntime": "reactClassic",
2024-11-15 10:37:01 -05:00
"formatter": {
"jsxQuoteStyle": "double",
"quoteProperties": "asNeeded",
2024-11-15 13:00:15 -05:00
"trailingCommas": "all",
2024-11-15 10:37:01 -05:00
"semicolons": "always",
"arrowParentheses": "always",
2024-11-15 13:00:15 -05:00
"bracketSpacing": true,
2024-11-15 10:37:01 -05:00
"bracketSameLine": false,
"quoteStyle": "single",
2024-11-15 13:00:15 -05:00
"attributePosition": "auto"
}
},
"json": {
"formatter": {
"enabled": true,
"trailingCommas": "none"
},
"parser": {
"allowComments": true,
"allowTrailingCommas": false
}
},
"css": {
"formatter": { "enabled": false },
"linter": { "enabled": false }
},
"organizeImports": { "enabled": false },
"overrides": [
{
"include": ["playwright/**", "tooling/playwright/src/test/test.ts"],
"linter": {
"rules": {
"correctness": {
"noEmptyPattern": "off"
}
}
}
2024-11-15 10:37:01 -05:00
}
2024-11-15 13:00:15 -05:00
]
2024-11-15 10:37:01 -05:00
}