mirror of
https://github.com/lichess-org/lila.git
synced 2026-05-26 13:51:00 +00:00
271 lines
6.6 KiB
JSON
271 lines
6.6 KiB
JSON
{
|
|
"$schema": "./node_modules/oxlint/configuration_schema.json",
|
|
"plugins": ["import", "promise", "typescript", "unicorn"],
|
|
"env": {
|
|
"builtin": true
|
|
},
|
|
"ignorePatterns": ["**/dist/", "**/public"],
|
|
"rules": {
|
|
"default-param-last": "error",
|
|
"eqeqeq": [
|
|
"error",
|
|
"always",
|
|
{
|
|
"null": "ignore"
|
|
}
|
|
],
|
|
"no-var": "warn",
|
|
"no-constant-condition": [
|
|
"warn",
|
|
{
|
|
"checkLoops": false
|
|
}
|
|
],
|
|
"no-duplicate-imports": "error",
|
|
"no-useless-call": "error",
|
|
"no-useless-computed-key": "error",
|
|
"no-useless-concat": "error",
|
|
"no-useless-constructor": "error",
|
|
"no-useless-return": "error",
|
|
"no-useless-spread": "error",
|
|
"no-unused-vars": [
|
|
"warn",
|
|
{
|
|
"varsIgnorePattern": "^_",
|
|
"argsIgnorePattern": "^_",
|
|
"caughtErrorsIgnorePattern": "^_"
|
|
}
|
|
],
|
|
"import/no-cycle": "error",
|
|
"prefer-promise-reject-errors": "error",
|
|
"promise/no-callback-in-promise": "error",
|
|
"promise/no-multiple-resolved": "error",
|
|
"promise/no-return-wrap": "error",
|
|
"typescript/consistent-indexed-object-style": "error",
|
|
"typescript/no-empty-interface": "error",
|
|
"typescript/no-empty-object-type": "error",
|
|
"typescript/no-confusing-non-null-assertion": "error",
|
|
"typescript/no-extra-non-null-assertion": "error",
|
|
"typescript/no-inferrable-types": "error",
|
|
"typescript/no-unnecessary-template-expression": "error",
|
|
"typescript/no-unnecessary-type-arguments": "error",
|
|
"typescript/no-unnecessary-type-assertion": "error",
|
|
"typescript/no-unnecessary-type-constraint": "error",
|
|
"typescript/prefer-find": "error",
|
|
"typescript/prefer-includes": "error",
|
|
"typescript/prefer-readonly": "error",
|
|
"typescript/prefer-reduce-type-parameter": "error",
|
|
"typescript/prefer-string-starts-ends-with": "error",
|
|
"unicorn/no-immediate-mutation": "error",
|
|
"unicorn/no-unnecessary-array-flat-depth": "error",
|
|
"unicorn/no-useless-collection-argument": "error",
|
|
"unicorn/prefer-array-flat": "error",
|
|
"unicorn/prefer-array-flat-map": "error",
|
|
"unicorn/prefer-array-some": "error",
|
|
"unicorn/prefer-date-now": "error",
|
|
"unicorn/prefer-keyboard-event-key": "error",
|
|
"unicorn/prefer-node-protocol": "error",
|
|
"unicorn/require-number-to-fixed-digits-argument": "error",
|
|
"no-restricted-globals": [
|
|
"error",
|
|
"addEventListener",
|
|
"blur",
|
|
"captureEvents",
|
|
"chrome",
|
|
"clientInformation",
|
|
"close",
|
|
"closed",
|
|
"createImageBitmap",
|
|
"crypto",
|
|
"customElements",
|
|
"defaultstatus",
|
|
"defaultStatus",
|
|
"devicePixelRatio",
|
|
"external",
|
|
"find",
|
|
"focus",
|
|
"frameElement",
|
|
"frames",
|
|
"getComputedStyle",
|
|
"getSelection",
|
|
"indexedDB",
|
|
"innerHeight",
|
|
"innerWidth",
|
|
"isSecureContext",
|
|
"length",
|
|
"locationbar",
|
|
"matchMedia",
|
|
"menubar",
|
|
"moveBy",
|
|
"moveTo",
|
|
"name",
|
|
"onabort",
|
|
"onafterprint",
|
|
"onanimationend",
|
|
"onanimationiteration",
|
|
"onanimationstart",
|
|
"onappinstalled",
|
|
"onauxclick",
|
|
"onbeforeinstallprompt",
|
|
"onbeforeprint",
|
|
"onbeforeunload",
|
|
"onblur",
|
|
"oncancel",
|
|
"oncanplay",
|
|
"oncanplaythrough",
|
|
"onchange",
|
|
"onclick",
|
|
"onclose",
|
|
"oncontextmenu",
|
|
"oncuechange",
|
|
"ondblclick",
|
|
"ondevicemotion",
|
|
"ondeviceorientation",
|
|
"ondeviceorientationabsolute",
|
|
"ondrag",
|
|
"ondragend",
|
|
"ondragenter",
|
|
"ondragleave",
|
|
"ondragover",
|
|
"ondragstart",
|
|
"ondrop",
|
|
"ondurationchange",
|
|
"onemptied",
|
|
"onended",
|
|
"onerror",
|
|
"onfocus",
|
|
"ongotpointercapture",
|
|
"onhashchange",
|
|
"oninput",
|
|
"oninvalid",
|
|
"onkeydown",
|
|
"onkeypress",
|
|
"onkeyup",
|
|
"onlanguagechange",
|
|
"onload",
|
|
"onloadeddata",
|
|
"onloadedmetadata",
|
|
"onloadstart",
|
|
"onlostpointercapture",
|
|
"onmessage",
|
|
"onmessageerror",
|
|
"onmousedown",
|
|
"onmouseenter",
|
|
"onmouseleave",
|
|
"onmousemove",
|
|
"onmouseout",
|
|
"onmouseover",
|
|
"onmouseup",
|
|
"onmousewheel",
|
|
"onoffline",
|
|
"ononline",
|
|
"onpagehide",
|
|
"onpageshow",
|
|
"onpause",
|
|
"onplay",
|
|
"onplaying",
|
|
"onpointercancel",
|
|
"onpointerdown",
|
|
"onpointerenter",
|
|
"onpointerleave",
|
|
"onpointermove",
|
|
"onpointerout",
|
|
"onpointerover",
|
|
"onpointerup",
|
|
"onpopstate",
|
|
"onprogress",
|
|
"onratechange",
|
|
"onrejectionhandled",
|
|
"onreset",
|
|
"onresize",
|
|
"onscroll",
|
|
"onsearch",
|
|
"onseeked",
|
|
"onseeking",
|
|
"onselect",
|
|
"onstalled",
|
|
"onstorage",
|
|
"onsubmit",
|
|
"onsuspend",
|
|
"ontimeupdate",
|
|
"ontoggle",
|
|
"ontransitionend",
|
|
"onunhandledrejection",
|
|
"onunload",
|
|
"onvolumechange",
|
|
"onwaiting",
|
|
"onwebkitanimationend",
|
|
"onwebkitanimationiteration",
|
|
"onwebkitanimationstart",
|
|
"onwebkittransitionend",
|
|
"onwheel",
|
|
"open",
|
|
"openDatabase",
|
|
"opener",
|
|
"origin",
|
|
"outerHeight",
|
|
"outerWidth",
|
|
"pageXOffset",
|
|
"pageYOffset",
|
|
"parent",
|
|
"personalbar",
|
|
"postMessage",
|
|
"releaseEvents",
|
|
"removeEventListener",
|
|
"resizeBy",
|
|
"resizeTo",
|
|
"screen",
|
|
"screenLeft",
|
|
"screenTop",
|
|
"screenX",
|
|
"screenY",
|
|
"scroll",
|
|
"scrollbars",
|
|
"scrollBy",
|
|
"scrollTo",
|
|
"scrollX",
|
|
"scrollY",
|
|
"status",
|
|
"statusbar",
|
|
"stop",
|
|
"styleMedia",
|
|
"toolbar",
|
|
"top",
|
|
"visualViewport",
|
|
"webkitRequestFileSystem",
|
|
"webkitResolveLocalFileSystemURL",
|
|
"webkitStorageInfo"
|
|
],
|
|
|
|
"no-useless-escape": "off",
|
|
"no-control-regex": "off",
|
|
"no-unused-expressions": "off",
|
|
"typescript/no-base-to-string": "off",
|
|
"typescript/no-duplicate-type-constituents": "off",
|
|
"typescript/no-explicit-any": "off",
|
|
"typescript/no-floating-promises": "off",
|
|
"typescript/no-misused-spread": "off",
|
|
"typescript/no-redundant-type-constituents": "off",
|
|
"typescript/no-this-alias": "off",
|
|
"typescript/triple-slash-reference": "off",
|
|
"typescript/require-array-sort-compare": "off",
|
|
"typescript/restrict-template-expressions": "off",
|
|
"typescript/unbound-method": "off"
|
|
},
|
|
"overrides": [
|
|
{
|
|
"files": ["bin/**", "cron/**"],
|
|
"rules": {
|
|
"no-unused-vars": "off",
|
|
"await-thenable": "off"
|
|
}
|
|
},
|
|
{
|
|
"files": ["ui/.build/**"],
|
|
"rules": {
|
|
"import/no-cycle": "off"
|
|
}
|
|
}
|
|
]
|
|
}
|