@luludev/configs 0.2.3 → 0.2.4

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.
@@ -197,8 +197,14 @@ const config = {
197
197
  "typescript/no-unnecessary-type-constraint": "warn",
198
198
  "typescript/no-unnecessary-type-conversion": "warn",
199
199
  "typescript/no-unnecessary-type-parameters": "warn",
200
+ "typescript/no-unsafe-argument": "error",
201
+ "typescript/no-unsafe-assignment": "error",
202
+ "typescript/no-unsafe-call": "error",
200
203
  "typescript/no-unsafe-enum-comparison": "error",
201
204
  "typescript/no-unsafe-function-type": "error",
205
+ "typescript/no-unsafe-member-access": "error",
206
+ "typescript/no-unsafe-return": "error",
207
+ "typescript/no-unsafe-type-assertion": "error",
202
208
  "typescript/non-nullable-type-assertion-style": "warn",
203
209
  "typescript/only-throw-error": "warn",
204
210
  "typescript/prefer-find": "warn",
@@ -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/explicit-timer-delay\n \"unicorn/explicit-timer-delay\": \"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-confusing-array-with\n \"unicorn/no-confusing-array-with\": \"warn\",\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\", { checksVoidReturn: false }],\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-find\n \"typescript/prefer-find\": \"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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"}
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/explicit-timer-delay\n \"unicorn/explicit-timer-delay\": \"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-confusing-array-with\n \"unicorn/no-confusing-array-with\": \"warn\",\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\", { checksVoidReturn: false }],\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-argument\n \"typescript/no-unsafe-argument\": \"error\",\n // https://oxc.rs/docs/guide/usage/linter/rules/typescript/no-unsafe-assignment\n \"typescript/no-unsafe-assignment\": \"error\",\n // https://oxc.rs/docs/guide/usage/linter/rules/typescript/no-unsafe-call\n \"typescript/no-unsafe-call\": \"error\",\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/no-unsafe-member-access\n \"typescript/no-unsafe-member-access\": \"error\",\n // https://oxc.rs/docs/guide/usage/linter/rules/typescript/no-unsafe-return\n \"typescript/no-unsafe-return\": \"error\",\n // https://oxc.rs/docs/guide/usage/linter/rules/typescript/no-unsafe-type-assertion\n \"typescript/no-unsafe-type-assertion\": \"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-find\n \"typescript/prefer-find\": \"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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"}
@@ -1,7 +1,30 @@
1
1
  //#region src/oxlint/react-compiler.ts
2
2
  const config = {
3
3
  plugins: ["react"],
4
- rules: { "react/react-compiler": "error" }
4
+ rules: {
5
+ "react/error-boundaries": "error",
6
+ "react/globals": "error",
7
+ "react/immutability": "error",
8
+ "react/incompatible-library": "error",
9
+ "react/preserve-manual-memoization": "error",
10
+ "react/purity": "error",
11
+ "react/refs": "error",
12
+ "react/set-state-in-effect": "error",
13
+ "react/set-state-in-render": "error",
14
+ "react/static-components": "error",
15
+ "react/use-memo": "error",
16
+ "react/unsupported-syntax": "error",
17
+ "react/void-use-memo": "error",
18
+ "react/no-deriving-state-in-effects": "error",
19
+ "react/invariant": "warn",
20
+ "react/rule-suppression": "warn",
21
+ "react/syntax": "error",
22
+ "react/todo": "warn",
23
+ "react/capitalized-calls": "error",
24
+ "react/exhaustive-effect-dependencies": "error",
25
+ "react/hooks": "error",
26
+ "react/memo-dependencies": "error"
27
+ }
5
28
  };
6
29
  //#endregion
7
30
  export { config as default };
