296 lines
11 KiB
JSON
296 lines
11 KiB
JSON
{
|
|
"$schema": "./node_modules/oxlint/configuration_schema.json",
|
|
"plugins": [
|
|
"unicorn",
|
|
"typescript",
|
|
"oxc",
|
|
"react",
|
|
"react-perf",
|
|
"jsx-a11y",
|
|
"import",
|
|
"promise",
|
|
"node"
|
|
],
|
|
"categories": {
|
|
"correctness": "error",
|
|
"suspicious": "error",
|
|
"pedantic": "error",
|
|
"perf": "error",
|
|
"style": "error",
|
|
"restriction": "error"
|
|
},
|
|
"rules": {
|
|
"array-callback-return": "off",
|
|
"arrow-body-style": "off",
|
|
"class-methods-use-this": "off",
|
|
"complexity": "off",
|
|
"curly": "off",
|
|
"default-case": "off",
|
|
"default-param-last": "off",
|
|
"eqeqeq": "off",
|
|
"func-name-matching": "off",
|
|
"func-names": "off",
|
|
"func-style": "off",
|
|
"guard-for-in": "off",
|
|
"id-length": "off",
|
|
"init-declarations": "off",
|
|
"logical-assignment-operators": "off",
|
|
"max-classes-per-file": "off",
|
|
"max-depth": "off",
|
|
"max-lines": "off",
|
|
"max-lines-per-function": "off",
|
|
"max-params": "off",
|
|
"max-statements": "off",
|
|
"new-cap": "off",
|
|
"no-await-in-loop": "off",
|
|
"no-bitwise": "off",
|
|
"no-console": "off",
|
|
"no-continue": "off",
|
|
"no-control-regex": "off",
|
|
"no-div-regex": "off",
|
|
"no-duplicate-imports": "off",
|
|
"no-empty": "off",
|
|
"no-empty-function": "off",
|
|
"no-eq-null": "off",
|
|
"no-implicit-coercion": "off",
|
|
"no-inner-declarations": "off",
|
|
"no-lone-blocks": "off",
|
|
"no-loop-func": "off",
|
|
"no-magic-numbers": "off",
|
|
"no-misleading-character-class": "off",
|
|
"no-multi-assign": "off",
|
|
"no-negated-condition": "off",
|
|
"no-nested-ternary": "off",
|
|
"no-new": "off",
|
|
"no-new-func": "off",
|
|
"no-param-reassign": "off",
|
|
"no-plusplus": "off",
|
|
"no-promise-executor-return": "off",
|
|
"no-regex-spaces": "off",
|
|
"no-script-url": "off",
|
|
"no-sequences": "off",
|
|
"no-shadow": "off",
|
|
"no-template-curly-in-string": "off",
|
|
"no-ternary": "off",
|
|
"no-unassigned-vars": "off",
|
|
"no-undefined": "off",
|
|
"no-underscore-dangle": "off",
|
|
"no-unexpected-multiline": "off",
|
|
"no-unmodified-loop-condition": "off",
|
|
"no-unsafe-finally": "off",
|
|
"no-unused-expressions": "off",
|
|
"no-unused-vars": "off",
|
|
"no-use-before-define": "off",
|
|
"no-useless-escape": "off",
|
|
"no-useless-return": "off",
|
|
"no-void": "off",
|
|
"object-shorthand": "off",
|
|
"one-var": "off",
|
|
"operator-assignment": "off",
|
|
"prefer-arrow-callback": "off",
|
|
"prefer-const": "off",
|
|
"prefer-destructuring": "off",
|
|
"prefer-named-capture-group": "off",
|
|
"prefer-object-spread": "off",
|
|
"prefer-regex-literals": "off",
|
|
"prefer-template": "off",
|
|
"preserve-caught-error": "off",
|
|
"require-await": "off",
|
|
"require-unicode-regexp": "off",
|
|
"require-yield": "off",
|
|
"sort-imports": "off",
|
|
"sort-keys": "off",
|
|
"sort-vars": "off",
|
|
"import/consistent-type-specifier-style": "off",
|
|
"import/exports-last": "off",
|
|
"import/first": "off",
|
|
"import/group-exports": "off",
|
|
"import/max-dependencies": "off",
|
|
"import/newline-after-import": "off",
|
|
"import/no-anonymous-default-export": "off",
|
|
"import/no-commonjs": "off",
|
|
"import/no-cycle": "off",
|
|
"import/no-default-export": "off",
|
|
"import/no-duplicates": "off",
|
|
"import/no-named-as-default": "off",
|
|
"import/no-named-as-default-member": "off",
|
|
"import/no-named-export": "off",
|
|
"import/no-namespace": "off",
|
|
"import/no-nodejs-modules": "off",
|
|
"import/no-relative-parent-imports": "off",
|
|
"import/no-unassigned-import": "off",
|
|
"import/prefer-default-export": "off",
|
|
"import/unambiguous": "off",
|
|
"jsx-a11y/click-events-have-key-events": "off",
|
|
"jsx-a11y/control-has-associated-label": "off",
|
|
"jsx-a11y/interactive-supports-focus": "off",
|
|
"jsx-a11y/label-has-associated-control": "off",
|
|
"jsx-a11y/media-has-caption": "off",
|
|
"jsx-a11y/no-autofocus": "off",
|
|
"jsx-a11y/no-noninteractive-element-interactions": "off",
|
|
"jsx-a11y/no-noninteractive-tabindex": "off",
|
|
"jsx-a11y/no-redundant-roles": "off",
|
|
"jsx-a11y/no-static-element-interactions": "off",
|
|
"jsx-a11y/prefer-tag-over-role": "off",
|
|
"node/callback-return": "off",
|
|
"node/no-process-env": "off",
|
|
"node/no-sync": "off",
|
|
"node/no-top-level-await": "off",
|
|
"oxc/approx-constant": "off",
|
|
"oxc/no-async-await": "off",
|
|
"oxc/no-async-endpoint-handlers": "off",
|
|
"oxc/no-map-spread": "off",
|
|
"oxc/no-optional-chaining": "off",
|
|
"oxc/no-rest-spread-properties": "off",
|
|
"promise/always-return": "off",
|
|
"promise/avoid-new": "off",
|
|
"promise/catch-or-return": "off",
|
|
"promise/no-callback-in-promise": "off",
|
|
"promise/no-multiple-resolved": "off",
|
|
"promise/no-nesting": "off",
|
|
"promise/no-promise-in-callback": "off",
|
|
"promise/param-names": "off",
|
|
"promise/prefer-await-to-callbacks": "off",
|
|
"promise/prefer-await-to-then": "off",
|
|
"promise/prefer-catch": "off",
|
|
"react/button-has-type": "off",
|
|
"react/exhaustive-effect-dependencies": "off",
|
|
"react/forbid-component-props": "off",
|
|
"react/function-component-definition": "off",
|
|
"react/globals": "off",
|
|
"react/hook-use-state": "off",
|
|
"react/iframe-missing-sandbox": "off",
|
|
"react/immutability": "off",
|
|
"react/jsx-filename-extension": "off",
|
|
"react/jsx-handler-names": "off",
|
|
"react/jsx-key": "off",
|
|
"react/jsx-max-depth": "off",
|
|
"react/jsx-no-constructed-context-values": "off",
|
|
"react/jsx-no-literals": "off",
|
|
"react/jsx-no-target-blank": "off",
|
|
"react/jsx-no-useless-fragment": "off",
|
|
"react/jsx-props-no-spreading": "off",
|
|
"react/memo-dependencies": "off",
|
|
"react/no-array-index-key": "off",
|
|
"react/no-children-prop": "off",
|
|
"react/no-clone-element": "off",
|
|
"react/no-multi-comp": "off",
|
|
"react/no-object-type-as-default-prop": "off",
|
|
"react/no-react-children": "off",
|
|
"react/no-set-state": "off",
|
|
"react/no-unescaped-entities": "off",
|
|
"react/no-unstable-nested-components": "off",
|
|
"react/only-export-components": "off",
|
|
"react/purity": "off",
|
|
"react/react-in-jsx-scope": "off",
|
|
"react/refs": "off",
|
|
"react/self-closing-comp": "off",
|
|
"react/set-state-in-effect": "off",
|
|
"react/state-in-constructor": "off",
|
|
"react/todo": "off",
|
|
"react/use-memo": "off",
|
|
"react/exhaustive-deps": "off",
|
|
"react/rules-of-hooks": "off",
|
|
"react-perf/jsx-no-jsx-as-prop": "off",
|
|
"react-perf/jsx-no-new-array-as-prop": "off",
|
|
"react-perf/jsx-no-new-function-as-prop": "off",
|
|
"react-perf/jsx-no-new-object-as-prop": "off",
|
|
"typescript/array-type": "off",
|
|
"typescript/ban-types": "off",
|
|
"typescript/consistent-type-definitions": "off",
|
|
"typescript/consistent-type-imports": "off",
|
|
"typescript/explicit-function-return-type": "off",
|
|
"typescript/explicit-member-accessibility": "off",
|
|
"typescript/explicit-module-boundary-types": "off",
|
|
"typescript/method-signature-style": "off",
|
|
"typescript/no-dynamic-delete": "off",
|
|
"typescript/no-explicit-any": "off",
|
|
"typescript/no-import-type-side-effects": "off",
|
|
"typescript/no-invalid-void-type": "off",
|
|
"typescript/no-non-null-assertion": "off",
|
|
"typescript/no-require-imports": "off",
|
|
"typescript/no-unsafe-function-type": "off",
|
|
"typescript/no-var-requires": "off",
|
|
"typescript/parameter-properties": "off",
|
|
"unicorn/catch-error-name": "off",
|
|
"unicorn/consistent-assert": "off",
|
|
"unicorn/consistent-existence-index-check": "off",
|
|
"unicorn/consistent-function-scoping": "off",
|
|
"unicorn/custom-error-definition": "off",
|
|
"unicorn/empty-brace-spaces": "off",
|
|
"unicorn/error-message": "off",
|
|
"unicorn/escape-case": "off",
|
|
"unicorn/explicit-length-check": "off",
|
|
"unicorn/explicit-timer-delay": "off",
|
|
"unicorn/import-style": "off",
|
|
"unicorn/max-nested-calls": "off",
|
|
"unicorn/new-for-builtins": "off",
|
|
"unicorn/no-array-callback-reference": "off",
|
|
"unicorn/no-array-fill-with-reference-type": "off",
|
|
"unicorn/no-array-for-each": "off",
|
|
"unicorn/no-array-method-this-argument": "off",
|
|
"unicorn/no-array-reduce": "off",
|
|
"unicorn/no-array-reverse": "off",
|
|
"unicorn/no-array-sort": "off",
|
|
"unicorn/no-await-expression-member": "off",
|
|
"unicorn/no-document-cookie": "off",
|
|
"unicorn/no-hex-escape": "off",
|
|
"unicorn/no-immediate-mutation": "off",
|
|
"unicorn/no-lonely-if": "off",
|
|
"unicorn/no-magic-array-flat-depth": "off",
|
|
"unicorn/no-negated-condition": "off",
|
|
"unicorn/no-nested-ternary": "off",
|
|
"unicorn/no-new-array": "off",
|
|
"unicorn/no-null": "off",
|
|
"unicorn/no-object-as-default-parameter": "off",
|
|
"unicorn/no-process-exit": "off",
|
|
"unicorn/no-thenable": "off",
|
|
"unicorn/no-unreadable-array-destructuring": "off",
|
|
"unicorn/no-unreadable-iife": "off",
|
|
"unicorn/no-useless-collection-argument": "off",
|
|
"unicorn/no-useless-fallback-in-spread": "off",
|
|
"unicorn/no-useless-spread": "off",
|
|
"unicorn/no-useless-undefined": "off",
|
|
"unicorn/no-zero-fractions": "off",
|
|
"unicorn/number-literal-case": "off",
|
|
"unicorn/numeric-separators-style": "off",
|
|
"unicorn/prefer-add-event-listener": "off",
|
|
"unicorn/prefer-array-find": "off",
|
|
"unicorn/prefer-array-flat": "off",
|
|
"unicorn/prefer-array-index-of": "off",
|
|
"unicorn/prefer-at": "off",
|
|
"unicorn/prefer-code-point": "off",
|
|
"unicorn/prefer-dom-node-append": "off",
|
|
"unicorn/prefer-dom-node-dataset": "off",
|
|
"unicorn/prefer-event-target": "off",
|
|
"unicorn/prefer-export-from": "off",
|
|
"unicorn/prefer-global-this": "off",
|
|
"unicorn/prefer-import-meta-properties": "off",
|
|
"unicorn/prefer-includes": "off",
|
|
"unicorn/prefer-logical-operator-over-ternary": "off",
|
|
"unicorn/prefer-math-min-max": "off",
|
|
"unicorn/prefer-math-trunc": "off",
|
|
"unicorn/prefer-native-coercion-functions": "off",
|
|
"unicorn/prefer-negative-index": "off",
|
|
"unicorn/prefer-number-properties": "off",
|
|
"unicorn/prefer-query-selector": "off",
|
|
"unicorn/prefer-response-static-json": "off",
|
|
"unicorn/prefer-set-has": "off",
|
|
"unicorn/prefer-single-call": "off",
|
|
"unicorn/prefer-spread": "off",
|
|
"unicorn/prefer-string-raw": "off",
|
|
"unicorn/prefer-string-replace-all": "off",
|
|
"unicorn/prefer-string-starts-ends-with": "off",
|
|
"unicorn/prefer-structured-clone": "off",
|
|
"unicorn/prefer-ternary": "off",
|
|
"unicorn/prefer-top-level-await": "off",
|
|
"unicorn/prefer-type-error": "off",
|
|
"unicorn/relative-url-style": "off",
|
|
"unicorn/require-array-join-separator": "off",
|
|
"unicorn/require-post-message-target-origin": "off",
|
|
"unicorn/switch-case-braces": "off",
|
|
"unicorn/text-encoding-identifier-case": "off"
|
|
},
|
|
"ignorePatterns": ["docs/dist/**", "desktop/dist/**"]
|
|
}
|