| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146 |
- {
- "$schema": "https://biomejs.dev/schemas/2.3.15/schema.json",
- "vcs": {
- "enabled": true,
- "clientKind": "git",
- "useIgnoreFile": true
- },
- "files": {
- "ignoreUnknown": false,
- "includes": ["src/**/*", "e2e/**/*", "*.js", "*.ts", "*.jsx", "*.tsx", "*.json"]
- },
- "formatter": {
- "enabled": true,
- "formatWithErrors": false,
- "indentStyle": "space",
- "indentWidth": 2,
- "lineWidth": 100,
- "lineEnding": "lf"
- },
- "linter": {
- "enabled": true,
- "rules": {
- "recommended": false,
- "complexity": {
- "noExtraBooleanCast": "error",
- "noUselessCatch": "error"
- },
- "correctness": {
- "useUniqueElementIds": "off",
- "noConstAssign": "error",
- "noConstantCondition": "error",
- "noEmptyCharacterClassInRegex": "error",
- "noEmptyPattern": "error",
- "noGlobalObjectCalls": "error",
- "noInnerDeclarations": "error",
- "noInvalidConstructorSuper": "error",
- "noNonoctalDecimalEscape": "error",
- "noPrecisionLoss": "error",
- "noSelfAssign": "error",
- "noSetterReturn": "error",
- "noSwitchDeclarations": "error",
- "noUndeclaredVariables": "error",
- "noUnreachable": "error",
- "noUnreachableSuper": "error",
- "useIsNan": "error",
- "useValidForDirection": "error",
- "noUnusedImports": "error"
- },
- "suspicious": {
- "noAsyncPromiseExecutor": "error",
- "noCatchAssign": "error",
- "noClassAssign": "error",
- "noCompareNegZero": "error",
- "noControlCharactersInRegex": "error",
- "noDebugger": "error",
- "noDuplicateCase": "error",
- "noDuplicateClassMembers": "error",
- "noDuplicateObjectKeys": "error",
- "noDuplicateParameters": "error",
- "noEmptyBlockStatements": "error",
- "noFallthroughSwitchClause": "error",
- "noFunctionAssign": "error",
- "noGlobalAssign": "error",
- "noImportAssign": "error",
- "noMisleadingCharacterClass": "error",
- "noPrototypeBuiltins": "error",
- "noRedeclare": "error",
- "noShadowRestrictedNames": "error",
- "noUnsafeNegation": "error",
- "useGetterReturn": "error",
- "noConsole": {
- "level": "error",
- "fix": "none",
- "options": {
- "allow": ["warn", "error"]
- }
- }
- }
- }
- },
- "javascript": {
- "globals": [
- "jest",
- "describe",
- "it",
- "test",
- "expect",
- "beforeAll",
- "beforeEach",
- "afterAll",
- "afterEach",
- "fail"
- ],
- "formatter": {
- "quoteStyle": "single",
- "jsxQuoteStyle": "double",
- "quoteProperties": "asNeeded",
- "trailingCommas": "es5",
- "semicolons": "asNeeded",
- "arrowParentheses": "always",
- "bracketSpacing": true,
- "bracketSameLine": false,
- "attributePosition": "auto"
- }
- },
- "json": {
- "formatter": {
- "indentStyle": "space",
- "indentWidth": 2
- }
- },
- "css": {
- "parser": {
- "cssModules": true,
- "allowWrongLineComments": true
- },
- "formatter": {
- "enabled": true,
- "indentStyle": "space",
- "indentWidth": 2
- },
- "linter": {
- "enabled": false
- }
- },
- "assist": {
- "enabled": false,
- "actions": {
- "source": {
- "organizeImports": "off"
- }
- }
- },
- "overrides": [
- {
- "includes": ["e2e/**/*"],
- "linter": {
- "rules": {
- "suspicious": {
- "noConsole": "off"
- }
- }
- }
- }
- ]
- }
|