@@ -1 +1 @@
1
- {"version":3,"file":"react-compiler.js","names":[],"sources":["../../src/oxlint/react-compiler.ts"],"sourcesContent":["import type { OxlintConfig } from \"oxlint\";\n\nconst config: OxlintConfig = {\n plugins: [\"react\"],\n rules: {\n \"react/react-compiler\": \"error\",\n },\n};\n\nexport default config;\n"],"mappings":";AAEA,MAAM,SAAuB;CAC3B,SAAS,CAAC,OAAO;CACjB,OAAO,EACL,wBAAwB,QAC1B;AACF"}
1
+ {"version":3,"file":"react-compiler.js","names":[],"sources":["../../src/oxlint/react-compiler.ts"],"sourcesContent":["import type { OxlintConfig } from \"oxlint\";\n\nconst config: OxlintConfig = {\n plugins: [\"react\"],\n rules: {\n \"react/error-boundaries\": \"error\",\n \"react/globals\": \"error\",\n \"react/immutability\": \"error\",\n \"react/incompatible-library\": \"error\",\n \"react/preserve-manual-memoization\": \"error\",\n \"react/purity\": \"error\",\n \"react/refs\": \"error\",\n \"react/set-state-in-effect\": \"error\",\n \"react/set-state-in-render\": \"error\",\n \"react/static-components\": \"error\",\n \"react/use-memo\": \"error\",\n \"react/unsupported-syntax\": \"error\",\n \"react/void-use-memo\": \"error\",\n \"react/no-deriving-state-in-effects\": \"error\",\n \"react/invariant\": \"warn\",\n \"react/rule-suppression\": \"warn\",\n \"react/syntax\": \"error\",\n \"react/todo\": \"warn\",\n \"react/capitalized-calls\": \"error\",\n \"react/exhaustive-effect-dependencies\": \"error\",\n \"react/hooks\": \"error\",\n \"react/memo-dependencies\": \"error\",\n },\n};\n\nexport default config;\n"],"mappings":";AAEA,MAAM,SAAuB;CAC3B,SAAS,CAAC,OAAO;CACjB,OAAO;EACL,0BAA0B;EAC1B,iBAAiB;EACjB,sBAAsB;EACtB,8BAA8B;EAC9B,qCAAqC;EACrC,gBAAgB;EAChB,cAAc;EACd,6BAA6B;EAC7B,6BAA6B;EAC7B,2BAA2B;EAC3B,kBAAkB;EAClB,4BAA4B;EAC5B,uBAAuB;EACvB,sCAAsC;EACtC,mBAAmB;EACnB,0BAA0B;EAC1B,gBAAgB;EAChB,cAAc;EACd,2BAA2B;EAC3B,wCAAwC;EACxC,eAAe;EACf,2BAA2B;CAC7B;AACF"}
package/dist/utils.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- //#region node_modules/.pnpm/es-toolkit@1.50.0/node_modules/es-toolkit/dist/object/merge.d.mts
1
+ //#region node_modules/.pnpm/es-toolkit@1.51.0/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.50.0/node_modules/es-toolkit/dist/predicate/isPlainObject.mjs
1
+ //#region node_modules/.pnpm/es-toolkit@1.51.0/node_modules/es-toolkit/dist/predicate/isPlainObject.mjs
2
2
  /**
3
3
  * Checks if a given value is a plain object.
4
4
  *
@@ -48,22 +48,40 @@ 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.50.0/node_modules/es-toolkit/dist/_internal/isUnsafeProperty.mjs
51
+ //#region node_modules/.pnpm/es-toolkit@1.51.0/node_modules/es-toolkit/dist/_internal/isMergeableValue.mjs
52
52
  /**
53
- * Checks if a property key is unsafe to modify directly.
53
+ * Checks if a value can be deeply merged into, i.e. it is a plain object or an array.
54
54
  *
55
- * This function is used in functions like `merge` to prevent prototype pollution attacks
56
- * by identifying property keys that could modify the object's prototype chain or constructor.
55
+ * This function is used in `merge`, `mergeWith`, and `toMerged` to decide whether
56
+ * the source value should be merged into the existing target value recursively,
57
+ * preserving the target's structure, instead of replacing it.
58
+ *
59
+ * @param value - The value to check.
60
+ * @returns `true` if the value is a plain object or an array, otherwise `false`.
61
+ */
62
+ function isMergeableValue(value) {
63
+ return isPlainObject(value) || Array.isArray(value);
64
+ }
65
+ //#endregion
66
+ //#region node_modules/.pnpm/es-toolkit@1.51.0/node_modules/es-toolkit/dist/_internal/isUnsafeProperty.mjs
67
+ /**
68
+ * Checks if a property key is unsafe to access or copy directly.
69
+ *
70
+ * This function is used in functions like `get`, `unset`, and `merge` to prevent
71
+ * prototype pollution attacks by identifying `__proto__`, which modifies the object's
72
+ * prototype chain. `constructor` and `prototype` stay accessible here because lodash
73
+ * keeps reads of them unrestricted; write paths use `isUnsafeToWriteProperty` instead,
74
+ * which also blocks those keys.
57
75
  *
58
76
  * @param key - The property key to check
59
- * @returns `true` if the property is unsafe to modify directly, `false` otherwise
77
+ * @returns `true` if the property is unsafe to access directly, `false` otherwise
60
78
  * @internal
61
79
  */
62
80
  function isUnsafeProperty(key) {
63
81
  return key === "__proto__";
64
82
  }
65
83
  //#endregion
