|
| 1 | +{ |
| 2 | + "$schema": "https://biomejs.dev/schemas/1.8.1/schema.json", |
| 3 | + "formatter": { |
| 4 | + "enabled": true, |
| 5 | + "formatWithErrors": false, |
| 6 | + "indentStyle": "space", |
| 7 | + "indentWidth": 2, |
| 8 | + "lineEnding": "lf", |
| 9 | + "lineWidth": 80, |
| 10 | + "attributePosition": "auto" |
| 11 | + }, |
| 12 | + "organizeImports": { "enabled": true }, |
| 13 | + "linter": { |
| 14 | + "enabled": true, |
| 15 | + "rules": { |
| 16 | + "recommended": false, |
| 17 | + "complexity": { |
| 18 | + "noExtraBooleanCast": "error", |
| 19 | + "noMultipleSpacesInRegularExpressionLiterals": "error", |
| 20 | + "noUselessCatch": "error", |
| 21 | + "noWith": "error" |
| 22 | + }, |
| 23 | + "correctness": { |
| 24 | + "noConstAssign": "error", |
| 25 | + "noConstantCondition": "error", |
| 26 | + "noEmptyCharacterClassInRegex": "error", |
| 27 | + "noEmptyPattern": "error", |
| 28 | + "noGlobalObjectCalls": "error", |
| 29 | + "noInvalidConstructorSuper": "error", |
| 30 | + "noInvalidNewBuiltin": "error", |
| 31 | + "noNonoctalDecimalEscape": "error", |
| 32 | + "noPrecisionLoss": "error", |
| 33 | + "noSelfAssign": "error", |
| 34 | + "noSetterReturn": "error", |
| 35 | + "noSwitchDeclarations": "error", |
| 36 | + "noUndeclaredVariables": "error", |
| 37 | + "noUnreachable": "error", |
| 38 | + "noUnreachableSuper": "error", |
| 39 | + "noUnsafeFinally": "error", |
| 40 | + "noUnsafeOptionalChaining": "error", |
| 41 | + "noUnusedLabels": "error", |
| 42 | + "noUnusedPrivateClassMembers": "error", |
| 43 | + "noUnusedVariables": "error", |
| 44 | + "useIsNan": "error", |
| 45 | + "useValidForDirection": "error", |
| 46 | + "useYield": "error" |
| 47 | + }, |
| 48 | + "suspicious": { |
| 49 | + "noAsyncPromiseExecutor": "error", |
| 50 | + "noCatchAssign": "error", |
| 51 | + "noClassAssign": "error", |
| 52 | + "noCompareNegZero": "error", |
| 53 | + "noControlCharactersInRegex": "error", |
| 54 | + "noDebugger": "error", |
| 55 | + "noDuplicateCase": "error", |
| 56 | + "noDuplicateClassMembers": "error", |
| 57 | + "noDuplicateObjectKeys": "error", |
| 58 | + "noDuplicateParameters": "error", |
| 59 | + "noEmptyBlockStatements": "error", |
| 60 | + "noFallthroughSwitchClause": "error", |
| 61 | + "noFunctionAssign": "error", |
| 62 | + "noGlobalAssign": "error", |
| 63 | + "noImportAssign": "error", |
| 64 | + "noMisleadingCharacterClass": "error", |
| 65 | + "noPrototypeBuiltins": "error", |
| 66 | + "noRedeclare": "error", |
| 67 | + "noShadowRestrictedNames": "error", |
| 68 | + "noUnsafeNegation": "error", |
| 69 | + "useGetterReturn": "error", |
| 70 | + "useValidTypeof": "error" |
| 71 | + } |
| 72 | + }, |
| 73 | + "ignore": ["coverage/"] |
| 74 | + }, |
| 75 | + "javascript": { |
| 76 | + "formatter": { |
| 77 | + "jsxQuoteStyle": "double", |
| 78 | + "quoteProperties": "asNeeded", |
| 79 | + "trailingCommas": "none", |
| 80 | + "semicolons": "asNeeded", |
| 81 | + "arrowParentheses": "always", |
| 82 | + "bracketSpacing": true, |
| 83 | + "bracketSameLine": false, |
| 84 | + "quoteStyle": "single", |
| 85 | + "attributePosition": "auto" |
| 86 | + }, |
| 87 | + "globals": [ |
| 88 | + "onscrollend", |
| 89 | + "onpointerleave", |
| 90 | + "oncontextrestored", |
| 91 | + "onemptied", |
| 92 | + "ongamepaddisconnected", |
| 93 | + "onkeypress", |
| 94 | + "onloadeddata", |
| 95 | + "onmouseup", |
| 96 | + "onvolumechange", |
| 97 | + "onpaste", |
| 98 | + "onstorage", |
| 99 | + "onkeyup", |
| 100 | + "onabort", |
| 101 | + "oncut", |
| 102 | + "ontransitionrun", |
| 103 | + "onafterprint", |
| 104 | + "onblur", |
| 105 | + "ondurationchange", |
| 106 | + "ontransitionstart", |
| 107 | + "oncanplaythrough", |
| 108 | + "onanimationend", |
| 109 | + "onmouseleave", |
| 110 | + "ondragleave", |
| 111 | + "onplay", |
| 112 | + "onunhandledrejection", |
| 113 | + "onbeforeprint", |
| 114 | + "onpointercancel", |
| 115 | + "onsubmit", |
| 116 | + "ondragstart", |
| 117 | + "onmessage", |
| 118 | + "location", |
| 119 | + "onoffline", |
| 120 | + "onappinstalled", |
| 121 | + "onwheel", |
| 122 | + "onended", |
| 123 | + "onkeydown", |
| 124 | + "onclick", |
| 125 | + "onfocus", |
| 126 | + "onscroll", |
| 127 | + "ongamepadconnected", |
| 128 | + "oncanplay", |
| 129 | + "onpointerdown", |
| 130 | + "ondeviceorientationabsolute", |
| 131 | + "onauxclick", |
| 132 | + "ondevicemotion", |
| 133 | + "onratechange", |
| 134 | + "ontransitionend", |
| 135 | + "onchange", |
| 136 | + "onselect", |
| 137 | + "onbeforeinstallprompt", |
| 138 | + "onbeforetoggle", |
| 139 | + "onmouseout", |
| 140 | + "ontimeupdate", |
| 141 | + "ondragover", |
| 142 | + "oncuechange", |
| 143 | + "ontransitioncancel", |
| 144 | + "onprogress", |
| 145 | + "onbeforeinput", |
| 146 | + "onpointerenter", |
| 147 | + "onmouseenter", |
| 148 | + "oninvalid", |
| 149 | + "onpointerout", |
| 150 | + "onpagereveal", |
| 151 | + "onpause", |
| 152 | + "onanimationstart", |
| 153 | + "onwaiting", |
| 154 | + "ondeviceorientation", |
| 155 | + "onclose", |
| 156 | + "onbeforeunload", |
| 157 | + "oncancel", |
| 158 | + "onseeked", |
| 159 | + "onpointerover", |
| 160 | + "ongotpointercapture", |
| 161 | + "onloadedmetadata", |
| 162 | + "onpageshow", |
| 163 | + "onstalled", |
| 164 | + "oncontextmenu", |
| 165 | + "onreset", |
| 166 | + "ondrag", |
| 167 | + "onbeforematch", |
| 168 | + "onload", |
| 169 | + "onlostpointercapture", |
| 170 | + "onsuspend", |
| 171 | + "onselectionchange", |
| 172 | + "onpagehide", |
| 173 | + "onrejectionhandled", |
| 174 | + "onunload", |
| 175 | + "onanimationcancel", |
| 176 | + "onmousedown", |
| 177 | + "onpointerup", |
| 178 | + "onmouseover", |
| 179 | + "onformdata", |
| 180 | + "oncontentvisibilityautostatechange", |
| 181 | + "onresize", |
| 182 | + "onsearch", |
| 183 | + "ontoggle", |
| 184 | + "exports", |
| 185 | + "onpageswap", |
| 186 | + "onbeforexrselect", |
| 187 | + "onlanguagechange", |
| 188 | + "ondragenter", |
| 189 | + "onerror", |
| 190 | + "onpointermove", |
| 191 | + "onmousemove", |
| 192 | + "ondrop", |
| 193 | + "onhashchange", |
| 194 | + "onsecuritypolicyviolation", |
| 195 | + "onslotchange", |
| 196 | + "oncopy", |
| 197 | + "onanimationiteration", |
| 198 | + "ondblclick", |
| 199 | + "ondragend", |
| 200 | + "onpointerrawupdate", |
| 201 | + "onpopstate", |
| 202 | + "onplaying", |
| 203 | + "oncontextlost", |
| 204 | + "onloadstart", |
| 205 | + "onseeking", |
| 206 | + "oninput", |
| 207 | + "onmessageerror", |
| 208 | + "onselectstart", |
| 209 | + "onmousewheel", |
| 210 | + "ononline" |
| 211 | + ] |
| 212 | + }, |
| 213 | + "files": { |
| 214 | + "ignore": [ |
| 215 | + "dist/**", |
| 216 | + "node_modules/**", |
| 217 | + "coverage/**", |
| 218 | + ".vscode", |
| 219 | + "package.json" |
| 220 | + ] |
| 221 | + } |
| 222 | +} |
0 commit comments