Skip to content

Commit

Permalink
lower level for existing errors from biome config
Browse files Browse the repository at this point in the history
  • Loading branch information
dpgraham4401 committed Feb 13, 2025
1 parent c89dc41 commit a9e4cd8
Showing 1 changed file with 88 additions and 33 deletions.
121 changes: 88 additions & 33 deletions client/biome.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,14 @@
{
"$schema": "https://biomejs.dev/schemas/1.9.4/schema.json",
"vcs": { "enabled": false, "clientKind": "git", "useIgnoreFile": false },
"files": { "ignoreUnknown": false, "ignore": [] },
"vcs": {
"enabled": false,
"clientKind": "git",
"useIgnoreFile": false
},
"files": {
"ignoreUnknown": false,
"ignore": []
},
"formatter": {
"enabled": true,
"useEditorconfig": true,
Expand All @@ -25,7 +32,9 @@
"haztrak/*"
]
},
"organizeImports": { "enabled": true },
"organizeImports": {
"enabled": true
},
"linter": {
"enabled": true,
"rules": {
Expand Down Expand Up @@ -72,25 +81,25 @@
},
"correctness": {
"noConstAssign": "error",
"noConstantCondition": "error",
"noEmptyCharacterClassInRegex": "error",
"noConstantCondition": "warn",
"noEmptyCharacterClassInRegex": "warn",
"noEmptyPattern": "error",
"noGlobalObjectCalls": "error",
"noInvalidBuiltinInstantiation": "error",
"noInvalidConstructorSuper": "error",
"noNonoctalDecimalEscape": "error",
"noPrecisionLoss": "error",
"noSelfAssign": "error",
"noSelfAssign": "warn",
"noSetterReturn": "error",
"noSwitchDeclarations": "error",
"noUndeclaredVariables": "error",
"noSwitchDeclarations": "warn",
"noUndeclaredVariables": "warn",
"noUnreachable": "error",
"noUnreachableSuper": "error",
"noUnsafeFinally": "error",
"noUnsafeFinally": "warn",
"noUnsafeOptionalChaining": "error",
"noUnusedLabels": "error",
"noUnusedPrivateClassMembers": "error",
"noUnusedVariables": "error",
"noUnusedVariables": "off",
"useArrayLiterals": "off",
"useIsNan": "error",
"useValidForDirection": "error",
Expand All @@ -103,44 +112,49 @@
"useAsConstAssertion": "error",
"useBlockStatements": "off",
"useConsistentArrayType": "error",
"useForOf": "error",
"useForOf": "off",
"useLiteralEnumMembers": "error",
"useShorthandFunctionType": "error"
},
"suspicious": {
"noAssignInExpressions": "error",
"noAssignInExpressions": "off",
"noAsyncPromiseExecutor": "error",
"noCatchAssign": "error",
"noClassAssign": "error",
"noCompareNegZero": "error",
"noConfusingVoidType": "error",
"noControlCharactersInRegex": "error",
"noConfusingVoidType": "off",
"noControlCharactersInRegex": "off",
"noDebugger": "error",
"noDuplicateCase": "error",
"noDuplicateClassMembers": "error",
"noDuplicateObjectKeys": "error",
"noDuplicateParameters": "error",
"noEmptyBlockStatements": "error",
"noExplicitAny": "error",
"noEmptyBlockStatements": "off",
"noExplicitAny": "off",
"noExtraNonNullAssertion": "error",
"noFallthroughSwitchClause": "error",
"noFunctionAssign": "error",
"noFallthroughSwitchClause": "warn",
"noFunctionAssign": "off",
"noGlobalAssign": "error",
"noImportAssign": "error",
"noMisleadingCharacterClass": "error",
"noMisleadingCharacterClass": "warn",
"noMisleadingInstantiator": "error",
"noPrototypeBuiltins": "error",
"noRedeclare": "error",
"noPrototypeBuiltins": "warn",
"noRedeclare": "warn",
"noShadowRestrictedNames": "error",
"noSparseArray": "error",
"noSparseArray": "warn",
"noUnsafeDeclarationMerging": "error",
"noUnsafeNegation": "error",
"useGetterReturn": "error",
"useNamespaceKeyword": "error",
"useValidTypeof": "error"
"useValidTypeof": "warn"
}
},
"ignore": ["**/build/", "**/dist/", "**/node_modules/", "**/.next/"]
"ignore": [
"**/build/",
"**/dist/",
"**/node_modules/",
"**/.next/"
]
},
"javascript": {
"formatter": {
Expand All @@ -157,9 +171,24 @@
"globals": []
},
"overrides": [
{ "include": ["*.yaml", "*.yml"], "javascript": { "formatter": { "quoteStyle": "single" } } },
{
"include": ["**/*.ts", "**/*.tsx", "**/*.mts", "**/*.cts"],
"include": [
"*.yaml",
"*.yml"
],
"javascript": {
"formatter": {
"quoteStyle": "single"
}
}
},
{
"include": [
"**/*.ts",
"**/*.tsx",
"**/*.mts",
"**/*.cts"
],
"linter": {
"rules": {
"correctness": {
Expand All @@ -173,7 +202,11 @@
"noUnreachable": "off",
"noUnreachableSuper": "off"
},
"style": { "noArguments": "error", "noVar": "error", "useConst": "error" },
"style": {
"noArguments": "error",
"noVar": "error",
"useConst": "error"
},
"suspicious": {
"noClassAssign": "off",
"noDuplicateClassMembers": "off",
Expand All @@ -189,7 +222,12 @@
}
},
{
"include": ["**/*.ts", "**/*.tsx", "**/*.mts", "**/*.cts"],
"include": [
"**/*.ts",
"**/*.tsx",
"**/*.mts",
"**/*.cts"
],
"linter": {
"rules": {
"correctness": {
Expand All @@ -203,7 +241,11 @@
"noUnreachable": "off",
"noUnreachableSuper": "off"
},
"style": { "noArguments": "error", "noVar": "error", "useConst": "error" },
"style": {
"noArguments": "error",
"noVar": "error",
"useConst": "error"
},
"suspicious": {
"noClassAssign": "off",
"noDuplicateClassMembers": "off",
Expand All @@ -218,9 +260,18 @@
}
}
},
{ "include": ["**/*.{js,mjs,cjs,ts,jsx,tsx}"], "linter": { "rules": {} } },
{
"include": ["**/*.{js,mjs,cjs,ts,jsx,tsx}"],
"include": [
"**/*.{js,mjs,cjs,ts,jsx,tsx}"
],
"linter": {
"rules": {}
}
},
{
"include": [
"**/*.{js,mjs,cjs,ts,jsx,tsx}"
],
"javascript": {
"globals": [
"onscrollend",
Expand Down Expand Up @@ -347,10 +398,14 @@
"ononline"
]
},
"linter": { "rules": {} }
"linter": {
"rules": {}
}
},
{
"include": ["**/*.{ts,tsx}"],
"include": [
"**/*.{ts,tsx}"
],
"linter": {
"rules": {
"suspicious": {
Expand Down

0 comments on commit a9e4cd8

Please sign in to comment.