|
| 1 | +{ |
| 2 | + "$schema": "https://biomejs.dev/schemas/2.5.4/schema.json", |
| 3 | + "vcs": { |
| 4 | + "enabled": true, |
| 5 | + "clientKind": "git", |
| 6 | + "useIgnoreFile": false |
| 7 | + }, |
| 8 | + "files": { |
| 9 | + "ignoreUnknown": true, |
| 10 | + "includes": [ |
| 11 | + "**/*.{js,jsx,mjs,cjs,ts,tsx,mts,cts}", |
| 12 | + "!node_modules", |
| 13 | + "!.next", |
| 14 | + "!out", |
| 15 | + "!build", |
| 16 | + "!next-env.d.ts", |
| 17 | + "!public/sw.js", |
| 18 | + "!public/vendor", |
| 19 | + "!shared/generated" |
| 20 | + ] |
| 21 | + }, |
| 22 | + "formatter": { |
| 23 | + "enabled": false |
| 24 | + }, |
| 25 | + "linter": { |
| 26 | + "enabled": true, |
| 27 | + "domains": { |
| 28 | + "next": "recommended", |
| 29 | + "react": "recommended" |
| 30 | + }, |
| 31 | + "rules": { |
| 32 | + "preset": "recommended", |
| 33 | + "a11y": { |
| 34 | + "noLabelWithoutControl": "off", |
| 35 | + "noStaticElementInteractions": "off", |
| 36 | + "noSvgWithoutTitle": "off", |
| 37 | + "useAriaPropsSupportedByRole": "off", |
| 38 | + "useSemanticElements": "off" |
| 39 | + }, |
| 40 | + "correctness": { |
| 41 | + "noUnusedFunctionParameters": "off", |
| 42 | + "useExhaustiveDependencies": { |
| 43 | + "level": "warn", |
| 44 | + "options": { |
| 45 | + "reportUnnecessaryDependencies": false |
| 46 | + } |
| 47 | + }, |
| 48 | + "useImageSize": "off" |
| 49 | + }, |
| 50 | + "nursery": { |
| 51 | + "noComponentHookFactories": "error", |
| 52 | + "noReactStringRefs": "error" |
| 53 | + }, |
| 54 | + "performance": { |
| 55 | + "noBarrelFile": "off", |
| 56 | + "noImgElement": "off", |
| 57 | + "noNamespaceImport": "off", |
| 58 | + "useTopLevelRegex": "off" |
| 59 | + }, |
| 60 | + "suspicious": { |
| 61 | + "noAlert": "off", |
| 62 | + "noArrayIndexKey": "off", |
| 63 | + "noDocumentCookie": "off", |
| 64 | + "noEmptyBlockStatements": "off", |
| 65 | + "noShadowRestrictedNames": "off", |
| 66 | + "useAwait": "off" |
| 67 | + }, |
| 68 | + "complexity": { |
| 69 | + "noExcessiveCognitiveComplexity": "off", |
| 70 | + "noUselessFragments": "off", |
| 71 | + "noUselessSwitchCase": "off", |
| 72 | + "useOptionalChain": "off" |
| 73 | + }, |
| 74 | + "style": { |
| 75 | + "noNestedTernary": "off", |
| 76 | + "noNonNullAssertion": "off", |
| 77 | + "useBlockStatements": "off", |
| 78 | + "useConsistentTypeDefinitions": "off", |
| 79 | + "useConst": "off", |
| 80 | + "useImportType": "off" |
| 81 | + } |
| 82 | + } |
| 83 | + }, |
| 84 | + "overrides": [ |
| 85 | + { |
| 86 | + "includes": ["components/animate-ui/icons/icon.tsx"], |
| 87 | + "linter": { |
| 88 | + "rules": { |
| 89 | + "correctness": { |
| 90 | + "useExhaustiveDependencies": "off", |
| 91 | + "useHookAtTopLevel": "off" |
| 92 | + } |
| 93 | + } |
| 94 | + } |
| 95 | + }, |
| 96 | + { |
| 97 | + "includes": ["components/animate-ui/utils/get-strict-context.tsx"], |
| 98 | + "linter": { |
| 99 | + "rules": { |
| 100 | + "nursery": { |
| 101 | + "noComponentHookFactories": "off" |
| 102 | + } |
| 103 | + } |
| 104 | + } |
| 105 | + }, |
| 106 | + { |
| 107 | + "includes": ["shared/components/file-preview/preview-docx.tsx"], |
| 108 | + "linter": { |
| 109 | + "rules": { |
| 110 | + "suspicious": { |
| 111 | + "noUnknownAttribute": "off" |
| 112 | + } |
| 113 | + } |
| 114 | + } |
| 115 | + }, |
| 116 | + { |
| 117 | + "includes": [ |
| 118 | + "components/ui/live-waveform.tsx", |
| 119 | + "components/ui/virtual-table.tsx", |
| 120 | + "shared/components/file-preview/preview-document.tsx" |
| 121 | + ], |
| 122 | + "linter": { |
| 123 | + "rules": { |
| 124 | + "a11y": { |
| 125 | + "noAriaHiddenOnFocusable": "off" |
| 126 | + } |
| 127 | + } |
| 128 | + } |
| 129 | + }, |
| 130 | + { |
| 131 | + "includes": [ |
| 132 | + "features/admin/components/sections/billing/billing-redemption.tsx", |
| 133 | + "features/chat/components/message/message-meta.tsx" |
| 134 | + ], |
| 135 | + "linter": { |
| 136 | + "rules": { |
| 137 | + "a11y": { |
| 138 | + "noNoninteractiveTabindex": "off" |
| 139 | + } |
| 140 | + } |
| 141 | + } |
| 142 | + }, |
| 143 | + { |
| 144 | + "includes": [ |
| 145 | + "features/chat/components/sections/chat-input.tsx", |
| 146 | + "features/layouts/components/navigation/sidebar-conversation-item.tsx", |
| 147 | + "features/settings/components/sections/chat/settings-chat.tsx" |
| 148 | + ], |
| 149 | + "linter": { |
| 150 | + "rules": { |
| 151 | + "a11y": { |
| 152 | + "noAutofocus": "off" |
| 153 | + } |
| 154 | + } |
| 155 | + } |
| 156 | + }, |
| 157 | + { |
| 158 | + "includes": ["shared/components/file-preview/preview-media.tsx"], |
| 159 | + "linter": { |
| 160 | + "rules": { |
| 161 | + "a11y": { |
| 162 | + "useMediaCaption": "off" |
| 163 | + } |
| 164 | + } |
| 165 | + } |
| 166 | + }, |
| 167 | + { |
| 168 | + "includes": ["components/ui/input-group.tsx"], |
| 169 | + "linter": { |
| 170 | + "rules": { |
| 171 | + "a11y": { |
| 172 | + "useKeyWithClickEvents": "off" |
| 173 | + } |
| 174 | + } |
| 175 | + } |
| 176 | + } |
| 177 | + ] |
| 178 | +} |
0 commit comments