chore: trying out oxlint
This commit is contained in:
+303
@@ -0,0 +1,303 @@
|
||||
{
|
||||
"$schema": "https://biomejs.dev/schemas/1.9.4/schema.json",
|
||||
"files": { "ignore": [], "ignoreUnknown": false },
|
||||
"formatter": { "enabled": true, "indentStyle": "tab" },
|
||||
"javascript": { "formatter": { "quoteStyle": "double" }, "globals": [] },
|
||||
"linter": {
|
||||
"enabled": true,
|
||||
"ignore": [
|
||||
"**/.DS_Store",
|
||||
"**/node_modules",
|
||||
"build",
|
||||
".svelte-kit",
|
||||
"package",
|
||||
"**/.env",
|
||||
"**/.env.*",
|
||||
"**/pnpm-lock.yaml",
|
||||
"**/package-lock.json",
|
||||
"**/yarn.lock",
|
||||
"**/svelte.config.js",
|
||||
"eslint.config.js",
|
||||
"tailwind.config.js",
|
||||
"coverage"
|
||||
],
|
||||
"rules": {
|
||||
"complexity": {
|
||||
"noExtraBooleanCast": "error",
|
||||
"noForEach": "error",
|
||||
"noMultipleSpacesInRegularExpressionLiterals": "error",
|
||||
"noStaticOnlyClass": "error",
|
||||
"noUselessCatch": "error",
|
||||
"noUselessSwitchCase": "error",
|
||||
"noUselessTypeConstraint": "error",
|
||||
"noWith": "error",
|
||||
"useDateNow": "error",
|
||||
"useFlatMap": "error"
|
||||
},
|
||||
"correctness": {
|
||||
"noConstAssign": "error",
|
||||
"noConstantCondition": "error",
|
||||
"noEmptyCharacterClassInRegex": "error",
|
||||
"noEmptyPattern": "error",
|
||||
"noGlobalObjectCalls": "error",
|
||||
"noInvalidBuiltinInstantiation": "error",
|
||||
"noInvalidConstructorSuper": "error",
|
||||
"noNonoctalDecimalEscape": "error",
|
||||
"noPrecisionLoss": "error",
|
||||
"noSelfAssign": "error",
|
||||
"noSetterReturn": "error",
|
||||
"noSwitchDeclarations": "error",
|
||||
"noUndeclaredVariables": "error",
|
||||
"noUnreachable": "error",
|
||||
"noUnreachableSuper": "error",
|
||||
"noUnsafeFinally": "error",
|
||||
"noUnsafeOptionalChaining": "error",
|
||||
"noUnusedLabels": "error",
|
||||
"noUnusedPrivateClassMembers": "error",
|
||||
"noUnusedVariables": "error",
|
||||
"useArrayLiterals": "off",
|
||||
"useIsNan": "error",
|
||||
"useValidForDirection": "error",
|
||||
"useYield": "error"
|
||||
},
|
||||
"recommended": false,
|
||||
"style": {
|
||||
"noNamespace": "error",
|
||||
"noNegationElse": "off",
|
||||
"useAsConstAssertion": "error",
|
||||
"useExplicitLengthCheck": "error",
|
||||
"useForOf": "error",
|
||||
"useNodejsImportProtocol": "error",
|
||||
"useNumberNamespace": "error",
|
||||
"useThrowNewError": "error"
|
||||
},
|
||||
"suspicious": {
|
||||
"noAsyncPromiseExecutor": "error",
|
||||
"noCatchAssign": "error",
|
||||
"noClassAssign": "error",
|
||||
"noCompareNegZero": "error",
|
||||
"noControlCharactersInRegex": "error",
|
||||
"noDebugger": "error",
|
||||
"noDuplicateCase": "error",
|
||||
"noDuplicateClassMembers": "error",
|
||||
"noDuplicateObjectKeys": "error",
|
||||
"noDuplicateParameters": "error",
|
||||
"noEmptyBlockStatements": "error",
|
||||
"noExplicitAny": "error",
|
||||
"noExtraNonNullAssertion": "error",
|
||||
"noFallthroughSwitchClause": "error",
|
||||
"noFunctionAssign": "error",
|
||||
"noGlobalAssign": "error",
|
||||
"noImportAssign": "error",
|
||||
"noMisleadingCharacterClass": "error",
|
||||
"noMisleadingInstantiator": "error",
|
||||
"noPrototypeBuiltins": "error",
|
||||
"noRedeclare": "error",
|
||||
"noShadowRestrictedNames": "error",
|
||||
"noSparseArray": "error",
|
||||
"noThenProperty": "error",
|
||||
"noUnsafeDeclarationMerging": "error",
|
||||
"noUnsafeNegation": "error",
|
||||
"useErrorMessage": "error",
|
||||
"useGetterReturn": "error",
|
||||
"useNamespaceKeyword": "error",
|
||||
"useNumberToFixedDigitsArgument": "error",
|
||||
"useValidTypeof": "error"
|
||||
}
|
||||
}
|
||||
},
|
||||
"organizeImports": { "enabled": true },
|
||||
"overrides": [
|
||||
{
|
||||
"include": ["*.svelte", "**/*.svelte"],
|
||||
"javascript": { "globals": [] },
|
||||
"linter": {
|
||||
"rules": {
|
||||
"correctness": { "noInnerDeclarations": "off", "noSelfAssign": "off" }
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"include": ["*.svelte.js", "*.svelte.ts", "**/*.svelte.js", "**/*.svelte.ts"],
|
||||
"javascript": { "globals": [] }
|
||||
},
|
||||
{
|
||||
"include": ["**/*.ts", "**/*.tsx", "**/*.mts", "**/*.cts"],
|
||||
"linter": {
|
||||
"rules": {
|
||||
"complexity": { "noWith": "off" },
|
||||
"correctness": {
|
||||
"noConstAssign": "off",
|
||||
"noGlobalObjectCalls": "off",
|
||||
"noInvalidBuiltinInstantiation": "off",
|
||||
"noInvalidConstructorSuper": "off",
|
||||
"noNewSymbol": "off",
|
||||
"noSetterReturn": "off",
|
||||
"noUndeclaredVariables": "off",
|
||||
"noUnreachable": "off",
|
||||
"noUnreachableSuper": "off"
|
||||
},
|
||||
"style": {
|
||||
"noArguments": "error",
|
||||
"noVar": "error",
|
||||
"useConst": "error"
|
||||
},
|
||||
"suspicious": {
|
||||
"noClassAssign": "off",
|
||||
"noDuplicateClassMembers": "off",
|
||||
"noDuplicateObjectKeys": "off",
|
||||
"noDuplicateParameters": "off",
|
||||
"noFunctionAssign": "off",
|
||||
"noImportAssign": "off",
|
||||
"noRedeclare": "off",
|
||||
"noUnsafeNegation": "off",
|
||||
"useGetterReturn": "off"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"ignore": ["**/service-worker/**"],
|
||||
"javascript": {
|
||||
"globals": [
|
||||
"NodeJS",
|
||||
"onscrollend",
|
||||
"onpointerleave",
|
||||
"oncontextrestored",
|
||||
"onemptied",
|
||||
"ongamepaddisconnected",
|
||||
"onkeypress",
|
||||
"onloadeddata",
|
||||
"onmouseup",
|
||||
"onvolumechange",
|
||||
"onpaste",
|
||||
"onstorage",
|
||||
"onkeyup",
|
||||
"onabort",
|
||||
"oncut",
|
||||
"ontransitionrun",
|
||||
"onafterprint",
|
||||
"onblur",
|
||||
"ondurationchange",
|
||||
"ontransitionstart",
|
||||
"oncanplaythrough",
|
||||
"onanimationend",
|
||||
"onmouseleave",
|
||||
"ondragleave",
|
||||
"onplay",
|
||||
"onunhandledrejection",
|
||||
"onbeforeprint",
|
||||
"oncommand",
|
||||
"onpointercancel",
|
||||
"onsubmit",
|
||||
"ondragstart",
|
||||
"onmessage",
|
||||
"location",
|
||||
"onoffline",
|
||||
"onappinstalled",
|
||||
"onwheel",
|
||||
"onended",
|
||||
"onkeydown",
|
||||
"onclick",
|
||||
"onfocus",
|
||||
"onscroll",
|
||||
"ongamepadconnected",
|
||||
"oncanplay",
|
||||
"onpointerdown",
|
||||
"ondeviceorientationabsolute",
|
||||
"onauxclick",
|
||||
"ondevicemotion",
|
||||
"onratechange",
|
||||
"ontransitionend",
|
||||
"onscrollsnapchanging",
|
||||
"onchange",
|
||||
"onselect",
|
||||
"onbeforeinstallprompt",
|
||||
"onbeforetoggle",
|
||||
"onmouseout",
|
||||
"ontimeupdate",
|
||||
"ondragover",
|
||||
"oncuechange",
|
||||
"ontransitioncancel",
|
||||
"onprogress",
|
||||
"onbeforeinput",
|
||||
"onpointerenter",
|
||||
"onmouseenter",
|
||||
"oninvalid",
|
||||
"onpointerout",
|
||||
"onpagereveal",
|
||||
"onpause",
|
||||
"onanimationstart",
|
||||
"onwaiting",
|
||||
"onscrollsnapchange",
|
||||
"ondeviceorientation",
|
||||
"onclose",
|
||||
"onbeforeunload",
|
||||
"oncancel",
|
||||
"onseeked",
|
||||
"onpointerover",
|
||||
"ongotpointercapture",
|
||||
"onloadedmetadata",
|
||||
"onpageshow",
|
||||
"onstalled",
|
||||
"oncontextmenu",
|
||||
"onreset",
|
||||
"ondrag",
|
||||
"onbeforematch",
|
||||
"onload",
|
||||
"onlostpointercapture",
|
||||
"onsuspend",
|
||||
"onselectionchange",
|
||||
"onpagehide",
|
||||
"onrejectionhandled",
|
||||
"onunload",
|
||||
"onanimationcancel",
|
||||
"onmousedown",
|
||||
"onpointerup",
|
||||
"onmouseover",
|
||||
"onformdata",
|
||||
"oncontentvisibilityautostatechange",
|
||||
"onresize",
|
||||
"onsearch",
|
||||
"ontoggle",
|
||||
"exports",
|
||||
"onpageswap",
|
||||
"onbeforexrselect",
|
||||
"onlanguagechange",
|
||||
"ondragenter",
|
||||
"onerror",
|
||||
"onpointermove",
|
||||
"onmousemove",
|
||||
"ondrop",
|
||||
"onhashchange",
|
||||
"onsecuritypolicyviolation",
|
||||
"onslotchange",
|
||||
"oncopy",
|
||||
"onanimationiteration",
|
||||
"ondblclick",
|
||||
"ondragend",
|
||||
"onpointerrawupdate",
|
||||
"onpopstate",
|
||||
"onplaying",
|
||||
"oncontextlost",
|
||||
"onloadstart",
|
||||
"onseeking",
|
||||
"oninput",
|
||||
"onmessageerror",
|
||||
"onselectstart",
|
||||
"onmousewheel",
|
||||
"ononline"
|
||||
]
|
||||
},
|
||||
"linter": {
|
||||
"rules": {
|
||||
"correctness": { "noUnusedVariables": "warn" },
|
||||
"style": { "useBlockStatements": "error" },
|
||||
"suspicious": { "useAwait": "error" }
|
||||
}
|
||||
}
|
||||
},
|
||||
{ "include": ["**/*.svelte"], "javascript": { "globals": [] } }
|
||||
],
|
||||
"vcs": { "clientKind": "git", "enabled": false, "useIgnoreFile": false }
|
||||
}
|
||||
Reference in New Issue
Block a user