Compare commits

...

6 Commits

Author SHA1 Message Date
Bertie690
c38450fb97
Merge e5499a9cdf into 0da37a0f0c 2025-08-13 11:56:58 -04:00
Bertie690
e5499a9cdf
Fix tpyo 2025-08-13 11:06:37 -04:00
Bertie690
7faaaca485
Added global phaser to biome 2025-08-13 10:27:33 -04:00
Bertie690
abeea9d219
Added a few more rules 2025-08-13 10:26:26 -04:00
Bertie690
c787b0b614
Fixes 2025-08-13 06:58:15 -04:00
Bertie690
502c2f0777
Added more biome rules 2025-08-13 06:44:39 -04:00

View File

@ -54,7 +54,7 @@
"rules": {
"recommended": true,
"correctness": {
"noUndeclaredVariables": "off",
"noUndeclaredVariables": "error",
"noUnusedVariables": "error",
"noSwitchDeclarations": "error",
"noVoidTypeReturn": "error",
@ -67,6 +67,11 @@
"noPrivateImports": "error"
},
"style": {
"useCollapsedIf": "warn", // TODO: promote to "error" eventually
"noDoneCallback": "error",
"noSubstr": "error",
"noYodaExpression": "warn", // TODO: Fix and promote to "error"
"useForOf": "warn", // TODO: Fix and promote to "error"
"useEnumInitializers": "off", // large enums like Moves/Species would make this cumbersome
"useBlockStatements": {
"level": "error",
@ -83,7 +88,7 @@
"level": "warn",
"fix": "none"
},
"useSingleVarDeclarator": "off",
"useSingleVarDeclarator": "warn", // TODO: upgrade to "error"
"useNodejsImportProtocol": "off",
"useTemplate": "off", // string concatenation is faster: https://stackoverflow.com/questions/29055518/are-es6-template-literals-faster-than-string-concatenation
"useAsConstAssertion": "error",
@ -110,18 +115,19 @@
// This can likely be enabled for all non-utils files once these are eventually reworked, but until then we leave it off.
"noExplicitAny": "off",
"noAssignInExpressions": "off",
"noPrototypeBuiltins": "off",
"noPrototypeBuiltins": "off", // TOZO: consider enabling?
"noFallthroughSwitchClause": "error", // Prevents accidental automatic fallthroughs in switch cases (use disable comment if needed)
"noImplicitAnyLet": "warn", // TODO: Refactor and make this an error
"noRedeclare": "info", // TODO: Refactor and make this an error
"noGlobalIsNan": "off",
"noGlobalIsNan": "error",
"noAsyncPromiseExecutor": "warn", // TODO: Refactor and make this an error
"noVar": "error",
"noDocumentCookie": "off" // Firefox has minimal support for the "Cookie Store API"
},
"complexity": {
"noUselessStringConcat": "error",
"noExcessiveCognitiveComplexity": "info", // TODO: Refactor and make this an error
"useLiteralKeys": "off",
"useLiteralKeys": "off", // TODO: enable?
"noForEach": "off", // Foreach vs for of is not that simple.
"noUselessSwitchCase": "off", // Explicit > Implicit
"noUselessConstructor": "error",
@ -132,13 +138,16 @@
},
"performance": {
"noNamespaceImport": "error",
"noDelete": "error"
"noDelete": "error",
"noBarrelFile": "error",
},
"nursery": {
"useSingleJsDocAsterisk": "error",
// "useUnifiedTypeSignature": "error", TODO: upgrade to biome 2.1 and enable
"useAdjacentGetterSetter": "error",
"noConstantBinaryExpression": "error",
"noTsIgnore": "error",
"noAwaitInLoop": "off",
"noAwaitInLoop": "off", // we do this a lot
"useJsonImportAttribute": "off", // "Import attributes are only supported when the '--module' option is set to 'esnext', 'node18', 'nodenext', or 'preserve'. ts(2823)"
"useIndexOf": "error",
"useObjectSpread": "error",
@ -153,6 +162,7 @@
"quoteStyle": "double",
"arrowParentheses": "asNeeded"
},
"globals": ["Phaser"],
"parser": {
"jsxEverywhere": false
}