@luludev/configs 0.2.5 → 0.2.6

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.
package/dist/oxfmt.d.ts CHANGED
@@ -1,6 +1,3 @@
1
1
  import { OxfmtConfig } from "oxfmt";
2
- //#region src/oxfmt.d.ts
3
2
  declare const config: OxfmtConfig;
4
- //#endregion
5
- export { config as default };
6
- //# sourceMappingURL=oxfmt.d.ts.map
3
+ export { config as default };
package/dist/oxfmt.js CHANGED
@@ -1,4 +1,4 @@
1
- //#region src/oxfmt.ts
1
+ // src/oxfmt.ts
2
2
  const config = {
3
3
  sortImports: { newlinesBetween: false },
4
4
  sortTailwindcss: { functions: [
@@ -8,7 +8,6 @@ const config = {
8
8
  "twMerge"
9
9
  ] }
10
10
  };
11
- //#endregion
12
11
  export { config as default };
13
12
 
14
13
  //# sourceMappingURL=oxfmt.js.map
@@ -1,6 +1,3 @@
1
1
  import { OxlintConfig } from "oxlint";
2
- //#region src/oxlint/common.d.ts
3
2
  declare const config: OxlintConfig;
4
- //#endregion
5
- export { config as default };
6
- //# sourceMappingURL=common.d.ts.map
3
+ export { config as default };
@@ -1,4 +1,4 @@
1
- //#region src/oxlint/common.ts
1
+ // src/oxlint/common.ts
2
2
  const config = {
3
3
  options: {
4
4
  typeAware: true,
@@ -201,6 +201,7 @@ const config = {
201
201
  "typescript/no-unsafe-argument": "error",
202
202
  "typescript/no-unsafe-assignment": "error",
203
203
  "typescript/no-unsafe-call": "error",
204
+ "typescript/no-unsafe-enum-assignment": "error",
204
205
  "typescript/no-unsafe-enum-comparison": "error",
205
206
  "typescript/no-unsafe-function-type": "error",
206
207
  "typescript/no-unsafe-member-access": "error",
@@ -248,7 +249,6 @@ const config = {
248
249
  rules: { "import/unambiguous": "off" }
249
250
  }]
250
251
  };
251
- //#endregion
252
252
  export { config as default };
253
253
 
254
254
  //# sourceMappingURL=common.js.map
@@ -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\", { allowWithVariables: true }],\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-generated-empty-object-type\n \"typescript/no-generated-empty-object-type\": \"warn\",\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
+ {"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\", { allowWithVariables: true }],\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-generated-empty-object-type\n \"typescript/no-generated-empty-object-type\": \"warn\",\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-assignment\n \"typescript/no-unsafe-enum-assignment\": \"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,6 +1,3 @@
1
1
  import { OxlintConfig } from "oxlint";
2
- //#region src/oxlint/nextjs.d.ts
3
2
  declare const config: OxlintConfig;
4
- //#endregion
5
- export { config as default };
6
- //# sourceMappingURL=nextjs.d.ts.map
3
+ export { config as default };
@@ -1,4 +1,4 @@
1
- //#region src/oxlint/nextjs.ts
1
+ // src/oxlint/nextjs.ts
2
2
  const config = {
3
3
  plugins: ["nextjs"],
4
4
  rules: {
@@ -25,7 +25,6 @@ const config = {
25
25
  "nextjs/no-unwanted-polyfillio": "error"
26
26
  }
27
27
  };
28
- //#endregion
29
28
  export { config as default };
30
29
 
31
30
  //# sourceMappingURL=nextjs.js.map
@@ -1,6 +1,3 @@
1
1
  import { OxlintConfig } from "oxlint";
2
- //#region src/oxlint/node.d.ts
3
2
  declare const config: OxlintConfig;
4
- //#endregion
5
- export { config as default };
6
- //# sourceMappingURL=node.d.ts.map
3
+ export { config as default };
@@ -1,4 +1,4 @@
1
- //#region src/oxlint/node.ts
1
+ // src/oxlint/node.ts
2
2
  const config = {
3
3
  plugins: ["node"],
4
4
  rules: {
@@ -12,7 +12,6 @@ const config = {
12
12
  "node/no-sync": "warn"
13
13
  }
14
14
  };
15
- //#endregion
16
15
  export { config as default };
17
16
 
18
17
  //# sourceMappingURL=node.js.map
@@ -1,6 +1,3 @@
1
1
  import { OxlintConfig } from "oxlint";
2
- //#region src/oxlint/react-compiler.d.ts
3
2
  declare const config: OxlintConfig;
4
- //#endregion
5
- export { config as default };
6
- //# sourceMappingURL=react-compiler.d.ts.map
3
+ export { config as default };
@@ -1,4 +1,4 @@
1
- //#region src/oxlint/react-compiler.ts
1
+ // src/oxlint/react-compiler.ts
2
2
  const config = {
3
3
  plugins: ["react"],
4
4
  rules: {
@@ -26,7 +26,6 @@ const config = {
26
26
  "react/memo-dependencies": "error"
27
27
  }
28
28
  };
29
- //#endregion
30
29
  export { config as default };
31
30
 
32
31
  //# sourceMappingURL=react-compiler.js.map
@@ -1,6 +1,3 @@
1
1
  import { OxlintConfig } from "oxlint";
2
- //#region src/oxlint/react.d.ts
3
2
  declare const config: OxlintConfig;
4
- //#endregion
5
- export { config as default };
6
- //# sourceMappingURL=react.d.ts.map
3
+ export { config as default };
@@ -1,4 +1,4 @@
1
- //#region src/oxlint/react.ts
1
+ // src/oxlint/react.ts
2
2
  const config = {
3
3
  plugins: ["react"],
4
4
  rules: {
@@ -39,7 +39,6 @@ const config = {
39
39
  rules: { "react/jsx-no-undef": "off" }
40
40
  }]
41
41
  };
42
- //#endregion
43
42
  export { config as default };
44
43
 
45
44
  //# sourceMappingURL=react.js.map
@@ -1,6 +1,3 @@
1
1
  import { OxlintConfig } from "oxlint";
2
- //#region src/oxlint/vitest.d.ts
3
2
  declare const config: OxlintConfig;
4
- //#endregion
5
- export { config as default };
6
- //# sourceMappingURL=vitest.d.ts.map
3
+ export { config as default };
@@ -1,4 +1,4 @@
1
- //#region src/oxlint/vitest.ts
1
+ // src/oxlint/vitest.ts
2
2
  const config = {
3
3
  env: { vitest: true },
4
4
  plugins: ["vitest"],
@@ -13,7 +13,6 @@ const config = {
13
13
  "vitest/warn-todo": "warn"
14
14
  }
15
15
  };
16
- //#endregion
17
16
  export { config as default };
18
17
 
19
18
  //# sourceMappingURL=vitest.js.map
package/dist/utils.d.ts CHANGED
@@ -1,5 +1,59 @@
1
- //#region node_modules/.pnpm/es-toolkit@1.52.0/node_modules/es-toolkit/dist/types/Simplify.d.mts
2
- //#region src/types/Simplify.d.ts
1
+ /**
2
+ * Resolves to `true` when `T` is `any`, `false` otherwise.
3
+ *
4
+ * `any` is the only type that `1 & T` can turn into something `0` is
5
+ * assignable to, which is what makes it possible to tell `any` apart from
6
+ * `unknown` and from every other type.
7
+ *
8
+ * @template T - The type to check.
9
+ *
10
+ * @example
11
+ * type A = IsAny<any>; // true
12
+ * type B = IsAny<unknown>; // false
13
+ * type C = IsAny<never>; // false
14
+ */
15
+ type IsAny<T> = 0 extends 1 & T ? true : false;
16
+ /**
17
+ * Resolves to `true` when `A` and `B` are exactly the same type, `false` otherwise.
18
+ *
19
+ * Unlike a plain conditional type, this tells `any` apart from every other type,
20
+ * which makes it useful for catching an accidental `any` in type-level tests.
21
+ *
22
+ * @template A - The first type to compare.
23
+ * @template B - The second type to compare.
24
+ *
25
+ * @example
26
+ * type A = IsEqual<{ a: string }, { a: string }>; // true
27
+ * type B = IsEqual<string, 'literal'>; // false
28
+ * type C = IsEqual<unknown, any>; // false
29
+ */
30
+ type IsEqual<A, B> = (<G>() => G extends A ? 1 : 2) extends (<G>() => G extends B ? 1 : 2) ? true : false;
31
+ /**
32
+ * Resolves to `true` when `T` is `unknown`, `false` otherwise.
33
+ *
34
+ * A plain `unknown extends T` check is also `true` for `any`, so this type
35
+ * rules `any` out first. Useful when a type-level helper should treat an
36
+ * `unknown` input differently from a concrete type.
37
+ *
38
+ * @template T - The type to check.
39
+ *
40
+ * @example
41
+ * type A = IsUnknown<unknown>; // true
42
+ * type B = IsUnknown<any>; // false
43
+ * type C = IsUnknown<string>; // false
44
+ */
45
+ type IsUnknown<T> = IsAny<T> extends true ? false : unknown extends T ? true : false;
46
+ /**
47
+ * Every primitive value in JavaScript. Anything that is not a primitive is an object.
48
+ *
49
+ * Writing this union by hand usually misses `bigint` or `symbol`.
50
+ *
51
+ * @example
52
+ * function isPrimitive(value: unknown): value is Primitive {
53
+ * return value === null || (typeof value !== 'object' && typeof value !== 'function');
54
+ * }
55
+ */
56
+ type Primitive = string | number | bigint | boolean | symbol | null | undefined;
3
57
  /**
4
58
  * Flattens an intersection or mapped type into a single, readable object type.
5
59
  *
@@ -15,31 +69,44 @@
15
69
  * // hover => { name: string; age: number } (instead of A & B)
16
70
  */
17
71
  type Simplify<T> = { [K in keyof T]: T[K]; } & {};
18
- //#endregion
19
- //#region node_modules/.pnpm/es-toolkit@1.52.0/node_modules/es-toolkit/dist/types/Merge.d.mts
20
- //#region src/types/Merge.d.ts
21
72
  /**
22
73
  * The result of deeply merging the source type `S` into the target type `T`,
23
74
  * matching what `merge(target, source)` returns at runtime.
24
75
  *
25
- * Keys present on only one side are kept as-is. When both sides have a plain
26
- * object at the same key, the merge recurses; tuples merge index by index, and
27
- * other arrays merge into an array of both element types. If the source value
28
- * can be `undefined`, the target type is kept because `merge` skips
29
- * `undefined` source values. Values that are not plain objects or arrays
30
- * (functions, `Date`, `RegExp`, `Map`, `Set`, etc.) are not merged into;
31
- * the source value replaces the target value. When an array meets a plain
32
- * object, `merge` keeps the target and assigns the source's properties onto
33
- * it, so both property sets are kept (`T & S`).
76
+ * Two plain objects are merged key by key, and two arrays are merged index by
77
+ * index: tuples element by element, other arrays into an array of both element
78
+ * types. For every other key present in both objects the second object's type
79
+ * becomes the result: primitives, `Date`, `Map`, `Set`, functions and other
80
+ * values that are not plain objects use the second value's type, and a value
81
+ * that could be `null` or `undefined` in the first object disappears when the
82
+ * second object has a value for it. A source value that can be `undefined`
83
+ * keeps the target type, because `merge` skips `undefined` source values.
84
+ * Merging a type with itself gives back the same type.
34
85
  *
35
86
  * @template T - Type of the target object.
36
87
  * @template S - Type of the source object.
37
88
  *
38
89
  * @example
39
- * type Target = { a: number; b: { x: number; y: number } };
40
- * type Source = { b: { y: string; z: boolean }; c: string };
41
- * type Result = Merge<Target, Source>;
42
- * // => { a: number; b: { x: number; y: string; z: boolean }; c: string }
90
+ * // Nested plain objects are merged key by key.
91
+ * type Result = Merge<{ a: number; b: { x: number } }, { b: { y: string } }>;
92
+ * // => { a: number; b: { x: number; y: string } }
93
+ *
94
+ * @example
95
+ * // Arrays are merged index by index.
96
+ * type Tuple = Merge<[1, 2, 3], ['a']>;
97
+ * // => ['a', 2, 3]
98
+ * type List = Merge<{ list: number[] }, { list: string[] }>;
99
+ * // => { list: Array<string | number> }
100
+ *
101
+ * @example
102
+ * // Values that are not plain objects use the second value's type.
103
+ * type Result = Merge<{ createdAt: Date; label: string }, { createdAt: string; label: 'a' | 'b' }>;
104
+ * // => { createdAt: string; label: 'a' | 'b' }
105
+ *
106
+ * @example
107
+ * // A nullable value in the first object disappears when the second object has a value.
108
+ * type Result = Merge<{ retry?: { count: number }; tags: string[] | null }, { retry: { count: number }; tags: string[] }>;
109
+ * // => { retry: { count: number }; tags: string[] }
43
110
  */
44
111
  type Merge<T, S> = undefined extends S ? T | MergeDefined<T, Exclude<S, undefined>> : MergeDefined<T, S>;
45
112
  /**
@@ -47,12 +114,19 @@ type Merge<T, S> = undefined extends S ? T | MergeDefined<T, Exclude<S, undefine
47
114
  * or an array. The source value replaces the target value instead.
48
115
  */
49
116
  type NonMergeable = ((...args: any[]) => unknown) | Date | RegExp | Error | Promise<unknown> | ReadonlyMap<unknown, unknown> | ReadonlySet<unknown> | WeakMap<object, unknown> | WeakSet<object>;
50
- type MergeDefined<T, S> = S extends readonly unknown[] ? (T extends readonly unknown[] ? MergeArrays<T, S> : T extends NonMergeable ? S : T extends object ? T & S : S) : S extends NonMergeable ? S : S extends object ? (T extends readonly unknown[] ? T & S : T extends NonMergeable ? S : T extends object ? MergeRecords<T, S> : S) : S;
117
+ /**
118
+ * `true` when `T` is a plain object type that `merge` recurses into.
119
+ * Primitives are excluded explicitly because an intersection like
120
+ * `string & {}` satisfies `extends object` even though it is a string at
121
+ * runtime.
122
+ */
123
+ type IsPlainRecord<T> = T extends Primitive ? false : T extends readonly unknown[] ? false : T extends NonMergeable ? false : T extends object ? true : false;
124
+ type MergeDefined<T, S> = IsEqual<T, S> extends true ? T : IsAny<T> extends true ? any : IsAny<S> extends true ? any : IsUnknown<T> extends true ? S : [T] extends [never] ? S : [S] extends [never] ? T : MergeEach<T, S>;
125
+ type MergeEach<T, S> = S extends unknown ? (T extends unknown ? MergePair<T, S> : never) : never;
126
+ type MergePair<T, S> = IsPlainRecord<S> extends true ? (IsPlainRecord<T> extends true ? CollapseInto<MergeRecords<T, S>, S> : T extends readonly unknown[] ? T & S : S) : S extends readonly unknown[] ? (IsPlainRecord<T> extends true ? T & S : T extends readonly unknown[] ? MergeArrays<T, S> : S) : S;
51
127
  type MergeArrays<T extends readonly unknown[], S extends readonly unknown[]> = T extends readonly [] ? S : S extends readonly [] ? T : T extends readonly [infer TH, ...infer TR] ? S extends readonly [infer SH, ...infer SR] ? [Merge<TH, SH>, ...MergeArrays<TR, SR>] : Array<T[number] | S[number]> : Array<T[number] | S[number]>;
52
- type MergeRecords<T extends object, S extends object> = Simplify<Omit<T, keyof S> & Omit<S, keyof T> & { [K in keyof T & keyof S]: Merge<T[K], S[K]>; }>;
53
- //#endregion
54
- //#region node_modules/.pnpm/es-toolkit@1.52.0/node_modules/es-toolkit/dist/object/merge.d.mts
55
- //#region src/object/merge.d.ts
128
+ type CollapseInto<R, S> = IsEqual<R, S> extends true ? S : R;
129
+ type MergeRecords<T, S> = Simplify<Omit<T, keyof S> & Omit<S, keyof T> & { [K in keyof T & keyof S]: Merge<T[K], S[K]>; }>;
56
130
  /**
57
131
  * Merges the properties of the source object into the target object.
58
132
  *
@@ -93,7 +167,5 @@ type MergeRecords<T extends object, S extends object> = Simplify<Omit<T, keyof S
93
167
  * console.log(result);
94
168
  * // Output: { a: [1, 2, 3] }
95
169
  */
96
- declare function merge<T extends Record<PropertyKey, any>, S extends Record<PropertyKey, any>>(target: T, source: S): Merge<T, S>;
97
- //#endregion
98
- export { merge };
99
- //# sourceMappingURL=utils.d.ts.map
170
+ export declare function merge<T extends Record<PropertyKey, any>, S extends Record<PropertyKey, any>>(target: T, source: S): Merge<T, S>;
171
+ export {};
package/dist/utils.js CHANGED
@@ -1,4 +1,4 @@
1
- //#region node_modules/.pnpm/es-toolkit@1.52.0/node_modules/es-toolkit/dist/predicate/isPlainObject.mjs
1
+ // node_modules/.pnpm/es-toolkit@1.53.2/node_modules/es-toolkit/dist/predicate/isPlainObject.mjs
2
2
  /**
3
3
  * Checks if a given value is a plain object.
4
4
  *
@@ -47,8 +47,7 @@ function isPlainObject(value) {
47
47
  if (!(proto === null || proto === Object.prototype || Object.getPrototypeOf(proto) === null)) return false;
48
48
  return Object.prototype.toString.call(value) === "[object Object]";
49
49
  }
50
- //#endregion
51
- //#region node_modules/.pnpm/es-toolkit@1.52.0/node_modules/es-toolkit/dist/_internal/isMergeableValue.mjs
50
+ // node_modules/.pnpm/es-toolkit@1.53.2/node_modules/es-toolkit/dist/_internal/isMergeableValue.mjs
52
51
  /**
53
52
  * Checks if a value can be deeply merged into, i.e. it is a plain object or an array.
54
53
  *
@@ -62,12 +61,11 @@ function isPlainObject(value) {
62
61
  function isMergeableValue(value) {
63
62
  return isPlainObject(value) || Array.isArray(value);
64
63
  }
65
- //#endregion
66
- //#region node_modules/.pnpm/es-toolkit@1.52.0/node_modules/es-toolkit/dist/_internal/isUnsafeProperty.mjs
64
+ // node_modules/.pnpm/es-toolkit@1.53.2/node_modules/es-toolkit/dist/_internal/isUnsafeProperty.mjs
67
65
  /**
68
66
  * Checks if a property key is unsafe to access or copy directly.
69
67
  *
70
- * This function is used in functions like `get`, `unset`, and `merge` to prevent
68
+ * This function is used in functions like `get` and `merge` to prevent
71
69
  * prototype pollution attacks by identifying `__proto__`, which modifies the object's
72
70
  * prototype chain. `constructor` and `prototype` stay accessible here because lodash
73
71
  * keeps reads of them unrestricted; write paths use `isUnsafeToWriteProperty` instead,
@@ -80,8 +78,7 @@ function isMergeableValue(value) {
80
78
  function isUnsafeProperty(key) {
81
79
  return key === "__proto__";
82
80
  }
83
- //#endregion
84
- //#region node_modules/.pnpm/es-toolkit@1.52.0/node_modules/es-toolkit/dist/object/merge.mjs
81
+ // node_modules/.pnpm/es-toolkit@1.53.2/node_modules/es-toolkit/dist/object/merge.mjs
85
82
  function merge(target, source) {
86
83
  const sourceKeys = Object.keys(source);
87
84
  for (let i = 0; i < sourceKeys.length; i++) {
@@ -96,7 +93,6 @@ function merge(target, source) {
96
93
  }
97
94
  return target;
98
95
  }
99
- //#endregion
100
96
  export { merge };
101
97
 
102
98
  //# sourceMappingURL=utils.js.map
package/dist/utils.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"utils.js","names":[],"sources":["../node_modules/.pnpm/es-toolkit@1.52.0/node_modules/es-toolkit/dist/predicate/isPlainObject.mjs","../node_modules/.pnpm/es-toolkit@1.52.0/node_modules/es-toolkit/dist/_internal/isMergeableValue.mjs","../node_modules/.pnpm/es-toolkit@1.52.0/node_modules/es-toolkit/dist/_internal/isUnsafeProperty.mjs","../node_modules/.pnpm/es-toolkit@1.52.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\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"],"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;;;ACZA,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"}
1
+ {"version":3,"file":"utils.js","names":[],"sources":["../node_modules/.pnpm/es-toolkit@1.53.2/node_modules/es-toolkit/dist/predicate/isPlainObject.mjs","../node_modules/.pnpm/es-toolkit@1.53.2/node_modules/es-toolkit/dist/_internal/isMergeableValue.mjs","../node_modules/.pnpm/es-toolkit@1.53.2/node_modules/es-toolkit/dist/_internal/isUnsafeProperty.mjs","../node_modules/.pnpm/es-toolkit@1.53.2/node_modules/es-toolkit/dist/object/merge.mjs"],"sourcesContent":["// 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}\nexport { isPlainObject };\n","import { isPlainObject } from \"../predicate/isPlainObject.mjs\";\n// 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}\nexport { isMergeableValue };\n","// 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` 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}\nexport { isUnsafeProperty };\n","import { isPlainObject } from \"../predicate/isPlainObject.mjs\";\nimport { isMergeableValue } from \"../_internal/isMergeableValue.mjs\";\nimport { isUnsafeProperty } from \"../_internal/isUnsafeProperty.mjs\";\n// src/object/merge.ts\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}\nexport { merge };\n"],"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;;ACZA,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.5",
3
+ "version": "0.2.6",
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.52.0",
31
- "oxfmt": "^0.73.0",
32
- "oxlint": "^1.88.0",
33
- "oxlint-tsgolint": "^7.0.2004",
34
- "tsdown": "^0.23.1",
30
+ "es-toolkit": "^1.53.2",
31
+ "oxfmt": "^0.79.0",
32
+ "oxlint": "^1.94.0",
33
+ "oxlint-tsgolint": "^7.0.2007",
34
+ "tsdown": "^0.23.7",
35
35
  "typescript": "^7.0.2"
36
36
  },
37
37
  "peerDependencies": {
38
- "oxfmt": ">=0.73.0 <1",
39
- "oxlint": "^1.88.0",
40
- "oxlint-tsgolint": "^7.0.2004"
38
+ "oxfmt": ">=0.79.0 <1",
39
+ "oxlint": "^1.94.0",
40
+ "oxlint-tsgolint": "^7.0.2007"
41
41
  },
42
42
  "inlinedDependencies": {
43
- "es-toolkit": "1.52.0"
43
+ "es-toolkit": "1.53.2"
44
44
  },
45
45
  "scripts": {
46
46
  "build": "tsdown",