@luludev/configs 0.1.2 → 0.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -183,7 +183,7 @@ const config = {
183
183
  "typescript/no-extraneous-class": "error",
184
184
  "typescript/no-implied-eval": "warn",
185
185
  "typescript/no-import-type-side-effects": "warn",
186
- "typescript/no-invalid-void-type": "error",
186
+ "typescript/no-invalid-void-type": ["error", { allowAsThisParameter: true }],
187
187
  "typescript/no-misused-promises": "warn",
188
188
  "typescript/no-mixed-enums": "error",
189
189
  "typescript/no-namespace": "error",
@@ -1 +1 @@
1
- {"version":3,"file":"common.js","names":[],"sources":["../../src/oxlint/common.ts"],"sourcesContent":["import type { OxlintConfig } from \"oxlint\";\n\nconst config: OxlintConfig = {\n options: {\n typeAware: true,\n typeCheck: true,\n reportUnusedDisableDirectives: \"warn\",\n },\n plugins: [\"oxc\", \"eslint\", \"unicorn\", \"typescript\", \"import\"],\n rules: {\n // #region oxc\n // https://oxc.rs/docs/guide/usage/linter/rules/oxc/approx-constant\n \"oxc/approx-constant\": \"warn\",\n // https://oxc.rs/docs/guide/usage/linter/rules/oxc/bad-bitwise-operator\n \"oxc/bad-bitwise-operator\": \"warn\",\n // https://oxc.rs/docs/guide/usage/linter/rules/oxc/branches-sharing-code\n \"oxc/branches-sharing-code\": \"warn\",\n // https://oxc.rs/docs/guide/usage/linter/rules/oxc/misrefactored-assign-op\n \"oxc/misrefactored-assign-op\": \"warn\",\n // https://oxc.rs/docs/guide/usage/linter/rules/oxc/no-accumulating-spread\n \"oxc/no-accumulating-spread\": \"warn\",\n // https://oxc.rs/docs/guide/usage/linter/rules/oxc/no-barrel-file\n \"oxc/no-barrel-file\": \"warn\",\n // https://oxc.rs/docs/guide/usage/linter/rules/oxc/no-const-enum\n \"oxc/no-const-enum\": \"error\",\n // https://oxc.rs/docs/guide/usage/linter/rules/oxc/no-map-spread\n \"oxc/no-map-spread\": \"warn\",\n // https://oxc.rs/docs/guide/usage/linter/rules/oxc/no-this-in-exported-function\n \"oxc/no-this-in-exported-function\": \"warn\",\n // #endregion\n\n // #region eslint\n // https://oxc.rs/docs/guide/usage/linter/rules/eslint/accessor-pairs\n \"accessor-pairs\": \"error\",\n // https://oxc.rs/docs/guide/usage/linter/rules/eslint/array-callback-return\n \"array-callback-return\": \"warn\",\n // https://oxc.rs/docs/guide/usage/linter/rules/eslint/default-case-last\n \"default-case-last\": \"error\",\n // https://oxc.rs/docs/guide/usage/linter/rules/eslint/default-param-last\n \"default-param-last\": \"error\",\n // https://oxc.rs/docs/guide/usage/linter/rules/eslint/eqeqeq\n eqeqeq: \"error\",\n // https://oxc.rs/docs/guide/usage/linter/rules/eslint/func-names\n \"func-names\": \"warn\",\n // https://oxc.rs/docs/guide/usage/linter/rules/eslint/grouped-accessor-pairs\n \"grouped-accessor-pairs\": \"warn\",\n // https://oxc.rs/docs/guide/usage/linter/rules/eslint/new-cap\n \"new-cap\": \"warn\",\n // https://oxc.rs/docs/guide/usage/linter/rules/eslint/no-array-constructor\n \"no-array-constructor\": \"warn\",\n // https://oxc.rs/docs/guide/usage/linter/rules/eslint/no-await-in-loop\n \"no-await-in-loop\": \"warn\",\n // https://oxc.rs/docs/guide/usage/linter/rules/eslint/no-case-declarations\n \"no-case-declarations\": \"warn\",\n // https://oxc.rs/docs/guide/usage/linter/rules/eslint/no-constructor-return\n \"no-constructor-return\": \"warn\",\n // https://oxc.rs/docs/guide/usage/linter/rules/eslint/no-duplicate-imports\n \"no-duplicate-imports\": [\"warn\", { allowSeparateTypeImports: true }],\n // https://oxc.rs/docs/guide/usage/linter/rules/eslint/no-else-return\n \"no-else-return\": \"warn\",\n // https://oxc.rs/docs/guide/usage/linter/rules/eslint/no-empty\n \"no-empty\": \"error\",\n // https://oxc.rs/docs/guide/usage/linter/rules/eslint/no-empty-function\n \"no-empty-function\": \"error\",\n // https://oxc.rs/docs/guide/usage/linter/rules/eslint/no-extend-native\n \"no-extend-native\": \"error\",\n // https://oxc.rs/docs/guide/usage/linter/rules/eslint/no-extra-bind\n \"no-extra-bind\": \"warn\",\n // https://oxc.rs/docs/guide/usage/linter/rules/eslint/no-fallthrough\n \"no-fallthrough\": \"warn\",\n // https://oxc.rs/docs/guide/usage/linter/rules/eslint/no-implicit-coercion\n \"no-implicit-coercion\": \"warn\",\n // https://oxc.rs/docs/guide/usage/linter/rules/eslint/no-labels\n \"no-labels\": \"error\",\n // https://oxc.rs/docs/guide/usage/linter/rules/eslint/no-lonely-if\n \"no-lonely-if\": \"warn\",\n // https://oxc.rs/docs/guide/usage/linter/rules/eslint/no-loop-func\n \"no-loop-func\": \"warn\",\n // https://oxc.rs/docs/guide/usage/linter/rules/eslint/no-multi-assign\n \"no-multi-assign\": \"warn\",\n // https://oxc.rs/docs/guide/usage/linter/rules/eslint/no-multi-str\n \"no-multi-str\": \"error\",\n // https://oxc.rs/docs/guide/usage/linter/rules/eslint/no-new\n \"no-new\": \"warn\",\n // https://oxc.rs/docs/guide/usage/linter/rules/eslint/no-new-func\n \"no-new-func\": \"warn\",\n // https://oxc.rs/docs/guide/usage/linter/rules/eslint/no-object-constructor\n \"no-object-constructor\": \"warn\",\n // https://oxc.rs/docs/guide/usage/linter/rules/eslint/no-param-reassign\n \"no-param-reassign\": \"warn\",\n // https://oxc.rs/docs/guide/usage/linter/rules/eslint/no-promise-executor-return\n \"no-promise-executor-return\": \"warn\",\n // https://oxc.rs/docs/guide/usage/linter/rules/eslint/no-proto\n \"no-proto\": \"error\",\n // https://oxc.rs/docs/guide/usage/linter/rules/eslint/no-return-assign\n \"no-return-assign\": \"warn\",\n // https://oxc.rs/docs/guide/usage/linter/rules/eslint/no-script-url\n \"no-script-url\": \"error\",\n // https://oxc.rs/docs/guide/usage/linter/rules/eslint/no-self-compare\n \"no-self-compare\": \"warn\",\n // https://oxc.rs/docs/guide/usage/linter/rules/eslint/no-sequences\n \"no-sequences\": \"error\",\n // https://oxc.rs/docs/guide/usage/linter/rules/eslint/no-template-curly-in-string\n \"no-template-curly-in-string\": \"warn\",\n // https://oxc.rs/docs/guide/usage/linter/rules/eslint/no-underscore-dangle\n \"no-underscore-dangle\": \"warn\",\n // https://oxc.rs/docs/guide/usage/linter/rules/eslint/no-unmodified-loop-condition\n \"no-unmodified-loop-condition\": \"warn\",\n // https://oxc.rs/docs/guide/usage/linter/rules/eslint/no-unneeded-ternary\n \"no-unneeded-ternary\": \"warn\",\n // https://oxc.rs/docs/guide/usage/linter/rules/eslint/no-use-before-define\n \"no-use-before-define\": \"warn\",\n // https://oxc.rs/docs/guide/usage/linter/rules/eslint/no-useless-assignment\n \"no-useless-assignment\": \"warn\",\n // https://oxc.rs/docs/guide/usage/linter/rules/eslint/no-useless-call\n \"no-useless-call\": \"error\",\n // https://oxc.rs/docs/guide/usage/linter/rules/eslint/no-useless-computed-key\n \"no-useless-computed-key\": \"error\",\n // https://oxc.rs/docs/guide/usage/linter/rules/eslint/no-useless-concat\n \"no-useless-concat\": \"error\",\n // https://oxc.rs/docs/guide/usage/linter/rules/eslint/no-useless-constructor\n \"no-useless-constructor\": \"warn\",\n // https://oxc.rs/docs/guide/usage/linter/rules/eslint/no-useless-return\n \"no-useless-return\": \"warn\",\n // https://oxc.rs/docs/guide/usage/linter/rules/eslint/no-var\n \"no-var\": \"error\",\n // https://oxc.rs/docs/guide/usage/linter/rules/eslint/no-warning-comments\n \"no-warning-comments\": \"warn\",\n // https://oxc.rs/docs/guide/usage/linter/rules/eslint/operator-assignment\n \"operator-assignment\": \"warn\",\n // https://oxc.rs/docs/guide/usage/linter/rules/eslint/prefer-arrow-callback\n \"prefer-arrow-callback\": \"warn\",\n // https://oxc.rs/docs/guide/usage/linter/rules/eslint/prefer-const\n \"prefer-const\": \"warn\",\n // https://oxc.rs/docs/guide/usage/linter/rules/eslint/prefer-numeric-literals\n \"prefer-numeric-literals\": \"error\",\n // https://oxc.rs/docs/guide/usage/linter/rules/eslint/prefer-object-has-own\n \"prefer-object-has-own\": \"warn\",\n // https://oxc.rs/docs/guide/usage/linter/rules/eslint/prefer-object-spread\n \"prefer-object-spread\": \"warn\",\n // https://oxc.rs/docs/guide/usage/linter/rules/eslint/prefer-rest-params\n \"prefer-rest-params\": \"error\",\n // https://oxc.rs/docs/guide/usage/linter/rules/eslint/prefer-spread\n \"prefer-spread\": \"warn\",\n // https://oxc.rs/docs/guide/usage/linter/rules/eslint/preserve-caught-error\n \"preserve-caught-error\": \"warn\",\n // https://oxc.rs/docs/guide/usage/linter/rules/eslint/radix\n radix: \"warn\",\n // https://oxc.rs/docs/guide/usage/linter/rules/eslint/symbol-description\n \"symbol-description\": \"error\",\n // https://oxc.rs/docs/guide/usage/linter/rules/eslint/unicode-bom\n \"unicode-bom\": \"error\",\n // https://oxc.rs/docs/guide/usage/linter/rules/eslint/yoda\n yoda: \"warn\",\n // #endregion\n\n // #region unicorn\n // https://oxc.rs/docs/guide/usage/linter/rules/unicorn/catch-error-name\n \"unicorn/catch-error-name\": \"error\",\n // https://oxc.rs/docs/guide/usage/linter/rules/unicorn/consistent-date-clone\n \"unicorn/consistent-date-clone\": \"warn\",\n // https://oxc.rs/docs/guide/usage/linter/rules/unicorn/consistent-function-scoping\n \"unicorn/consistent-function-scoping\": \"warn\",\n // https://oxc.rs/docs/guide/usage/linter/rules/unicorn/consistent-template-literal-escape\n \"unicorn/consistent-template-literal-escape\": \"error\",\n // https://oxc.rs/docs/guide/usage/linter/rules/unicorn/custom-error-definition\n \"unicorn/custom-error-definition\": \"warn\",\n // https://oxc.rs/docs/guide/usage/linter/rules/unicorn/error-message\n \"unicorn/error-message\": \"error\",\n // https://oxc.rs/docs/guide/usage/linter/rules/unicorn/explicit-length-check\n \"unicorn/explicit-length-check\": \"warn\",\n // https://oxc.rs/docs/guide/usage/linter/rules/unicorn/new-for-builtins\n \"unicorn/new-for-builtins\": \"warn\",\n // https://oxc.rs/docs/guide/usage/linter/rules/unicorn/no-abusive-eslint-disable\n \"unicorn/no-abusive-eslint-disable\": \"error\",\n // https://oxc.rs/docs/guide/usage/linter/rules/unicorn/no-accessor-recursion\n \"unicorn/no-accessor-recursion\": \"warn\",\n // https://oxc.rs/docs/guide/usage/linter/rules/unicorn/no-array-fill-with-reference-type\n \"unicorn/no-array-fill-with-reference-type\": \"warn\",\n // https://oxc.rs/docs/guide/usage/linter/rules/unicorn/no-array-for-each\n \"unicorn/no-array-for-each\": \"warn\",\n // https://oxc.rs/docs/guide/usage/linter/rules/unicorn/no-array-method-this-argument\n \"unicorn/no-array-method-this-argument\": \"warn\",\n // https://oxc.rs/docs/guide/usage/linter/rules/unicorn/no-await-expression-member\n \"unicorn/no-await-expression-member\": \"error\",\n // https://oxc.rs/docs/guide/usage/linter/rules/unicorn/no-console-spaces\n \"unicorn/no-console-spaces\": \"warn\",\n // https://oxc.rs/docs/guide/usage/linter/rules/unicorn/no-document-cookie\n \"unicorn/no-document-cookie\": \"error\",\n // https://oxc.rs/docs/guide/usage/linter/rules/unicorn/no-immediate-mutation\n \"unicorn/no-immediate-mutation\": \"warn\",\n // https://oxc.rs/docs/guide/usage/linter/rules/unicorn/no-instanceof-builtins\n \"unicorn/no-instanceof-builtins\": \"warn\",\n // https://oxc.rs/docs/guide/usage/linter/rules/unicorn/no-length-as-slice-end\n \"unicorn/no-length-as-slice-end\": \"warn\",\n // https://oxc.rs/docs/guide/usage/linter/rules/unicorn/no-lonely-if\n \"unicorn/no-lonely-if\": \"error\",\n // https://oxc.rs/docs/guide/usage/linter/rules/unicorn/no-magic-array-flat-depth\n \"unicorn/no-magic-array-flat-depth\": \"warn\",\n // https://oxc.rs/docs/guide/usage/linter/rules/unicorn/no-negation-in-equality-check\n \"unicorn/no-negation-in-equality-check\": \"warn\",\n // https://oxc.rs/docs/guide/usage/linter/rules/unicorn/no-new-buffer\n \"unicorn/no-new-buffer\": \"error\",\n // https://oxc.rs/docs/guide/usage/linter/rules/unicorn/no-object-as-default-parameter\n \"unicorn/no-object-as-default-parameter\": \"error\",\n // https://oxc.rs/docs/guide/usage/linter/rules/unicorn/no-typeof-undefined\n \"unicorn/no-typeof-undefined\": \"warn\",\n // https://oxc.rs/docs/guide/usage/linter/rules/unicorn/no-unnecessary-array-flat-depth\n \"unicorn/no-unnecessary-array-flat-depth\": \"warn\",\n // https://oxc.rs/docs/guide/usage/linter/rules/unicorn/no-unnecessary-array-splice-count\n \"unicorn/no-unnecessary-array-splice-count\": \"warn\",\n // https://oxc.rs/docs/guide/usage/linter/rules/unicorn/no-unnecessary-slice-end\n \"unicorn/no-unnecessary-slice-end\": \"warn\",\n // https://oxc.rs/docs/guide/usage/linter/rules/unicorn/no-useless-collection-argument\n \"unicorn/no-useless-collection-argument\": \"warn\",\n // https://oxc.rs/docs/guide/usage/linter/rules/unicorn/no-useless-error-capture-stack-trace\n \"unicorn/no-useless-error-capture-stack-trace\": \"warn\",\n // https://oxc.rs/docs/guide/usage/linter/rules/unicorn/no-useless-iterator-to-array\n \"unicorn/no-useless-iterator-to-array\": \"warn\",\n // https://oxc.rs/docs/guide/usage/linter/rules/unicorn/no-useless-promise-resolve-reject\n \"unicorn/no-useless-promise-resolve-reject\": \"warn\",\n // https://oxc.rs/docs/guide/usage/linter/rules/unicorn/numeric-separators-style\n \"unicorn/numeric-separators-style\": \"warn\",\n // https://oxc.rs/docs/guide/usage/linter/rules/unicorn/prefer-add-event-listener\n \"unicorn/prefer-add-event-listener\": \"warn\",\n // https://oxc.rs/docs/guide/usage/linter/rules/unicorn/prefer-array-find\n \"unicorn/prefer-array-find\": \"warn\",\n // https://oxc.rs/docs/guide/usage/linter/rules/unicorn/prefer-array-flat\n \"unicorn/prefer-array-flat\": \"warn\",\n // https://oxc.rs/docs/guide/usage/linter/rules/unicorn/prefer-array-flat-map\n \"unicorn/prefer-array-flat-map\": \"warn\",\n // https://oxc.rs/docs/guide/usage/linter/rules/unicorn/prefer-array-index-of\n \"unicorn/prefer-array-index-of\": \"warn\",\n // https://oxc.rs/docs/guide/usage/linter/rules/unicorn/prefer-array-some\n \"unicorn/prefer-array-some\": \"warn\",\n // https://oxc.rs/docs/guide/usage/linter/rules/unicorn/prefer-bigint-literals\n \"unicorn/prefer-bigint-literals\": \"warn\",\n // https://oxc.rs/docs/guide/usage/linter/rules/unicorn/prefer-blob-reading-methods\n \"unicorn/prefer-blob-reading-methods\": \"warn\",\n // https://oxc.rs/docs/guide/usage/linter/rules/unicorn/prefer-classlist-toggle\n \"unicorn/prefer-classlist-toggle\": \"warn\",\n // https://oxc.rs/docs/guide/usage/linter/rules/unicorn/prefer-code-point\n \"unicorn/prefer-code-point\": \"warn\",\n // https://oxc.rs/docs/guide/usage/linter/rules/unicorn/prefer-date-now\n \"unicorn/prefer-date-now\": \"warn\",\n // https://oxc.rs/docs/guide/usage/linter/rules/unicorn/prefer-default-parameters\n \"unicorn/prefer-default-parameters\": \"warn\",\n // https://oxc.rs/docs/guide/usage/linter/rules/unicorn/prefer-dom-node-append\n \"unicorn/prefer-dom-node-append\": \"warn\",\n // https://oxc.rs/docs/guide/usage/linter/rules/unicorn/prefer-dom-node-dataset\n \"unicorn/prefer-dom-node-dataset\": \"warn\",\n // https://oxc.rs/docs/guide/usage/linter/rules/unicorn/prefer-dom-node-remove\n \"unicorn/prefer-dom-node-remove\": \"warn\",\n // https://oxc.rs/docs/guide/usage/linter/rules/unicorn/prefer-dom-node-text-content\n \"unicorn/prefer-dom-node-text-content\": \"warn\",\n // https://oxc.rs/docs/guide/usage/linter/rules/unicorn/prefer-export-from\n \"unicorn/prefer-export-from\": \"warn\",\n // https://oxc.rs/docs/guide/usage/linter/rules/unicorn/prefer-global-this\n \"unicorn/prefer-global-this\": \"warn\",\n // https://oxc.rs/docs/guide/usage/linter/rules/unicorn/prefer-includes\n \"unicorn/prefer-includes\": \"warn\",\n // https://oxc.rs/docs/guide/usage/linter/rules/unicorn/prefer-keyboard-event-key\n \"unicorn/prefer-keyboard-event-key\": \"warn\",\n // https://oxc.rs/docs/guide/usage/linter/rules/unicorn/prefer-logical-operator-over-ternary\n \"unicorn/prefer-logical-operator-over-ternary\": \"warn\",\n // https://oxc.rs/docs/guide/usage/linter/rules/unicorn/prefer-math-min-max\n \"unicorn/prefer-math-min-max\": \"warn\",\n // https://oxc.rs/docs/guide/usage/linter/rules/unicorn/prefer-math-trunc\n \"unicorn/prefer-math-trunc\": \"warn\",\n // https://oxc.rs/docs/guide/usage/linter/rules/unicorn/prefer-modern-dom-apis\n \"unicorn/prefer-modern-dom-apis\": \"warn\",\n // https://oxc.rs/docs/guide/usage/linter/rules/unicorn/prefer-native-coercion-functions\n \"unicorn/prefer-native-coercion-functions\": \"error\",\n // https://oxc.rs/docs/guide/usage/linter/rules/unicorn/prefer-negative-index\n \"unicorn/prefer-negative-index\": \"warn\",\n // https://oxc.rs/docs/guide/usage/linter/rules/unicorn/prefer-node-protocol\n \"unicorn/prefer-node-protocol\": \"warn\",\n // https://oxc.rs/docs/guide/usage/linter/rules/unicorn/prefer-number-properties\n \"unicorn/prefer-number-properties\": \"error\",\n // https://oxc.rs/docs/guide/usage/linter/rules/unicorn/prefer-object-from-entries\n \"unicorn/prefer-object-from-entries\": \"warn\",\n // https://oxc.rs/docs/guide/usage/linter/rules/unicorn/prefer-optional-catch-binding\n \"unicorn/prefer-optional-catch-binding\": \"warn\",\n // https://oxc.rs/docs/guide/usage/linter/rules/unicorn/prefer-query-selector\n \"unicorn/prefer-query-selector\": \"warn\",\n // https://oxc.rs/docs/guide/usage/linter/rules/unicorn/prefer-regexp-test\n \"unicorn/prefer-regexp-test\": \"warn\",\n // https://oxc.rs/docs/guide/usage/linter/rules/unicorn/prefer-response-static-json\n \"unicorn/prefer-response-static-json\": \"warn\",\n // https://oxc.rs/docs/guide/usage/linter/rules/unicorn/prefer-single-call\n \"unicorn/prefer-single-call\": \"warn\",\n // https://oxc.rs/docs/guide/usage/linter/rules/unicorn/prefer-string-raw\n \"unicorn/prefer-string-raw\": \"warn\",\n // https://oxc.rs/docs/guide/usage/linter/rules/unicorn/prefer-string-replace-all\n \"unicorn/prefer-string-replace-all\": \"warn\",\n // https://oxc.rs/docs/guide/usage/linter/rules/unicorn/prefer-string-slice\n \"unicorn/prefer-string-slice\": \"warn\",\n // https://oxc.rs/docs/guide/usage/linter/rules/unicorn/prefer-string-trim-start-end\n \"unicorn/prefer-string-trim-start-end\": \"error\",\n // https://oxc.rs/docs/guide/usage/linter/rules/unicorn/prefer-structured-clone\n \"unicorn/prefer-structured-clone\": \"warn\",\n // https://oxc.rs/docs/guide/usage/linter/rules/unicorn/prefer-ternary\n \"unicorn/prefer-ternary\": \"warn\",\n // https://oxc.rs/docs/guide/usage/linter/rules/unicorn/prefer-type-error\n \"unicorn/prefer-type-error\": \"warn\",\n // https://oxc.rs/docs/guide/usage/linter/rules/unicorn/require-array-join-separator\n \"unicorn/require-array-join-separator\": \"warn\",\n // https://oxc.rs/docs/guide/usage/linter/rules/unicorn/require-module-attributes\n \"unicorn/require-module-attributes\": \"warn\",\n // https://oxc.rs/docs/guide/usage/linter/rules/unicorn/require-number-to-fixed-digits-argument\n \"unicorn/require-number-to-fixed-digits-argument\": \"warn\",\n // https://oxc.rs/docs/guide/usage/linter/rules/unicorn/require-post-message-target-origin\n \"unicorn/require-post-message-target-origin\": \"error\",\n // https://oxc.rs/docs/guide/usage/linter/rules/unicorn/text-encoding-identifier-case\n \"unicorn/text-encoding-identifier-case\": \"warn\",\n // https://oxc.rs/docs/guide/usage/linter/rules/unicorn/throw-new-error\n \"unicorn/throw-new-error\": \"warn\",\n // #endregion\n\n // #region typescript\n // https://oxc.rs/docs/guide/usage/linter/rules/typescript/adjacent-overload-signatures\n \"typescript/adjacent-overload-signatures\": \"error\",\n // https://oxc.rs/docs/guide/usage/linter/rules/typescript/array-type\n \"typescript/array-type\": \"error\",\n // https://oxc.rs/docs/guide/usage/linter/rules/typescript/ban-ts-comment\n \"typescript/ban-ts-comment\": \"error\",\n // https://oxc.rs/docs/guide/usage/linter/rules/typescript/ban-tslint-comment\n \"typescript/ban-tslint-comment\": \"error\",\n // https://oxc.rs/docs/guide/usage/linter/rules/typescript/consistent-generic-constructors\n \"typescript/consistent-generic-constructors\": \"error\",\n // https://oxc.rs/docs/guide/usage/linter/rules/typescript/consistent-type-assertions\n \"typescript/consistent-type-assertions\": \"error\",\n // https://oxc.rs/docs/guide/usage/linter/rules/typescript/consistent-type-definitions\n \"typescript/consistent-type-definitions\": [\"warn\", \"type\"],\n // https://oxc.rs/docs/guide/usage/linter/rules/typescript/consistent-type-exports\n \"typescript/consistent-type-exports\": \"error\",\n // https://oxc.rs/docs/guide/usage/linter/rules/typescript/consistent-type-imports\n \"typescript/consistent-type-imports\": \"error\",\n // https://oxc.rs/docs/guide/usage/linter/rules/typescript/dot-notation\n \"typescript/dot-notation\": \"warn\",\n // https://oxc.rs/docs/guide/usage/linter/rules/typescript/no-confusing-non-null-assertion\n \"typescript/no-confusing-non-null-assertion\": \"warn\",\n // https://oxc.rs/docs/guide/usage/linter/rules/typescript/no-confusing-void-expression\n \"typescript/no-confusing-void-expression\": \"warn\",\n // https://oxc.rs/docs/guide/usage/linter/rules/typescript/no-deprecated\n \"typescript/no-deprecated\": \"warn\",\n // https://oxc.rs/docs/guide/usage/linter/rules/typescript/no-dynamic-delete\n \"typescript/no-dynamic-delete\": \"warn\",\n // https://oxc.rs/docs/guide/usage/linter/rules/typescript/no-empty-interface\n \"typescript/no-empty-interface\": \"warn\",\n // https://oxc.rs/docs/guide/usage/linter/rules/typescript/no-empty-object-type\n \"typescript/no-empty-object-type\": \"warn\",\n // https://oxc.rs/docs/guide/usage/linter/rules/typescript/no-explicit-any\n \"typescript/no-explicit-any\": \"error\",\n // https://oxc.rs/docs/guide/usage/linter/rules/typescript/no-extraneous-class\n \"typescript/no-extraneous-class\": \"error\",\n // https://oxc.rs/docs/guide/usage/linter/rules/typescript/no-implied-eval\n \"typescript/no-implied-eval\": \"warn\",\n // https://oxc.rs/docs/guide/usage/linter/rules/typescript/no-import-type-side-effects\n \"typescript/no-import-type-side-effects\": \"warn\",\n // https://oxc.rs/docs/guide/usage/linter/rules/typescript/no-invalid-void-type\n \"typescript/no-invalid-void-type\": \"error\",\n // https://oxc.rs/docs/guide/usage/linter/rules/typescript/no-misused-promises\n \"typescript/no-misused-promises\": \"warn\",\n // https://oxc.rs/docs/guide/usage/linter/rules/typescript/no-mixed-enums\n \"typescript/no-mixed-enums\": \"error\",\n // https://oxc.rs/docs/guide/usage/linter/rules/typescript/no-namespace\n \"typescript/no-namespace\": \"error\",\n // https://oxc.rs/docs/guide/usage/linter/rules/typescript/no-non-null-asserted-nullish-coalescing\n \"typescript/no-non-null-asserted-nullish-coalescing\": \"error\",\n // https://oxc.rs/docs/guide/usage/linter/rules/typescript/no-non-null-assertion\n \"typescript/no-non-null-assertion\": \"warn\",\n // https://oxc.rs/docs/guide/usage/linter/rules/typescript/no-unnecessary-condition\n \"typescript/no-unnecessary-condition\": \"warn\",\n // https://oxc.rs/docs/guide/usage/linter/rules/typescript/no-unnecessary-qualifier\n \"typescript/no-unnecessary-qualifier\": \"warn\",\n // https://oxc.rs/docs/guide/usage/linter/rules/typescript/no-unnecessary-template-expression\n \"typescript/no-unnecessary-template-expression\": \"warn\",\n // https://oxc.rs/docs/guide/usage/linter/rules/typescript/no-unnecessary-type-constraint\n \"typescript/no-unnecessary-type-constraint\": \"warn\",\n // https://oxc.rs/docs/guide/usage/linter/rules/typescript/no-unnecessary-type-conversion\n \"typescript/no-unnecessary-type-conversion\": \"warn\",\n // https://oxc.rs/docs/guide/usage/linter/rules/typescript/no-unnecessary-type-parameters\n \"typescript/no-unnecessary-type-parameters\": \"warn\",\n // https://oxc.rs/docs/guide/usage/linter/rules/typescript/no-unsafe-enum-comparison\n \"typescript/no-unsafe-enum-comparison\": \"error\",\n // https://oxc.rs/docs/guide/usage/linter/rules/typescript/no-unsafe-function-type\n \"typescript/no-unsafe-function-type\": \"error\",\n // https://oxc.rs/docs/guide/usage/linter/rules/typescript/non-nullable-type-assertion-style\n \"typescript/non-nullable-type-assertion-style\": \"warn\",\n // https://oxc.rs/docs/guide/usage/linter/rules/typescript/only-throw-error\n \"typescript/only-throw-error\": \"warn\",\n // https://oxc.rs/docs/guide/usage/linter/rules/typescript/prefer-for-of\n \"typescript/prefer-for-of\": \"warn\",\n // https://oxc.rs/docs/guide/usage/linter/rules/typescript/prefer-function-type\n \"typescript/prefer-function-type\": \"error\",\n // https://oxc.rs/docs/guide/usage/linter/rules/typescript/prefer-literal-enum-member\n \"typescript/prefer-literal-enum-member\": \"error\",\n // https://oxc.rs/docs/guide/usage/linter/rules/typescript/prefer-nullish-coalescing\n \"typescript/prefer-nullish-coalescing\": \"warn\",\n // https://oxc.rs/docs/guide/usage/linter/rules/typescript/prefer-optional-chain\n \"typescript/prefer-optional-chain\": \"warn\",\n // https://oxc.rs/docs/guide/usage/linter/rules/typescript/prefer-promise-reject-errors\n \"typescript/prefer-promise-reject-errors\": \"warn\",\n // https://oxc.rs/docs/guide/usage/linter/rules/typescript/prefer-readonly\n \"typescript/prefer-readonly\": \"warn\",\n // https://oxc.rs/docs/guide/usage/linter/rules/typescript/prefer-reduce-type-parameter\n \"typescript/prefer-reduce-type-parameter\": \"warn\",\n // https://oxc.rs/docs/guide/usage/linter/rules/typescript/prefer-return-this-type\n \"typescript/prefer-return-this-type\": \"warn\",\n // https://oxc.rs/docs/guide/usage/linter/rules/typescript/prefer-string-starts-ends-with\n \"typescript/prefer-string-starts-ends-with\": \"warn\",\n // https://oxc.rs/docs/guide/usage/linter/rules/typescript/promise-function-async\n \"typescript/promise-function-async\": \"warn\",\n // https://oxc.rs/docs/guide/usage/linter/rules/typescript/require-await\n \"typescript/require-await\": \"warn\",\n // https://oxc.rs/docs/guide/usage/linter/rules/typescript/strict-boolean-expressions\n \"typescript/strict-boolean-expressions\": [\n \"warn\",\n { allowNullableBoolean: true, allowNumber: false, allowString: false },\n ],\n // https://oxc.rs/docs/guide/usage/linter/rules/typescript/switch-exhaustiveness-check\n \"typescript/switch-exhaustiveness-check\": \"warn\",\n // https://oxc.rs/docs/guide/usage/linter/rules/typescript/unified-signatures\n \"typescript/unified-signatures\": \"warn\",\n // https://oxc.rs/docs/guide/usage/linter/rules/typescript/use-unknown-in-catch-callback-variable\n \"typescript/use-unknown-in-catch-callback-variable\": \"error\",\n // #endregion\n\n // #region import\n // https://oxc.rs/docs/guide/usage/linter/rules/import/consistent-type-specifier-style\n \"import/consistent-type-specifier-style\": \"error\",\n // https://oxc.rs/docs/guide/usage/linter/rules/import/export\n \"import/export\": \"warn\",\n // https://oxc.rs/docs/guide/usage/linter/rules/import/first\n \"import/first\": \"error\",\n // https://oxc.rs/docs/guide/usage/linter/rules/import/no-absolute-path\n \"import/no-absolute-path\": \"error\",\n // https://oxc.rs/docs/guide/usage/linter/rules/import/no-anonymous-default-export\n \"import/no-anonymous-default-export\": \"error\",\n // https://oxc.rs/docs/guide/usage/linter/rules/import/no-cycle\n \"import/no-cycle\": \"warn\",\n // https://oxc.rs/docs/guide/usage/linter/rules/import/no-empty-named-blocks\n \"import/no-empty-named-blocks\": \"warn\",\n // https://oxc.rs/docs/guide/usage/linter/rules/import/no-mutable-exports\n \"import/no-mutable-exports\": \"warn\",\n // https://oxc.rs/docs/guide/usage/linter/rules/import/no-self-import\n \"import/no-self-import\": \"warn\",\n // https://oxc.rs/docs/guide/usage/linter/rules/import/unambiguous\n \"import/unambiguous\": \"warn\",\n // #endregion\n },\n\n overrides: [\n {\n files: [\"**/*.{ts,tsx}\"],\n rules: {\n \"no-const-assign\": \"off\",\n },\n },\n {\n files: [\"**/*.{cjs,cts}\"],\n rules: {\n \"import/unambiguous\": \"off\",\n },\n },\n ],\n} satisfies OxlintConfig;\n\nexport default config;\n"],"mappings":";AAEA,MAAM,SAAuB;CAC3B,SAAS;EACP,WAAW;EACX,WAAW;EACX,+BAA+B;CACjC;CACA,SAAS;EAAC;EAAO;EAAU;EAAW;EAAc;CAAQ;CAC5D,OAAO;EAGL,uBAAuB;EAEvB,4BAA4B;EAE5B,6BAA6B;EAE7B,+BAA+B;EAE/B,8BAA8B;EAE9B,sBAAsB;EAEtB,qBAAqB;EAErB,qBAAqB;EAErB,oCAAoC;EAKpC,kBAAkB;EAElB,yBAAyB;EAEzB,qBAAqB;EAErB,sBAAsB;EAEtB,QAAQ;EAER,cAAc;EAEd,0BAA0B;EAE1B,WAAW;EAEX,wBAAwB;EAExB,oBAAoB;EAEpB,wBAAwB;EAExB,yBAAyB;EAEzB,wBAAwB,CAAC,QAAQ,EAAE,0BAA0B,KAAK,CAAC;EAEnE,kBAAkB;EAElB,YAAY;EAEZ,qBAAqB;EAErB,oBAAoB;EAEpB,iBAAiB;EAEjB,kBAAkB;EAElB,wBAAwB;EAExB,aAAa;EAEb,gBAAgB;EAEhB,gBAAgB;EAEhB,mBAAmB;EAEnB,gBAAgB;EAEhB,UAAU;EAEV,eAAe;EAEf,yBAAyB;EAEzB,qBAAqB;EAErB,8BAA8B;EAE9B,YAAY;EAEZ,oBAAoB;EAEpB,iBAAiB;EAEjB,mBAAmB;EAEnB,gBAAgB;EAEhB,+BAA+B;EAE/B,wBAAwB;EAExB,gCAAgC;EAEhC,uBAAuB;EAEvB,wBAAwB;EAExB,yBAAyB;EAEzB,mBAAmB;EAEnB,2BAA2B;EAE3B,qBAAqB;EAErB,0BAA0B;EAE1B,qBAAqB;EAErB,UAAU;EAEV,uBAAuB;EAEvB,uBAAuB;EAEvB,yBAAyB;EAEzB,gBAAgB;EAEhB,2BAA2B;EAE3B,yBAAyB;EAEzB,wBAAwB;EAExB,sBAAsB;EAEtB,iBAAiB;EAEjB,yBAAyB;EAEzB,OAAO;EAEP,sBAAsB;EAEtB,eAAe;EAEf,MAAM;EAKN,4BAA4B;EAE5B,iCAAiC;EAEjC,uCAAuC;EAEvC,8CAA8C;EAE9C,mCAAmC;EAEnC,yBAAyB;EAEzB,iCAAiC;EAEjC,4BAA4B;EAE5B,qCAAqC;EAErC,iCAAiC;EAEjC,6CAA6C;EAE7C,6BAA6B;EAE7B,yCAAyC;EAEzC,sCAAsC;EAEtC,6BAA6B;EAE7B,8BAA8B;EAE9B,iCAAiC;EAEjC,kCAAkC;EAElC,kCAAkC;EAElC,wBAAwB;EAExB,qCAAqC;EAErC,yCAAyC;EAEzC,yBAAyB;EAEzB,0CAA0C;EAE1C,+BAA+B;EAE/B,2CAA2C;EAE3C,6CAA6C;EAE7C,oCAAoC;EAEpC,0CAA0C;EAE1C,gDAAgD;EAEhD,wCAAwC;EAExC,6CAA6C;EAE7C,oCAAoC;EAEpC,qCAAqC;EAErC,6BAA6B;EAE7B,6BAA6B;EAE7B,iCAAiC;EAEjC,iCAAiC;EAEjC,6BAA6B;EAE7B,kCAAkC;EAElC,uCAAuC;EAEvC,mCAAmC;EAEnC,6BAA6B;EAE7B,2BAA2B;EAE3B,qCAAqC;EAErC,kCAAkC;EAElC,mCAAmC;EAEnC,kCAAkC;EAElC,wCAAwC;EAExC,8BAA8B;EAE9B,8BAA8B;EAE9B,2BAA2B;EAE3B,qCAAqC;EAErC,gDAAgD;EAEhD,+BAA+B;EAE/B,6BAA6B;EAE7B,kCAAkC;EAElC,4CAA4C;EAE5C,iCAAiC;EAEjC,gCAAgC;EAEhC,oCAAoC;EAEpC,sCAAsC;EAEtC,yCAAyC;EAEzC,iCAAiC;EAEjC,8BAA8B;EAE9B,uCAAuC;EAEvC,8BAA8B;EAE9B,6BAA6B;EAE7B,qCAAqC;EAErC,+BAA+B;EAE/B,wCAAwC;EAExC,mCAAmC;EAEnC,0BAA0B;EAE1B,6BAA6B;EAE7B,wCAAwC;EAExC,qCAAqC;EAErC,mDAAmD;EAEnD,8CAA8C;EAE9C,yCAAyC;EAEzC,2BAA2B;EAK3B,2CAA2C;EAE3C,yBAAyB;EAEzB,6BAA6B;EAE7B,iCAAiC;EAEjC,8CAA8C;EAE9C,yCAAyC;EAEzC,0CAA0C,CAAC,QAAQ,MAAM;EAEzD,sCAAsC;EAEtC,sCAAsC;EAEtC,2BAA2B;EAE3B,8CAA8C;EAE9C,2CAA2C;EAE3C,4BAA4B;EAE5B,gCAAgC;EAEhC,iCAAiC;EAEjC,mCAAmC;EAEnC,8BAA8B;EAE9B,kCAAkC;EAElC,8BAA8B;EAE9B,0CAA0C;EAE1C,mCAAmC;EAEnC,kCAAkC;EAElC,6BAA6B;EAE7B,2BAA2B;EAE3B,sDAAsD;EAEtD,oCAAoC;EAEpC,uCAAuC;EAEvC,uCAAuC;EAEvC,iDAAiD;EAEjD,6CAA6C;EAE7C,6CAA6C;EAE7C,6CAA6C;EAE7C,wCAAwC;EAExC,sCAAsC;EAEtC,gDAAgD;EAEhD,+BAA+B;EAE/B,4BAA4B;EAE5B,mCAAmC;EAEnC,yCAAyC;EAEzC,wCAAwC;EAExC,oCAAoC;EAEpC,2CAA2C;EAE3C,8BAA8B;EAE9B,2CAA2C;EAE3C,sCAAsC;EAEtC,6CAA6C;EAE7C,qCAAqC;EAErC,4BAA4B;EAE5B,yCAAyC,CACvC,QACA;GAAE,sBAAsB;GAAM,aAAa;GAAO,aAAa;EAAM,CACvE;EAEA,0CAA0C;EAE1C,iCAAiC;EAEjC,qDAAqD;EAKrD,0CAA0C;EAE1C,iBAAiB;EAEjB,gBAAgB;EAEhB,2BAA2B;EAE3B,sCAAsC;EAEtC,mBAAmB;EAEnB,gCAAgC;EAEhC,6BAA6B;EAE7B,yBAAyB;EAEzB,sBAAsB;CAExB;CAEA,WAAW,CACT;EACE,OAAO,CAAC,eAAe;EACvB,OAAO,EACL,mBAAmB,MACrB;CACF,GACA;EACE,OAAO,CAAC,gBAAgB;EACxB,OAAO,EACL,sBAAsB,MACxB;CACF,CACF;AACF"}
1
+ {"version":3,"file":"common.js","names":[],"sources":["../../src/oxlint/common.ts"],"sourcesContent":["import type { OxlintConfig } from \"oxlint\";\n\nconst config: OxlintConfig = {\n options: {\n typeAware: true,\n typeCheck: true,\n reportUnusedDisableDirectives: \"warn\",\n },\n plugins: [\"oxc\", \"eslint\", \"unicorn\", \"typescript\", \"import\"],\n rules: {\n // #region oxc\n // https://oxc.rs/docs/guide/usage/linter/rules/oxc/approx-constant\n \"oxc/approx-constant\": \"warn\",\n // https://oxc.rs/docs/guide/usage/linter/rules/oxc/bad-bitwise-operator\n \"oxc/bad-bitwise-operator\": \"warn\",\n // https://oxc.rs/docs/guide/usage/linter/rules/oxc/branches-sharing-code\n \"oxc/branches-sharing-code\": \"warn\",\n // https://oxc.rs/docs/guide/usage/linter/rules/oxc/misrefactored-assign-op\n \"oxc/misrefactored-assign-op\": \"warn\",\n // https://oxc.rs/docs/guide/usage/linter/rules/oxc/no-accumulating-spread\n \"oxc/no-accumulating-spread\": \"warn\",\n // https://oxc.rs/docs/guide/usage/linter/rules/oxc/no-barrel-file\n \"oxc/no-barrel-file\": \"warn\",\n // https://oxc.rs/docs/guide/usage/linter/rules/oxc/no-const-enum\n \"oxc/no-const-enum\": \"error\",\n // https://oxc.rs/docs/guide/usage/linter/rules/oxc/no-map-spread\n \"oxc/no-map-spread\": \"warn\",\n // https://oxc.rs/docs/guide/usage/linter/rules/oxc/no-this-in-exported-function\n \"oxc/no-this-in-exported-function\": \"warn\",\n // #endregion\n\n // #region eslint\n // https://oxc.rs/docs/guide/usage/linter/rules/eslint/accessor-pairs\n \"accessor-pairs\": \"error\",\n // https://oxc.rs/docs/guide/usage/linter/rules/eslint/array-callback-return\n \"array-callback-return\": \"warn\",\n // https://oxc.rs/docs/guide/usage/linter/rules/eslint/default-case-last\n \"default-case-last\": \"error\",\n // https://oxc.rs/docs/guide/usage/linter/rules/eslint/default-param-last\n \"default-param-last\": \"error\",\n // https://oxc.rs/docs/guide/usage/linter/rules/eslint/eqeqeq\n eqeqeq: \"error\",\n // https://oxc.rs/docs/guide/usage/linter/rules/eslint/func-names\n \"func-names\": \"warn\",\n // https://oxc.rs/docs/guide/usage/linter/rules/eslint/grouped-accessor-pairs\n \"grouped-accessor-pairs\": \"warn\",\n // https://oxc.rs/docs/guide/usage/linter/rules/eslint/new-cap\n \"new-cap\": \"warn\",\n // https://oxc.rs/docs/guide/usage/linter/rules/eslint/no-array-constructor\n \"no-array-constructor\": \"warn\",\n // https://oxc.rs/docs/guide/usage/linter/rules/eslint/no-await-in-loop\n \"no-await-in-loop\": \"warn\",\n // https://oxc.rs/docs/guide/usage/linter/rules/eslint/no-case-declarations\n \"no-case-declarations\": \"warn\",\n // https://oxc.rs/docs/guide/usage/linter/rules/eslint/no-constructor-return\n \"no-constructor-return\": \"warn\",\n // https://oxc.rs/docs/guide/usage/linter/rules/eslint/no-duplicate-imports\n \"no-duplicate-imports\": [\"warn\", { allowSeparateTypeImports: true }],\n // https://oxc.rs/docs/guide/usage/linter/rules/eslint/no-else-return\n \"no-else-return\": \"warn\",\n // https://oxc.rs/docs/guide/usage/linter/rules/eslint/no-empty\n \"no-empty\": \"error\",\n // https://oxc.rs/docs/guide/usage/linter/rules/eslint/no-empty-function\n \"no-empty-function\": \"error\",\n // https://oxc.rs/docs/guide/usage/linter/rules/eslint/no-extend-native\n \"no-extend-native\": \"error\",\n // https://oxc.rs/docs/guide/usage/linter/rules/eslint/no-extra-bind\n \"no-extra-bind\": \"warn\",\n // https://oxc.rs/docs/guide/usage/linter/rules/eslint/no-fallthrough\n \"no-fallthrough\": \"warn\",\n // https://oxc.rs/docs/guide/usage/linter/rules/eslint/no-implicit-coercion\n \"no-implicit-coercion\": \"warn\",\n // https://oxc.rs/docs/guide/usage/linter/rules/eslint/no-labels\n \"no-labels\": \"error\",\n // https://oxc.rs/docs/guide/usage/linter/rules/eslint/no-lonely-if\n \"no-lonely-if\": \"warn\",\n // https://oxc.rs/docs/guide/usage/linter/rules/eslint/no-loop-func\n \"no-loop-func\": \"warn\",\n // https://oxc.rs/docs/guide/usage/linter/rules/eslint/no-multi-assign\n \"no-multi-assign\": \"warn\",\n // https://oxc.rs/docs/guide/usage/linter/rules/eslint/no-multi-str\n \"no-multi-str\": \"error\",\n // https://oxc.rs/docs/guide/usage/linter/rules/eslint/no-new\n \"no-new\": \"warn\",\n // https://oxc.rs/docs/guide/usage/linter/rules/eslint/no-new-func\n \"no-new-func\": \"warn\",\n // https://oxc.rs/docs/guide/usage/linter/rules/eslint/no-object-constructor\n \"no-object-constructor\": \"warn\",\n // https://oxc.rs/docs/guide/usage/linter/rules/eslint/no-param-reassign\n \"no-param-reassign\": \"warn\",\n // https://oxc.rs/docs/guide/usage/linter/rules/eslint/no-promise-executor-return\n \"no-promise-executor-return\": \"warn\",\n // https://oxc.rs/docs/guide/usage/linter/rules/eslint/no-proto\n \"no-proto\": \"error\",\n // https://oxc.rs/docs/guide/usage/linter/rules/eslint/no-return-assign\n \"no-return-assign\": \"warn\",\n // https://oxc.rs/docs/guide/usage/linter/rules/eslint/no-script-url\n \"no-script-url\": \"error\",\n // https://oxc.rs/docs/guide/usage/linter/rules/eslint/no-self-compare\n \"no-self-compare\": \"warn\",\n // https://oxc.rs/docs/guide/usage/linter/rules/eslint/no-sequences\n \"no-sequences\": \"error\",\n // https://oxc.rs/docs/guide/usage/linter/rules/eslint/no-template-curly-in-string\n \"no-template-curly-in-string\": \"warn\",\n // https://oxc.rs/docs/guide/usage/linter/rules/eslint/no-underscore-dangle\n \"no-underscore-dangle\": \"warn\",\n // https://oxc.rs/docs/guide/usage/linter/rules/eslint/no-unmodified-loop-condition\n \"no-unmodified-loop-condition\": \"warn\",\n // https://oxc.rs/docs/guide/usage/linter/rules/eslint/no-unneeded-ternary\n \"no-unneeded-ternary\": \"warn\",\n // https://oxc.rs/docs/guide/usage/linter/rules/eslint/no-use-before-define\n \"no-use-before-define\": \"warn\",\n // https://oxc.rs/docs/guide/usage/linter/rules/eslint/no-useless-assignment\n \"no-useless-assignment\": \"warn\",\n // https://oxc.rs/docs/guide/usage/linter/rules/eslint/no-useless-call\n \"no-useless-call\": \"error\",\n // https://oxc.rs/docs/guide/usage/linter/rules/eslint/no-useless-computed-key\n \"no-useless-computed-key\": \"error\",\n // https://oxc.rs/docs/guide/usage/linter/rules/eslint/no-useless-concat\n \"no-useless-concat\": \"error\",\n // https://oxc.rs/docs/guide/usage/linter/rules/eslint/no-useless-constructor\n \"no-useless-constructor\": \"warn\",\n // https://oxc.rs/docs/guide/usage/linter/rules/eslint/no-useless-return\n \"no-useless-return\": \"warn\",\n // https://oxc.rs/docs/guide/usage/linter/rules/eslint/no-var\n \"no-var\": \"error\",\n // https://oxc.rs/docs/guide/usage/linter/rules/eslint/no-warning-comments\n \"no-warning-comments\": \"warn\",\n // https://oxc.rs/docs/guide/usage/linter/rules/eslint/operator-assignment\n \"operator-assignment\": \"warn\",\n // https://oxc.rs/docs/guide/usage/linter/rules/eslint/prefer-arrow-callback\n \"prefer-arrow-callback\": \"warn\",\n // https://oxc.rs/docs/guide/usage/linter/rules/eslint/prefer-const\n \"prefer-const\": \"warn\",\n // https://oxc.rs/docs/guide/usage/linter/rules/eslint/prefer-numeric-literals\n \"prefer-numeric-literals\": \"error\",\n // https://oxc.rs/docs/guide/usage/linter/rules/eslint/prefer-object-has-own\n \"prefer-object-has-own\": \"warn\",\n // https://oxc.rs/docs/guide/usage/linter/rules/eslint/prefer-object-spread\n \"prefer-object-spread\": \"warn\",\n // https://oxc.rs/docs/guide/usage/linter/rules/eslint/prefer-rest-params\n \"prefer-rest-params\": \"error\",\n // https://oxc.rs/docs/guide/usage/linter/rules/eslint/prefer-spread\n \"prefer-spread\": \"warn\",\n // https://oxc.rs/docs/guide/usage/linter/rules/eslint/preserve-caught-error\n \"preserve-caught-error\": \"warn\",\n // https://oxc.rs/docs/guide/usage/linter/rules/eslint/radix\n radix: \"warn\",\n // https://oxc.rs/docs/guide/usage/linter/rules/eslint/symbol-description\n \"symbol-description\": \"error\",\n // https://oxc.rs/docs/guide/usage/linter/rules/eslint/unicode-bom\n \"unicode-bom\": \"error\",\n // https://oxc.rs/docs/guide/usage/linter/rules/eslint/yoda\n yoda: \"warn\",\n // #endregion\n\n // #region unicorn\n // https://oxc.rs/docs/guide/usage/linter/rules/unicorn/catch-error-name\n \"unicorn/catch-error-name\": \"error\",\n // https://oxc.rs/docs/guide/usage/linter/rules/unicorn/consistent-date-clone\n \"unicorn/consistent-date-clone\": \"warn\",\n // https://oxc.rs/docs/guide/usage/linter/rules/unicorn/consistent-function-scoping\n \"unicorn/consistent-function-scoping\": \"warn\",\n // https://oxc.rs/docs/guide/usage/linter/rules/unicorn/consistent-template-literal-escape\n \"unicorn/consistent-template-literal-escape\": \"error\",\n // https://oxc.rs/docs/guide/usage/linter/rules/unicorn/custom-error-definition\n \"unicorn/custom-error-definition\": \"warn\",\n // https://oxc.rs/docs/guide/usage/linter/rules/unicorn/error-message\n \"unicorn/error-message\": \"error\",\n // https://oxc.rs/docs/guide/usage/linter/rules/unicorn/explicit-length-check\n \"unicorn/explicit-length-check\": \"warn\",\n // https://oxc.rs/docs/guide/usage/linter/rules/unicorn/new-for-builtins\n \"unicorn/new-for-builtins\": \"warn\",\n // https://oxc.rs/docs/guide/usage/linter/rules/unicorn/no-abusive-eslint-disable\n \"unicorn/no-abusive-eslint-disable\": \"error\",\n // https://oxc.rs/docs/guide/usage/linter/rules/unicorn/no-accessor-recursion\n \"unicorn/no-accessor-recursion\": \"warn\",\n // https://oxc.rs/docs/guide/usage/linter/rules/unicorn/no-array-fill-with-reference-type\n \"unicorn/no-array-fill-with-reference-type\": \"warn\",\n // https://oxc.rs/docs/guide/usage/linter/rules/unicorn/no-array-for-each\n \"unicorn/no-array-for-each\": \"warn\",\n // https://oxc.rs/docs/guide/usage/linter/rules/unicorn/no-array-method-this-argument\n \"unicorn/no-array-method-this-argument\": \"warn\",\n // https://oxc.rs/docs/guide/usage/linter/rules/unicorn/no-await-expression-member\n \"unicorn/no-await-expression-member\": \"error\",\n // https://oxc.rs/docs/guide/usage/linter/rules/unicorn/no-console-spaces\n \"unicorn/no-console-spaces\": \"warn\",\n // https://oxc.rs/docs/guide/usage/linter/rules/unicorn/no-document-cookie\n \"unicorn/no-document-cookie\": \"error\",\n // https://oxc.rs/docs/guide/usage/linter/rules/unicorn/no-immediate-mutation\n \"unicorn/no-immediate-mutation\": \"warn\",\n // https://oxc.rs/docs/guide/usage/linter/rules/unicorn/no-instanceof-builtins\n \"unicorn/no-instanceof-builtins\": \"warn\",\n // https://oxc.rs/docs/guide/usage/linter/rules/unicorn/no-length-as-slice-end\n \"unicorn/no-length-as-slice-end\": \"warn\",\n // https://oxc.rs/docs/guide/usage/linter/rules/unicorn/no-lonely-if\n \"unicorn/no-lonely-if\": \"error\",\n // https://oxc.rs/docs/guide/usage/linter/rules/unicorn/no-magic-array-flat-depth\n \"unicorn/no-magic-array-flat-depth\": \"warn\",\n // https://oxc.rs/docs/guide/usage/linter/rules/unicorn/no-negation-in-equality-check\n \"unicorn/no-negation-in-equality-check\": \"warn\",\n // https://oxc.rs/docs/guide/usage/linter/rules/unicorn/no-new-buffer\n \"unicorn/no-new-buffer\": \"error\",\n // https://oxc.rs/docs/guide/usage/linter/rules/unicorn/no-object-as-default-parameter\n \"unicorn/no-object-as-default-parameter\": \"error\",\n // https://oxc.rs/docs/guide/usage/linter/rules/unicorn/no-typeof-undefined\n \"unicorn/no-typeof-undefined\": \"warn\",\n // https://oxc.rs/docs/guide/usage/linter/rules/unicorn/no-unnecessary-array-flat-depth\n \"unicorn/no-unnecessary-array-flat-depth\": \"warn\",\n // https://oxc.rs/docs/guide/usage/linter/rules/unicorn/no-unnecessary-array-splice-count\n \"unicorn/no-unnecessary-array-splice-count\": \"warn\",\n // https://oxc.rs/docs/guide/usage/linter/rules/unicorn/no-unnecessary-slice-end\n \"unicorn/no-unnecessary-slice-end\": \"warn\",\n // https://oxc.rs/docs/guide/usage/linter/rules/unicorn/no-useless-collection-argument\n \"unicorn/no-useless-collection-argument\": \"warn\",\n // https://oxc.rs/docs/guide/usage/linter/rules/unicorn/no-useless-error-capture-stack-trace\n \"unicorn/no-useless-error-capture-stack-trace\": \"warn\",\n // https://oxc.rs/docs/guide/usage/linter/rules/unicorn/no-useless-iterator-to-array\n \"unicorn/no-useless-iterator-to-array\": \"warn\",\n // https://oxc.rs/docs/guide/usage/linter/rules/unicorn/no-useless-promise-resolve-reject\n \"unicorn/no-useless-promise-resolve-reject\": \"warn\",\n // https://oxc.rs/docs/guide/usage/linter/rules/unicorn/numeric-separators-style\n \"unicorn/numeric-separators-style\": \"warn\",\n // https://oxc.rs/docs/guide/usage/linter/rules/unicorn/prefer-add-event-listener\n \"unicorn/prefer-add-event-listener\": \"warn\",\n // https://oxc.rs/docs/guide/usage/linter/rules/unicorn/prefer-array-find\n \"unicorn/prefer-array-find\": \"warn\",\n // https://oxc.rs/docs/guide/usage/linter/rules/unicorn/prefer-array-flat\n \"unicorn/prefer-array-flat\": \"warn\",\n // https://oxc.rs/docs/guide/usage/linter/rules/unicorn/prefer-array-flat-map\n \"unicorn/prefer-array-flat-map\": \"warn\",\n // https://oxc.rs/docs/guide/usage/linter/rules/unicorn/prefer-array-index-of\n \"unicorn/prefer-array-index-of\": \"warn\",\n // https://oxc.rs/docs/guide/usage/linter/rules/unicorn/prefer-array-some\n \"unicorn/prefer-array-some\": \"warn\",\n // https://oxc.rs/docs/guide/usage/linter/rules/unicorn/prefer-bigint-literals\n \"unicorn/prefer-bigint-literals\": \"warn\",\n // https://oxc.rs/docs/guide/usage/linter/rules/unicorn/prefer-blob-reading-methods\n \"unicorn/prefer-blob-reading-methods\": \"warn\",\n // https://oxc.rs/docs/guide/usage/linter/rules/unicorn/prefer-classlist-toggle\n \"unicorn/prefer-classlist-toggle\": \"warn\",\n // https://oxc.rs/docs/guide/usage/linter/rules/unicorn/prefer-code-point\n \"unicorn/prefer-code-point\": \"warn\",\n // https://oxc.rs/docs/guide/usage/linter/rules/unicorn/prefer-date-now\n \"unicorn/prefer-date-now\": \"warn\",\n // https://oxc.rs/docs/guide/usage/linter/rules/unicorn/prefer-default-parameters\n \"unicorn/prefer-default-parameters\": \"warn\",\n // https://oxc.rs/docs/guide/usage/linter/rules/unicorn/prefer-dom-node-append\n \"unicorn/prefer-dom-node-append\": \"warn\",\n // https://oxc.rs/docs/guide/usage/linter/rules/unicorn/prefer-dom-node-dataset\n \"unicorn/prefer-dom-node-dataset\": \"warn\",\n // https://oxc.rs/docs/guide/usage/linter/rules/unicorn/prefer-dom-node-remove\n \"unicorn/prefer-dom-node-remove\": \"warn\",\n // https://oxc.rs/docs/guide/usage/linter/rules/unicorn/prefer-dom-node-text-content\n \"unicorn/prefer-dom-node-text-content\": \"warn\",\n // https://oxc.rs/docs/guide/usage/linter/rules/unicorn/prefer-export-from\n \"unicorn/prefer-export-from\": \"warn\",\n // https://oxc.rs/docs/guide/usage/linter/rules/unicorn/prefer-global-this\n \"unicorn/prefer-global-this\": \"warn\",\n // https://oxc.rs/docs/guide/usage/linter/rules/unicorn/prefer-includes\n \"unicorn/prefer-includes\": \"warn\",\n // https://oxc.rs/docs/guide/usage/linter/rules/unicorn/prefer-keyboard-event-key\n \"unicorn/prefer-keyboard-event-key\": \"warn\",\n // https://oxc.rs/docs/guide/usage/linter/rules/unicorn/prefer-logical-operator-over-ternary\n \"unicorn/prefer-logical-operator-over-ternary\": \"warn\",\n // https://oxc.rs/docs/guide/usage/linter/rules/unicorn/prefer-math-min-max\n \"unicorn/prefer-math-min-max\": \"warn\",\n // https://oxc.rs/docs/guide/usage/linter/rules/unicorn/prefer-math-trunc\n \"unicorn/prefer-math-trunc\": \"warn\",\n // https://oxc.rs/docs/guide/usage/linter/rules/unicorn/prefer-modern-dom-apis\n \"unicorn/prefer-modern-dom-apis\": \"warn\",\n // https://oxc.rs/docs/guide/usage/linter/rules/unicorn/prefer-native-coercion-functions\n \"unicorn/prefer-native-coercion-functions\": \"error\",\n // https://oxc.rs/docs/guide/usage/linter/rules/unicorn/prefer-negative-index\n \"unicorn/prefer-negative-index\": \"warn\",\n // https://oxc.rs/docs/guide/usage/linter/rules/unicorn/prefer-node-protocol\n \"unicorn/prefer-node-protocol\": \"warn\",\n // https://oxc.rs/docs/guide/usage/linter/rules/unicorn/prefer-number-properties\n \"unicorn/prefer-number-properties\": \"error\",\n // https://oxc.rs/docs/guide/usage/linter/rules/unicorn/prefer-object-from-entries\n \"unicorn/prefer-object-from-entries\": \"warn\",\n // https://oxc.rs/docs/guide/usage/linter/rules/unicorn/prefer-optional-catch-binding\n \"unicorn/prefer-optional-catch-binding\": \"warn\",\n // https://oxc.rs/docs/guide/usage/linter/rules/unicorn/prefer-query-selector\n \"unicorn/prefer-query-selector\": \"warn\",\n // https://oxc.rs/docs/guide/usage/linter/rules/unicorn/prefer-regexp-test\n \"unicorn/prefer-regexp-test\": \"warn\",\n // https://oxc.rs/docs/guide/usage/linter/rules/unicorn/prefer-response-static-json\n \"unicorn/prefer-response-static-json\": \"warn\",\n // https://oxc.rs/docs/guide/usage/linter/rules/unicorn/prefer-single-call\n \"unicorn/prefer-single-call\": \"warn\",\n // https://oxc.rs/docs/guide/usage/linter/rules/unicorn/prefer-string-raw\n \"unicorn/prefer-string-raw\": \"warn\",\n // https://oxc.rs/docs/guide/usage/linter/rules/unicorn/prefer-string-replace-all\n \"unicorn/prefer-string-replace-all\": \"warn\",\n // https://oxc.rs/docs/guide/usage/linter/rules/unicorn/prefer-string-slice\n \"unicorn/prefer-string-slice\": \"warn\",\n // https://oxc.rs/docs/guide/usage/linter/rules/unicorn/prefer-string-trim-start-end\n \"unicorn/prefer-string-trim-start-end\": \"error\",\n // https://oxc.rs/docs/guide/usage/linter/rules/unicorn/prefer-structured-clone\n \"unicorn/prefer-structured-clone\": \"warn\",\n // https://oxc.rs/docs/guide/usage/linter/rules/unicorn/prefer-ternary\n \"unicorn/prefer-ternary\": \"warn\",\n // https://oxc.rs/docs/guide/usage/linter/rules/unicorn/prefer-type-error\n \"unicorn/prefer-type-error\": \"warn\",\n // https://oxc.rs/docs/guide/usage/linter/rules/unicorn/require-array-join-separator\n \"unicorn/require-array-join-separator\": \"warn\",\n // https://oxc.rs/docs/guide/usage/linter/rules/unicorn/require-module-attributes\n \"unicorn/require-module-attributes\": \"warn\",\n // https://oxc.rs/docs/guide/usage/linter/rules/unicorn/require-number-to-fixed-digits-argument\n \"unicorn/require-number-to-fixed-digits-argument\": \"warn\",\n // https://oxc.rs/docs/guide/usage/linter/rules/unicorn/require-post-message-target-origin\n \"unicorn/require-post-message-target-origin\": \"error\",\n // https://oxc.rs/docs/guide/usage/linter/rules/unicorn/text-encoding-identifier-case\n \"unicorn/text-encoding-identifier-case\": \"warn\",\n // https://oxc.rs/docs/guide/usage/linter/rules/unicorn/throw-new-error\n \"unicorn/throw-new-error\": \"warn\",\n // #endregion\n\n // #region typescript\n // https://oxc.rs/docs/guide/usage/linter/rules/typescript/adjacent-overload-signatures\n \"typescript/adjacent-overload-signatures\": \"error\",\n // https://oxc.rs/docs/guide/usage/linter/rules/typescript/array-type\n \"typescript/array-type\": \"error\",\n // https://oxc.rs/docs/guide/usage/linter/rules/typescript/ban-ts-comment\n \"typescript/ban-ts-comment\": \"error\",\n // https://oxc.rs/docs/guide/usage/linter/rules/typescript/ban-tslint-comment\n \"typescript/ban-tslint-comment\": \"error\",\n // https://oxc.rs/docs/guide/usage/linter/rules/typescript/consistent-generic-constructors\n \"typescript/consistent-generic-constructors\": \"error\",\n // https://oxc.rs/docs/guide/usage/linter/rules/typescript/consistent-type-assertions\n \"typescript/consistent-type-assertions\": \"error\",\n // https://oxc.rs/docs/guide/usage/linter/rules/typescript/consistent-type-definitions\n \"typescript/consistent-type-definitions\": [\"warn\", \"type\"],\n // https://oxc.rs/docs/guide/usage/linter/rules/typescript/consistent-type-exports\n \"typescript/consistent-type-exports\": \"error\",\n // https://oxc.rs/docs/guide/usage/linter/rules/typescript/consistent-type-imports\n \"typescript/consistent-type-imports\": \"error\",\n // https://oxc.rs/docs/guide/usage/linter/rules/typescript/dot-notation\n \"typescript/dot-notation\": \"warn\",\n // https://oxc.rs/docs/guide/usage/linter/rules/typescript/no-confusing-non-null-assertion\n \"typescript/no-confusing-non-null-assertion\": \"warn\",\n // https://oxc.rs/docs/guide/usage/linter/rules/typescript/no-confusing-void-expression\n \"typescript/no-confusing-void-expression\": \"warn\",\n // https://oxc.rs/docs/guide/usage/linter/rules/typescript/no-deprecated\n \"typescript/no-deprecated\": \"warn\",\n // https://oxc.rs/docs/guide/usage/linter/rules/typescript/no-dynamic-delete\n \"typescript/no-dynamic-delete\": \"warn\",\n // https://oxc.rs/docs/guide/usage/linter/rules/typescript/no-empty-interface\n \"typescript/no-empty-interface\": \"warn\",\n // https://oxc.rs/docs/guide/usage/linter/rules/typescript/no-empty-object-type\n \"typescript/no-empty-object-type\": \"warn\",\n // https://oxc.rs/docs/guide/usage/linter/rules/typescript/no-explicit-any\n \"typescript/no-explicit-any\": \"error\",\n // https://oxc.rs/docs/guide/usage/linter/rules/typescript/no-extraneous-class\n \"typescript/no-extraneous-class\": \"error\",\n // https://oxc.rs/docs/guide/usage/linter/rules/typescript/no-implied-eval\n \"typescript/no-implied-eval\": \"warn\",\n // https://oxc.rs/docs/guide/usage/linter/rules/typescript/no-import-type-side-effects\n \"typescript/no-import-type-side-effects\": \"warn\",\n // https://oxc.rs/docs/guide/usage/linter/rules/typescript/no-invalid-void-type\n \"typescript/no-invalid-void-type\": [\"error\", { allowAsThisParameter: true }],\n // https://oxc.rs/docs/guide/usage/linter/rules/typescript/no-misused-promises\n \"typescript/no-misused-promises\": \"warn\",\n // https://oxc.rs/docs/guide/usage/linter/rules/typescript/no-mixed-enums\n \"typescript/no-mixed-enums\": \"error\",\n // https://oxc.rs/docs/guide/usage/linter/rules/typescript/no-namespace\n \"typescript/no-namespace\": \"error\",\n // https://oxc.rs/docs/guide/usage/linter/rules/typescript/no-non-null-asserted-nullish-coalescing\n \"typescript/no-non-null-asserted-nullish-coalescing\": \"error\",\n // https://oxc.rs/docs/guide/usage/linter/rules/typescript/no-non-null-assertion\n \"typescript/no-non-null-assertion\": \"warn\",\n // https://oxc.rs/docs/guide/usage/linter/rules/typescript/no-unnecessary-condition\n \"typescript/no-unnecessary-condition\": \"warn\",\n // https://oxc.rs/docs/guide/usage/linter/rules/typescript/no-unnecessary-qualifier\n \"typescript/no-unnecessary-qualifier\": \"warn\",\n // https://oxc.rs/docs/guide/usage/linter/rules/typescript/no-unnecessary-template-expression\n \"typescript/no-unnecessary-template-expression\": \"warn\",\n // https://oxc.rs/docs/guide/usage/linter/rules/typescript/no-unnecessary-type-constraint\n \"typescript/no-unnecessary-type-constraint\": \"warn\",\n // https://oxc.rs/docs/guide/usage/linter/rules/typescript/no-unnecessary-type-conversion\n \"typescript/no-unnecessary-type-conversion\": \"warn\",\n // https://oxc.rs/docs/guide/usage/linter/rules/typescript/no-unnecessary-type-parameters\n \"typescript/no-unnecessary-type-parameters\": \"warn\",\n // https://oxc.rs/docs/guide/usage/linter/rules/typescript/no-unsafe-enum-comparison\n \"typescript/no-unsafe-enum-comparison\": \"error\",\n // https://oxc.rs/docs/guide/usage/linter/rules/typescript/no-unsafe-function-type\n \"typescript/no-unsafe-function-type\": \"error\",\n // https://oxc.rs/docs/guide/usage/linter/rules/typescript/non-nullable-type-assertion-style\n \"typescript/non-nullable-type-assertion-style\": \"warn\",\n // https://oxc.rs/docs/guide/usage/linter/rules/typescript/only-throw-error\n \"typescript/only-throw-error\": \"warn\",\n // https://oxc.rs/docs/guide/usage/linter/rules/typescript/prefer-for-of\n \"typescript/prefer-for-of\": \"warn\",\n // https://oxc.rs/docs/guide/usage/linter/rules/typescript/prefer-function-type\n \"typescript/prefer-function-type\": \"error\",\n // https://oxc.rs/docs/guide/usage/linter/rules/typescript/prefer-literal-enum-member\n \"typescript/prefer-literal-enum-member\": \"error\",\n // https://oxc.rs/docs/guide/usage/linter/rules/typescript/prefer-nullish-coalescing\n \"typescript/prefer-nullish-coalescing\": \"warn\",\n // https://oxc.rs/docs/guide/usage/linter/rules/typescript/prefer-optional-chain\n \"typescript/prefer-optional-chain\": \"warn\",\n // https://oxc.rs/docs/guide/usage/linter/rules/typescript/prefer-promise-reject-errors\n \"typescript/prefer-promise-reject-errors\": \"warn\",\n // https://oxc.rs/docs/guide/usage/linter/rules/typescript/prefer-readonly\n \"typescript/prefer-readonly\": \"warn\",\n // https://oxc.rs/docs/guide/usage/linter/rules/typescript/prefer-reduce-type-parameter\n \"typescript/prefer-reduce-type-parameter\": \"warn\",\n // https://oxc.rs/docs/guide/usage/linter/rules/typescript/prefer-return-this-type\n \"typescript/prefer-return-this-type\": \"warn\",\n // https://oxc.rs/docs/guide/usage/linter/rules/typescript/prefer-string-starts-ends-with\n \"typescript/prefer-string-starts-ends-with\": \"warn\",\n // https://oxc.rs/docs/guide/usage/linter/rules/typescript/promise-function-async\n \"typescript/promise-function-async\": \"warn\",\n // https://oxc.rs/docs/guide/usage/linter/rules/typescript/require-await\n \"typescript/require-await\": \"warn\",\n // https://oxc.rs/docs/guide/usage/linter/rules/typescript/strict-boolean-expressions\n \"typescript/strict-boolean-expressions\": [\n \"warn\",\n { allowNullableBoolean: true, allowNumber: false, allowString: false },\n ],\n // https://oxc.rs/docs/guide/usage/linter/rules/typescript/switch-exhaustiveness-check\n \"typescript/switch-exhaustiveness-check\": \"warn\",\n // https://oxc.rs/docs/guide/usage/linter/rules/typescript/unified-signatures\n \"typescript/unified-signatures\": \"warn\",\n // https://oxc.rs/docs/guide/usage/linter/rules/typescript/use-unknown-in-catch-callback-variable\n \"typescript/use-unknown-in-catch-callback-variable\": \"error\",\n // #endregion\n\n // #region import\n // https://oxc.rs/docs/guide/usage/linter/rules/import/consistent-type-specifier-style\n \"import/consistent-type-specifier-style\": \"error\",\n // https://oxc.rs/docs/guide/usage/linter/rules/import/export\n \"import/export\": \"warn\",\n // https://oxc.rs/docs/guide/usage/linter/rules/import/first\n \"import/first\": \"error\",\n // https://oxc.rs/docs/guide/usage/linter/rules/import/no-absolute-path\n \"import/no-absolute-path\": \"error\",\n // https://oxc.rs/docs/guide/usage/linter/rules/import/no-anonymous-default-export\n \"import/no-anonymous-default-export\": \"error\",\n // https://oxc.rs/docs/guide/usage/linter/rules/import/no-cycle\n \"import/no-cycle\": \"warn\",\n // https://oxc.rs/docs/guide/usage/linter/rules/import/no-empty-named-blocks\n \"import/no-empty-named-blocks\": \"warn\",\n // https://oxc.rs/docs/guide/usage/linter/rules/import/no-mutable-exports\n \"import/no-mutable-exports\": \"warn\",\n // https://oxc.rs/docs/guide/usage/linter/rules/import/no-self-import\n \"import/no-self-import\": \"warn\",\n // https://oxc.rs/docs/guide/usage/linter/rules/import/unambiguous\n \"import/unambiguous\": \"warn\",\n // #endregion\n },\n\n overrides: [\n {\n files: [\"**/*.{ts,tsx}\"],\n rules: {\n \"no-const-assign\": \"off\",\n },\n },\n {\n files: [\"**/*.{cjs,cts}\"],\n rules: {\n \"import/unambiguous\": \"off\",\n },\n },\n ],\n} satisfies OxlintConfig;\n\nexport default config;\n"],"mappings":"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"}
@@ -0,0 +1,7 @@
1
+ import { OxlintConfig } from "oxlint";
2
+
3
+ //#region src/oxlint/nextjs.d.ts
4
+ declare const config: OxlintConfig;
5
+ //#endregion
6
+ export { config as default };
7
+ //# sourceMappingURL=nextjs.d.ts.map
@@ -0,0 +1,31 @@
1
+ //#region src/oxlint/nextjs.ts
2
+ const config = {
3
+ plugins: ["nextjs"],
4
+ rules: {
5
+ "nextjs/google-font-display": "warn",
6
+ "nextjs/google-font-preconnect": "warn",
7
+ "nextjs/inline-script-id": "error",
8
+ "nextjs/next-script-for-ga": "warn",
9
+ "nextjs/no-assign-module-variable": "error",
10
+ "nextjs/no-async-client-component": "warn",
11
+ "nextjs/no-before-interactive-script-outside-document": "warn",
12
+ "nextjs/no-css-tags": "warn",
13
+ "nextjs/no-document-import-in-page": "error",
14
+ "nextjs/no-duplicate-head": "error",
15
+ "nextjs/no-head-element": "warn",
16
+ "nextjs/no-head-import-in-document": "error",
17
+ "nextjs/no-html-link-for-pages": "warn",
18
+ "nextjs/no-img-element": "warn",
19
+ "nextjs/no-page-custom-font": "warn",
20
+ "nextjs/no-script-component-in-head": "error",
21
+ "nextjs/no-styled-jsx-in-document": "error",
22
+ "nextjs/no-sync-scripts": "warn",
23
+ "nextjs/no-title-in-document-head": "warn",
24
+ "nextjs/no-typos": "warn",
25
+ "nextjs/no-unwanted-polyfillio": "error"
26
+ }
27
+ };
28
+ //#endregion
29
+ export { config as default };
30
+
31
+ //# sourceMappingURL=nextjs.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"nextjs.js","names":[],"sources":["../../src/oxlint/nextjs.ts"],"sourcesContent":["import type { OxlintConfig } from \"oxlint\";\n\nconst config: OxlintConfig = {\n plugins: [\"nextjs\"],\n rules: {\n \"nextjs/google-font-display\": \"warn\",\n \"nextjs/google-font-preconnect\": \"warn\",\n \"nextjs/inline-script-id\": \"error\",\n \"nextjs/next-script-for-ga\": \"warn\",\n \"nextjs/no-assign-module-variable\": \"error\",\n \"nextjs/no-async-client-component\": \"warn\",\n \"nextjs/no-before-interactive-script-outside-document\": \"warn\",\n \"nextjs/no-css-tags\": \"warn\",\n \"nextjs/no-document-import-in-page\": \"error\",\n \"nextjs/no-duplicate-head\": \"error\",\n \"nextjs/no-head-element\": \"warn\",\n \"nextjs/no-head-import-in-document\": \"error\",\n \"nextjs/no-html-link-for-pages\": \"warn\",\n \"nextjs/no-img-element\": \"warn\",\n \"nextjs/no-page-custom-font\": \"warn\",\n \"nextjs/no-script-component-in-head\": \"error\",\n \"nextjs/no-styled-jsx-in-document\": \"error\",\n \"nextjs/no-sync-scripts\": \"warn\",\n \"nextjs/no-title-in-document-head\": \"warn\",\n \"nextjs/no-typos\": \"warn\",\n \"nextjs/no-unwanted-polyfillio\": \"error\",\n },\n};\n\nexport default config;\n"],"mappings":";AAEA,MAAM,SAAuB;CAC3B,SAAS,CAAC,QAAQ;CAClB,OAAO;EACL,8BAA8B;EAC9B,iCAAiC;EACjC,2BAA2B;EAC3B,6BAA6B;EAC7B,oCAAoC;EACpC,oCAAoC;EACpC,wDAAwD;EACxD,sBAAsB;EACtB,qCAAqC;EACrC,4BAA4B;EAC5B,0BAA0B;EAC1B,qCAAqC;EACrC,iCAAiC;EACjC,yBAAyB;EACzB,8BAA8B;EAC9B,sCAAsC;EACtC,oCAAoC;EACpC,0BAA0B;EAC1B,oCAAoC;EACpC,mBAAmB;EACnB,iCAAiC;CACnC;AACF"}
@@ -0,0 +1,7 @@
1
+ import { OxlintConfig } from "oxlint";
2
+
3
+ //#region src/oxlint/node.d.ts
4
+ declare const config: OxlintConfig;
5
+ //#endregion
6
+ export { config as default };
7
+ //# sourceMappingURL=node.d.ts.map
@@ -0,0 +1,18 @@
1
+ //#region src/oxlint/node.ts
2
+ const config = {
3
+ plugins: ["node"],
4
+ rules: {
5
+ "node/callback-return": "warn",
6
+ "node/global-require": "warn",
7
+ "node/handle-callback-err": "warn",
8
+ "node/no-exports-assign": "error",
9
+ "node/no-mixed-requires": "warn",
10
+ "node/no-new-require": "error",
11
+ "node/no-path-concat": "warn",
12
+ "node/no-sync": "warn"
13
+ }
14
+ };
15
+ //#endregion
16
+ export { config as default };
17
+
18
+ //# sourceMappingURL=node.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"node.js","names":[],"sources":["../../src/oxlint/node.ts"],"sourcesContent":["import type { OxlintConfig } from \"oxlint\";\n\nconst config: OxlintConfig = {\n plugins: [\"node\"],\n rules: {\n \"node/callback-return\": \"warn\",\n \"node/global-require\": \"warn\",\n \"node/handle-callback-err\": \"warn\",\n \"node/no-exports-assign\": \"error\",\n \"node/no-mixed-requires\": \"warn\",\n \"node/no-new-require\": \"error\",\n \"node/no-path-concat\": \"warn\",\n \"node/no-sync\": \"warn\",\n },\n};\n\nexport default config;\n"],"mappings":";AAEA,MAAM,SAAuB;CAC3B,SAAS,CAAC,MAAM;CAChB,OAAO;EACL,wBAAwB;EACxB,uBAAuB;EACvB,4BAA4B;EAC5B,0BAA0B;EAC1B,0BAA0B;EAC1B,uBAAuB;EACvB,uBAAuB;EACvB,gBAAgB;CAClB;AACF"}
package/dist/utils.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- //#region node_modules/.pnpm/es-toolkit@1.47.1/node_modules/es-toolkit/dist/object/merge.d.mts
1
+ //#region node_modules/.pnpm/es-toolkit@1.48.1/node_modules/es-toolkit/dist/object/merge.d.mts
2
2
  //#region src/object/merge.d.ts
3
3
  /**
4
4
  * Merges the properties of the source object into the target object.
package/dist/utils.js CHANGED
@@ -1,4 +1,4 @@
1
- //#region node_modules/.pnpm/es-toolkit@1.47.1/node_modules/es-toolkit/dist/predicate/isPlainObject.mjs
1
+ //#region node_modules/.pnpm/es-toolkit@1.48.1/node_modules/es-toolkit/dist/predicate/isPlainObject.mjs
2
2
  /**
3
3
  * Checks if a given value is a plain object.
4
4
  *
@@ -48,7 +48,7 @@ function isPlainObject(value) {
48
48
  return Object.prototype.toString.call(value) === "[object Object]";
49
49
  }
50
50
  //#endregion
51
- //#region node_modules/.pnpm/es-toolkit@1.47.1/node_modules/es-toolkit/dist/_internal/isUnsafeProperty.mjs
51
+ //#region node_modules/.pnpm/es-toolkit@1.48.1/node_modules/es-toolkit/dist/_internal/isUnsafeProperty.mjs
52
52
  /**
53
53
  * Checks if a property key is unsafe to modify directly.
54
54
  *
@@ -63,7 +63,7 @@ function isUnsafeProperty(key) {
63
63
  return key === "__proto__";
64
64
  }
65
65
  //#endregion
66
- //#region node_modules/.pnpm/es-toolkit@1.47.1/node_modules/es-toolkit/dist/object/merge.mjs
66
+ //#region node_modules/.pnpm/es-toolkit@1.48.1/node_modules/es-toolkit/dist/object/merge.mjs
67
67
  /**
68
68
  * Merges the properties of the source object into the target object.
69
69
  *
package/dist/utils.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"utils.js","names":[],"sources":["../node_modules/.pnpm/es-toolkit@1.47.1/node_modules/es-toolkit/dist/predicate/isPlainObject.mjs","../node_modules/.pnpm/es-toolkit@1.47.1/node_modules/es-toolkit/dist/_internal/isUnsafeProperty.mjs","../node_modules/.pnpm/es-toolkit@1.47.1/node_modules/es-toolkit/dist/object/merge.mjs"],"sourcesContent":["//#region src/predicate/isPlainObject.ts\n/**\n* Checks if a given value is a plain object.\n*\n* @param value - The value to check.\n* @returns True if the value is a plain object, otherwise false.\n*\n* @example\n* ```typescript\n* // ✅👇 True\n*\n* isPlainObject({ }); // ✅\n* isPlainObject({ key: 'value' }); // ✅\n* isPlainObject({ key: new Date() }); // ✅\n* isPlainObject(new Object()); // ✅\n* isPlainObject(Object.create(null)); // ✅\n* isPlainObject({ nested: { key: true} }); // ✅\n* isPlainObject(new Proxy({}, {})); // ✅\n* isPlainObject({ [Symbol('tag')]: 'A' }); // ✅\n*\n* // ✅👇 (cross-realms, node context, workers, ...)\n* const runInNewContext = await import('node:vm').then(\n* (mod) => mod.runInNewContext\n* );\n* isPlainObject(runInNewContext('({})')); // ✅\n*\n* // ❌👇 False\n*\n* class Test { };\n* isPlainObject(new Test()) // ❌\n* isPlainObject(10); // ❌\n* isPlainObject(null); // ❌\n* isPlainObject('hello'); // ❌\n* isPlainObject([]); // ❌\n* isPlainObject(new Date()); // ❌\n* isPlainObject(new Uint8Array([1])); // ❌\n* isPlainObject(Buffer.from('ABC')); // ❌\n* isPlainObject(Promise.resolve({})); // ❌\n* isPlainObject(Object.create({})); // ❌\n* isPlainObject(new (class Cls {})); // ❌\n* isPlainObject(globalThis); // ❌,\n* ```\n*/\nfunction isPlainObject(value) {\n\tif (!value || typeof value !== \"object\") return false;\n\tconst proto = Object.getPrototypeOf(value);\n\tif (!(proto === null || proto === Object.prototype || Object.getPrototypeOf(proto) === null)) return false;\n\treturn Object.prototype.toString.call(value) === \"[object Object]\";\n}\n//#endregion\nexport { isPlainObject };\n","//#region src/_internal/isUnsafeProperty.ts\n/**\n* Checks if a property key is unsafe to modify directly.\n*\n* This function is used in functions like `merge` to prevent prototype pollution attacks\n* by identifying property keys that could modify the object's prototype chain or constructor.\n*\n* @param key - The property key to check\n* @returns `true` if the property is unsafe to modify directly, `false` otherwise\n* @internal\n*/\nfunction isUnsafeProperty(key) {\n\treturn key === \"__proto__\";\n}\n//#endregion\nexport { isUnsafeProperty };\n","import { isPlainObject } from \"../predicate/isPlainObject.mjs\";\nimport { isUnsafeProperty } from \"../_internal/isUnsafeProperty.mjs\";\n//#region src/object/merge.ts\n/**\n* Merges the properties of the source object into the target object.\n*\n* This function performs a deep merge, meaning nested objects and arrays are merged recursively.\n* If a property in the source object is an array or an object and the corresponding property in the target object is also an array or object, they will be merged.\n* If a property in the source object is undefined, it will not overwrite a defined property in the target object.\n*\n* Note that this function mutates the target object.\n*\n* @param target - The target object into which the source object properties will be merged. This object is modified in place.\n* @param source - The source object whose properties will be merged into the target object.\n* @returns The updated target object with properties from the source object merged in.\n*\n* @template T - Type of the target object.\n* @template S - Type of the source object.\n*\n* @example\n* const target = { a: 1, b: { x: 1, y: 2 } };\n* const source = { b: { y: 3, z: 4 }, c: 5 };\n*\n* const result = merge(target, source);\n* console.log(result);\n* // Output: { a: 1, b: { x: 1, y: 3, z: 4 }, c: 5 }\n*\n* @example\n* const target = { a: [1, 2], b: { x: 1 } };\n* const source = { a: [3], b: { y: 2 } };\n*\n* const result = merge(target, source);\n* console.log(result);\n* // Output: { a: [3, 2], b: { x: 1, y: 2 } }\n*\n* @example\n* const target = { a: null };\n* const source = { a: [1, 2, 3] };\n*\n* const result = merge(target, source);\n* console.log(result);\n* // Output: { a: [1, 2, 3] }\n*/\nfunction merge(target, source) {\n\tconst sourceKeys = Object.keys(source);\n\tfor (let i = 0; i < sourceKeys.length; i++) {\n\t\tconst key = sourceKeys[i];\n\t\tif (isUnsafeProperty(key)) continue;\n\t\tconst sourceValue = source[key];\n\t\tconst targetValue = target[key];\n\t\tif (isMergeableValue(sourceValue) && isMergeableValue(targetValue)) target[key] = merge(targetValue, sourceValue);\n\t\telse if (Array.isArray(sourceValue)) target[key] = merge([], sourceValue);\n\t\telse if (isPlainObject(sourceValue)) target[key] = merge({}, sourceValue);\n\t\telse if (targetValue === void 0 || sourceValue !== void 0) target[key] = sourceValue;\n\t}\n\treturn target;\n}\nfunction isMergeableValue(value) {\n\treturn isPlainObject(value) || Array.isArray(value);\n}\n//#endregion\nexport { merge };\n"],"x_google_ignoreList":[0,1,2],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA2CA,SAAS,cAAc,OAAO;CAC7B,IAAI,CAAC,SAAS,OAAO,UAAU,UAAU,OAAO;CAChD,MAAM,QAAQ,OAAO,eAAe,KAAK;CACzC,IAAI,EAAE,UAAU,QAAQ,UAAU,OAAO,aAAa,OAAO,eAAe,KAAK,MAAM,OAAO,OAAO;CACrG,OAAO,OAAO,UAAU,SAAS,KAAK,KAAK,MAAM;AAClD;;;;;;;;;;;;;ACrCA,SAAS,iBAAiB,KAAK;CAC9B,OAAO,QAAQ;AAChB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AC8BA,SAAS,MAAM,QAAQ,QAAQ;CAC9B,MAAM,aAAa,OAAO,KAAK,MAAM;CACrC,KAAK,IAAI,IAAI,GAAG,IAAI,WAAW,QAAQ,KAAK;EAC3C,MAAM,MAAM,WAAW;EACvB,IAAI,iBAAiB,GAAG,GAAG;EAC3B,MAAM,cAAc,OAAO;EAC3B,MAAM,cAAc,OAAO;EAC3B,IAAI,iBAAiB,WAAW,KAAK,iBAAiB,WAAW,GAAG,OAAO,OAAO,MAAM,aAAa,WAAW;OAC3G,IAAI,MAAM,QAAQ,WAAW,GAAG,OAAO,OAAO,MAAM,CAAC,GAAG,WAAW;OACnE,IAAI,cAAc,WAAW,GAAG,OAAO,OAAO,MAAM,CAAC,GAAG,WAAW;OACnE,IAAI,gBAAgB,KAAK,KAAK,gBAAgB,KAAK,GAAG,OAAO,OAAO;CAC1E;CACA,OAAO;AACR;AACA,SAAS,iBAAiB,OAAO;CAChC,OAAO,cAAc,KAAK,KAAK,MAAM,QAAQ,KAAK;AACnD"}
1
+ {"version":3,"file":"utils.js","names":[],"sources":["../node_modules/.pnpm/es-toolkit@1.48.1/node_modules/es-toolkit/dist/predicate/isPlainObject.mjs","../node_modules/.pnpm/es-toolkit@1.48.1/node_modules/es-toolkit/dist/_internal/isUnsafeProperty.mjs","../node_modules/.pnpm/es-toolkit@1.48.1/node_modules/es-toolkit/dist/object/merge.mjs"],"sourcesContent":["//#region src/predicate/isPlainObject.ts\n/**\n* Checks if a given value is a plain object.\n*\n* @param value - The value to check.\n* @returns True if the value is a plain object, otherwise false.\n*\n* @example\n* ```typescript\n* // ✅👇 True\n*\n* isPlainObject({ }); // ✅\n* isPlainObject({ key: 'value' }); // ✅\n* isPlainObject({ key: new Date() }); // ✅\n* isPlainObject(new Object()); // ✅\n* isPlainObject(Object.create(null)); // ✅\n* isPlainObject({ nested: { key: true} }); // ✅\n* isPlainObject(new Proxy({}, {})); // ✅\n* isPlainObject({ [Symbol('tag')]: 'A' }); // ✅\n*\n* // ✅👇 (cross-realms, node context, workers, ...)\n* const runInNewContext = await import('node:vm').then(\n* (mod) => mod.runInNewContext\n* );\n* isPlainObject(runInNewContext('({})')); // ✅\n*\n* // ❌👇 False\n*\n* class Test { };\n* isPlainObject(new Test()) // ❌\n* isPlainObject(10); // ❌\n* isPlainObject(null); // ❌\n* isPlainObject('hello'); // ❌\n* isPlainObject([]); // ❌\n* isPlainObject(new Date()); // ❌\n* isPlainObject(new Uint8Array([1])); // ❌\n* isPlainObject(Buffer.from('ABC')); // ❌\n* isPlainObject(Promise.resolve({})); // ❌\n* isPlainObject(Object.create({})); // ❌\n* isPlainObject(new (class Cls {})); // ❌\n* isPlainObject(globalThis); // ❌,\n* ```\n*/\nfunction isPlainObject(value) {\n\tif (!value || typeof value !== \"object\") return false;\n\tconst proto = Object.getPrototypeOf(value);\n\tif (!(proto === null || proto === Object.prototype || Object.getPrototypeOf(proto) === null)) return false;\n\treturn Object.prototype.toString.call(value) === \"[object Object]\";\n}\n//#endregion\nexport { isPlainObject };\n","//#region src/_internal/isUnsafeProperty.ts\n/**\n* Checks if a property key is unsafe to modify directly.\n*\n* This function is used in functions like `merge` to prevent prototype pollution attacks\n* by identifying property keys that could modify the object's prototype chain or constructor.\n*\n* @param key - The property key to check\n* @returns `true` if the property is unsafe to modify directly, `false` otherwise\n* @internal\n*/\nfunction isUnsafeProperty(key) {\n\treturn key === \"__proto__\";\n}\n//#endregion\nexport { isUnsafeProperty };\n","import { isPlainObject } from \"../predicate/isPlainObject.mjs\";\nimport { isUnsafeProperty } from \"../_internal/isUnsafeProperty.mjs\";\n//#region src/object/merge.ts\n/**\n* Merges the properties of the source object into the target object.\n*\n* This function performs a deep merge, meaning nested objects and arrays are merged recursively.\n* If a property in the source object is an array or an object and the corresponding property in the target object is also an array or object, they will be merged.\n* If a property in the source object is undefined, it will not overwrite a defined property in the target object.\n*\n* Note that this function mutates the target object.\n*\n* @param target - The target object into which the source object properties will be merged. This object is modified in place.\n* @param source - The source object whose properties will be merged into the target object.\n* @returns The updated target object with properties from the source object merged in.\n*\n* @template T - Type of the target object.\n* @template S - Type of the source object.\n*\n* @example\n* const target = { a: 1, b: { x: 1, y: 2 } };\n* const source = { b: { y: 3, z: 4 }, c: 5 };\n*\n* const result = merge(target, source);\n* console.log(result);\n* // Output: { a: 1, b: { x: 1, y: 3, z: 4 }, c: 5 }\n*\n* @example\n* const target = { a: [1, 2], b: { x: 1 } };\n* const source = { a: [3], b: { y: 2 } };\n*\n* const result = merge(target, source);\n* console.log(result);\n* // Output: { a: [3, 2], b: { x: 1, y: 2 } }\n*\n* @example\n* const target = { a: null };\n* const source = { a: [1, 2, 3] };\n*\n* const result = merge(target, source);\n* console.log(result);\n* // Output: { a: [1, 2, 3] }\n*/\nfunction merge(target, source) {\n\tconst sourceKeys = Object.keys(source);\n\tfor (let i = 0; i < sourceKeys.length; i++) {\n\t\tconst key = sourceKeys[i];\n\t\tif (isUnsafeProperty(key)) continue;\n\t\tconst sourceValue = source[key];\n\t\tconst targetValue = target[key];\n\t\tif (isMergeableValue(sourceValue) && isMergeableValue(targetValue)) target[key] = merge(targetValue, sourceValue);\n\t\telse if (Array.isArray(sourceValue)) target[key] = merge([], sourceValue);\n\t\telse if (isPlainObject(sourceValue)) target[key] = merge({}, sourceValue);\n\t\telse if (targetValue === void 0 || sourceValue !== void 0) target[key] = sourceValue;\n\t}\n\treturn target;\n}\nfunction isMergeableValue(value) {\n\treturn isPlainObject(value) || Array.isArray(value);\n}\n//#endregion\nexport { merge };\n"],"x_google_ignoreList":[0,1,2],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA2CA,SAAS,cAAc,OAAO;CAC7B,IAAI,CAAC,SAAS,OAAO,UAAU,UAAU,OAAO;CAChD,MAAM,QAAQ,OAAO,eAAe,KAAK;CACzC,IAAI,EAAE,UAAU,QAAQ,UAAU,OAAO,aAAa,OAAO,eAAe,KAAK,MAAM,OAAO,OAAO;CACrG,OAAO,OAAO,UAAU,SAAS,KAAK,KAAK,MAAM;AAClD;;;;;;;;;;;;;ACrCA,SAAS,iBAAiB,KAAK;CAC9B,OAAO,QAAQ;AAChB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AC8BA,SAAS,MAAM,QAAQ,QAAQ;CAC9B,MAAM,aAAa,OAAO,KAAK,MAAM;CACrC,KAAK,IAAI,IAAI,GAAG,IAAI,WAAW,QAAQ,KAAK;EAC3C,MAAM,MAAM,WAAW;EACvB,IAAI,iBAAiB,GAAG,GAAG;EAC3B,MAAM,cAAc,OAAO;EAC3B,MAAM,cAAc,OAAO;EAC3B,IAAI,iBAAiB,WAAW,KAAK,iBAAiB,WAAW,GAAG,OAAO,OAAO,MAAM,aAAa,WAAW;OAC3G,IAAI,MAAM,QAAQ,WAAW,GAAG,OAAO,OAAO,MAAM,CAAC,GAAG,WAAW;OACnE,IAAI,cAAc,WAAW,GAAG,OAAO,OAAO,MAAM,CAAC,GAAG,WAAW;OACnE,IAAI,gBAAgB,KAAK,KAAK,gBAAgB,KAAK,GAAG,OAAO,OAAO;CAC1E;CACA,OAAO;AACR;AACA,SAAS,iBAAiB,OAAO;CAChC,OAAO,cAAc,KAAK,KAAK,MAAM,QAAQ,KAAK;AACnD"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@luludev/configs",
3
- "version": "0.1.2",
3
+ "version": "0.2.0",
4
4
  "license": "MIT",
5
5
  "author": "Lulu (https://lulu.dev)",
6
6
  "repository": {
@@ -18,6 +18,8 @@
18
18
  "exports": {
19
19
  "./oxfmt": "./dist/oxfmt.js",
20
20
  "./oxlint/common": "./dist/oxlint/common.js",
21
+ "./oxlint/nextjs": "./dist/oxlint/nextjs.js",
22
+ "./oxlint/node": "./dist/oxlint/node.js",
21
23
  "./oxlint/react": "./dist/oxlint/react.js",
22
24
  "./oxlint/react-compiler": "./dist/oxlint/react-compiler.js",
23
25
  "./oxlint/vitest": "./dist/oxlint/vitest.js",
@@ -25,19 +27,20 @@
25
27
  "./package.json": "./package.json"
26
28
  },
27
29
  "devDependencies": {
28
- "es-toolkit": "^1.47.1",
29
- "oxfmt": "^0.55.0",
30
- "oxlint": "^1.70.0",
30
+ "es-toolkit": "^1.48.1",
31
+ "oxfmt": "^0.56.0",
32
+ "oxlint": "^1.71.0",
31
33
  "oxlint-tsgolint": "^0.23.0",
32
- "tsdown": "^0.22.2",
34
+ "tsdown": "^0.22.3",
33
35
  "typescript": "^6.0.3"
34
36
  },
35
37
  "peerDependencies": {
36
- "oxfmt": ">=0.55.0 <1",
37
- "oxlint": "^1.70.0"
38
+ "oxfmt": ">=0.56.0 <1",
39
+ "oxlint": "^1.71.0",
40
+ "oxlint-tsgolint": "^0.23.0"
38
41
  },
39
42
  "inlinedDependencies": {
40
- "es-toolkit": "1.47.1"
43
+ "es-toolkit": "1.48.1"
41
44
  },
42
45
  "scripts": {
43
46
  "build": "tsdown",