66
- //#region node_modules/.pnpm/es-toolkit@1.50.0/node_modules/es-toolkit/dist/object/merge.mjs
84
+ //#region node_modules/.pnpm/es-toolkit@1.51.0/node_modules/es-toolkit/dist/object/merge.mjs
67
85
  /**
68
86
  * Merges the properties of the source object into the target object.
69
87
  *
@@ -118,9 +136,6 @@ function merge(target, source) {
118
136
  }
119
137
  return target;
120
138
  }
121
- function isMergeableValue(value) {
122
- return isPlainObject(value) || Array.isArray(value);
123
- }
124
139
  //#endregion
125
140
  export { merge };
126
141
 
package/dist/utils.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"utils.js","names":[],"sources":["../node_modules/.pnpm/es-toolkit@1.50.0/node_modules/es-toolkit/dist/predicate/isPlainObject.mjs","../node_modules/.pnpm/es-toolkit@1.50.0/node_modules/es-toolkit/dist/_internal/isUnsafeProperty.mjs","../node_modules/.pnpm/es-toolkit@1.50.0/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.51.0/node_modules/es-toolkit/dist/predicate/isPlainObject.mjs","../node_modules/.pnpm/es-toolkit@1.51.0/node_modules/es-toolkit/dist/_internal/isMergeableValue.mjs","../node_modules/.pnpm/es-toolkit@1.51.0/node_modules/es-toolkit/dist/_internal/isUnsafeProperty.mjs","../node_modules/.pnpm/es-toolkit@1.51.0/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","import { isPlainObject } from \"../predicate/isPlainObject.mjs\";\n//#region src/_internal/isMergeableValue.ts\n/**\n* Checks if a value can be deeply merged into, i.e. it is a plain object or an array.\n*\n* This function is used in `merge`, `mergeWith`, and `toMerged` to decide whether\n* the source value should be merged into the existing target value recursively,\n* preserving the target's structure, instead of replacing it.\n*\n* @param value - The value to check.\n* @returns `true` if the value is a plain object or an array, otherwise `false`.\n*/\nfunction isMergeableValue(value) {\n\treturn isPlainObject(value) || Array.isArray(value);\n}\n//#endregion\nexport { isMergeableValue };\n","//#region src/_internal/isUnsafeProperty.ts\n/**\n* Checks if a property key is unsafe to access or copy directly.\n*\n* This function is used in functions like `get`, `unset`, and `merge` to prevent\n* prototype pollution attacks by identifying `__proto__`, which modifies the object's\n* prototype chain. `constructor` and `prototype` stay accessible here because lodash\n* keeps reads of them unrestricted; write paths use `isUnsafeToWriteProperty` instead,\n* which also blocks those keys.\n*\n* @param key - The property key to check\n* @returns `true` if the property is unsafe to access 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 { isMergeableValue } from \"../_internal/isMergeableValue.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}\n//#endregion\nexport { merge };\n"],"x_google_ignoreList":[0,1,2,3],"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;;;;;;;;;;;;;ACpCA,SAAS,iBAAiB,OAAO;CAChC,OAAO,cAAc,KAAK,KAAK,MAAM,QAAQ,KAAK;AACnD;;;;;;;;;;;;;;;;ACAA,SAAS,iBAAiB,KAAK;CAC9B,OAAO,QAAQ;AAChB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AC4BA,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"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@luludev/configs",
3
- "version": "0.2.3",
3
+ "version": "0.2.4",
4
4
  "license": "MIT",
5
5
  "author": "Lulu (https://lulu.dev)",
6
6
  "repository": {
@@ -27,20 +27,20 @@
27
27
  "./package.json": "./package.json"
28
28
  },
29
29
  "devDependencies": {
30
- "es-toolkit": "^1.50.0",
31
- "oxfmt": "^0.62.0",
32
- "oxlint": "^1.77.0",
30
+ "es-toolkit": "^1.51.0",
31
+ "oxfmt": "^0.65.0",
32
+ "oxlint": "^1.80.0",
33
33
  "oxlint-tsgolint": "^7.0.2001",
34
34
  "tsdown": "^0.22.14",
35
35
  "typescript": "^7.0.2"
36
36
  },
37
37
  "peerDependencies": {
38
- "oxfmt": ">=0.62.0 <1",
39
- "oxlint": "^1.77.0",
38
+ "oxfmt": ">=0.65.0 <1",
39
+ "oxlint": "^1.80.0",
40
40
  "oxlint-tsgolint": "^7.0.2001"
41
41
  },
42
42
  "inlinedDependencies": {
43
- "es-toolkit": "1.50.0"
43
+ "es-toolkit": "1.51.0"
44
44
  },
45
45
  "scripts": {
46
46
  "build": "tsdown",