change to biome
This commit is contained in:
208
biome.json
Normal file
208
biome.json
Normal file
@@ -0,0 +1,208 @@
|
||||
{
|
||||
"$schema": "https://biomejs.dev/schemas/1.9.4/schema.json",
|
||||
"vcs": { "enabled": false, "clientKind": "git", "useIgnoreFile": false },
|
||||
"files": { "ignoreUnknown": false, "ignore": [] },
|
||||
"formatter": {
|
||||
"enabled": true,
|
||||
"useEditorconfig": true,
|
||||
"formatWithErrors": false,
|
||||
"indentStyle": "space",
|
||||
"indentWidth": 2,
|
||||
"lineEnding": "lf",
|
||||
"lineWidth": 80,
|
||||
"attributePosition": "auto",
|
||||
"bracketSpacing": true
|
||||
},
|
||||
"organizeImports": { "enabled": true },
|
||||
"linter": {
|
||||
"enabled": true,
|
||||
"rules": {
|
||||
"recommended": false,
|
||||
"complexity": {
|
||||
"noUselessThisAlias": "error",
|
||||
"noUselessTypeConstraint": "error",
|
||||
"useArrowFunction": "off"
|
||||
},
|
||||
"correctness": {
|
||||
"noConstAssign": "off",
|
||||
"noGlobalObjectCalls": "off",
|
||||
"noInvalidBuiltinInstantiation": "off",
|
||||
"noInvalidConstructorSuper": "off",
|
||||
"noNewSymbol": "off",
|
||||
"noSetterReturn": "off",
|
||||
"noUndeclaredVariables": "off",
|
||||
"noUnreachable": "off",
|
||||
"noUnreachableSuper": "off",
|
||||
"noUnusedVariables": "error",
|
||||
"useArrayLiterals": "off"
|
||||
},
|
||||
"style": {
|
||||
"noArguments": "error",
|
||||
"noNamespace": "error",
|
||||
"noVar": "error",
|
||||
"useAsConstAssertion": "error",
|
||||
"useBlockStatements": "off",
|
||||
"useConst": "error"
|
||||
},
|
||||
"suspicious": {
|
||||
"noDuplicateClassMembers": "off",
|
||||
"noDuplicateObjectKeys": "off",
|
||||
"noDuplicateParameters": "off",
|
||||
"noExplicitAny": "error",
|
||||
"noExtraNonNullAssertion": "error",
|
||||
"noFunctionAssign": "off",
|
||||
"noImportAssign": "off",
|
||||
"noMisleadingInstantiator": "error",
|
||||
"noRedeclare": "off",
|
||||
"noUnsafeDeclarationMerging": "error",
|
||||
"noUnsafeNegation": "off",
|
||||
"useGetterReturn": "off",
|
||||
"useNamespaceKeyword": "error"
|
||||
}
|
||||
},
|
||||
"ignore": ["**/.eslintrc.js"]
|
||||
},
|
||||
"javascript": {
|
||||
"formatter": {
|
||||
"jsxQuoteStyle": "double",
|
||||
"quoteProperties": "asNeeded",
|
||||
"trailingCommas": "all",
|
||||
"semicolons": "asNeeded",
|
||||
"arrowParentheses": "always",
|
||||
"bracketSameLine": false,
|
||||
"quoteStyle": "single",
|
||||
"attributePosition": "auto",
|
||||
"bracketSpacing": true
|
||||
},
|
||||
"parser": {
|
||||
"unsafeParameterDecoratorsEnabled": true
|
||||
},
|
||||
"globals": [
|
||||
"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",
|
||||
"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"
|
||||
]
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user