mirror of
https://github.com/pagefaultgames/pokerogue.git
synced 2025-06-20 16:42:45 +02:00
More config updates
Added at "error": `noUnusedLabels`, `noThisInStatic` Changed `useDefaultParameterLast` from "off" to "warn" Changed `noDocumentCookie` (from recommended) from "warn" to "off" Changed `noExcessiveCognitiveComplexity` from "warn" to "info"
This commit is contained in:
parent
93ef225208
commit
62864071e7
13
biome.jsonc
13
biome.jsonc
@ -52,7 +52,8 @@
|
||||
"level": "error",
|
||||
"fix": "safe"
|
||||
},
|
||||
"noUnusedFunctionParameters": "error"
|
||||
"noUnusedFunctionParameters": "error",
|
||||
"noUnusedLabels": "error"
|
||||
},
|
||||
"style": {
|
||||
"useEnumInitializers": "off", // large enums like Moves/Species would make this cumbersome
|
||||
@ -62,7 +63,7 @@
|
||||
"noNonNullAssertion": "off", // TODO: Turn this on ASAP and fix all non-null assertions in non-test files
|
||||
"noParameterAssign": "off",
|
||||
"useExponentiationOperator": "off", // Too typo-prone and easy to mixup with standard multiplication (* vs **)
|
||||
"useDefaultParameterLast": "off", // TODO: Fix spots in the codebase where this flag would be triggered, and then enable
|
||||
"useDefaultParameterLast": "warn", // TODO: Fix spots in the codebase where this flag would be triggered, and then enable
|
||||
"useSingleVarDeclarator": "off",
|
||||
"useNodejsImportProtocol": "off",
|
||||
"useTemplate": "off", // string concatenation is faster: https://stackoverflow.com/questions/29055518/are-es6-template-literals-faster-than-string-concatenation
|
||||
@ -97,15 +98,17 @@
|
||||
"noRedeclare": "info", // TODO: Refactor and make this an error
|
||||
"noGlobalIsNan": "off",
|
||||
"noAsyncPromiseExecutor": "warn", // TODO: Refactor and make this an error
|
||||
"noVar": "error"
|
||||
"noVar": "error",
|
||||
"noDocumentCookie": "off" // Firefox has minimal support for the "Cookie Store API"
|
||||
},
|
||||
"complexity": {
|
||||
"noExcessiveCognitiveComplexity": "warn", // TODO: Refactor and make this an error
|
||||
"noExcessiveCognitiveComplexity": "info", // TODO: Refactor and make this an error
|
||||
"useLiteralKeys": "off",
|
||||
"noForEach": "off", // Foreach vs for of is not that simple.
|
||||
"noUselessSwitchCase": "off", // Explicit > Implicit
|
||||
"noUselessConstructor": "error",
|
||||
"noBannedTypes": "warn" // TODO: Refactor and make this an error
|
||||
"noBannedTypes": "warn", // TODO: Refactor and make this an error
|
||||
"noThisInStatic": "error"
|
||||
},
|
||||
"performance": {
|
||||
"noNamespaceImport": "error",
|
||||
|
@ -1226,7 +1226,7 @@ export function calculateMEAggregateStats(baseSpawnWeight: number) {
|
||||
);
|
||||
|
||||
for (const value of meanEncountersPerRunPerBiomeSorted) {
|
||||
stats += value[0] + "avg valid floors " + meanMEFloorsPerRunPerBiome.get(value[0]) + ", avg MEs ${value[1]},\n";
|
||||
stats += value[0] + "avg valid floors " + meanMEFloorsPerRunPerBiome.get(value[0]) + `, avg MEs ${value[1]},\n`;
|
||||
}
|
||||
|
||||
console.log(stats);
|
||||
|
Loading…
Reference in New Issue
Block a user