@2digits/oxlint-config 1.2.3 → 1.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +23 -0
- package/dist/base-BzZfZp_U.mjs +2 -0
- package/dist/base-BzZfZp_U.mjs.map +1 -0
- package/dist/base.d.mts +68 -2
- package/dist/base.d.mts.map +1 -1
- package/dist/base.mjs +1 -1
- package/dist/index.d.mts +139 -6
- package/dist/index.d.mts.map +1 -1
- package/dist/index.mjs +1 -1
- package/dist/index.mjs.map +1 -1
- package/dist/typescript-CkY-3Pw0.mjs.map +1 -1
- package/package.json +4 -3
- package/dist/base-M4dxDhGw.mjs +0 -2
- package/dist/base-M4dxDhGw.mjs.map +0 -1
package/README.md
ADDED
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
# @2digits/oxlint-config
|
|
2
|
+
|
|
3
|
+
The default preset enables `2digits/padding-line-between-statements`: statements require a blank line between them,
|
|
4
|
+
including variable declarations, control flow, and returns. Consecutive imports may stay grouped; existing import
|
|
5
|
+
group spacing is preserved. Run Oxlint with `--fix` to insert missing blank lines.
|
|
6
|
+
|
|
7
|
+
Override the rule through `lint({ rules: { '2digits/padding-line-between-statements': 'off' } })`, or supply your own
|
|
8
|
+
spacing policies in its rule options.
|
|
9
|
+
|
|
10
|
+
The shared preset keeps `capitalized-comments` enabled for ordinary prose, but preserves case-sensitive
|
|
11
|
+
`fallow-ignore` suppression directives, including `fallow-ignore-next-line` and `fallow-ignore-file`.
|
|
12
|
+
The exception matches the directive family at the start of a comment; prose mentioning a directive remains checked.
|
|
13
|
+
|
|
14
|
+
The native autofix regression loads the built default export (`lint()`) without consumer overrides and checks both
|
|
15
|
+
directive spellings byte-for-byte after two autofix passes. It also verifies lowercase prose is reported and fixed,
|
|
16
|
+
already capitalized prose is unchanged, and similarly named prose is still fixed.
|
|
17
|
+
|
|
18
|
+
Verified with the package's native **Oxlint 1.86.0** and Node.js 24.21.0. Vite+ 1.0.0 bundles Oxlint 1.85.0 separately;
|
|
19
|
+
the regression invokes the package's Oxlint CLI directly and removes Vite+'s `VP_VERSION` loader selection and
|
|
20
|
+
`NAPI_RS_NATIVE_LIBRARY_PATH` binary override from its child environment. This verifies comment preservation,
|
|
21
|
+
not Fallow's dead-code analysis.
|
|
22
|
+
|
|
23
|
+
After building the workspace, run the package's tests with `vp run test` from this directory.
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{defineConfig as e}from"oxlint";import{ignorePatterns as t}from"@2digits/constants";import{recommendedRules as n}from"@2digits/oxlint-plugin";const r=e({jsPlugins:[{name:`2digits`,specifier:import.meta.resolve(`@2digits/oxlint-plugin`)}],rules:{...n,"2digits/padding-line-between-statements":[`error`,{blankLine:`always`,prev:`*`,next:`*`},{blankLine:`any`,prev:`import`,next:`import`}]}}),i=e({plugins:[`import`],rules:{"import/consistent-type-specifier-style":void 0,"import/default":`error`,"import/export":`error`,"import/exports-last":void 0,"import/extensions":void 0,"import/first":[`error`,`disable-absolute-first`],"import/group-exports":void 0,"import/max-dependencies":void 0,"import/named":void 0,"import/namespace":`error`,"import/no-absolute-path":`error`,"import/no-amd":`error`,"import/no-anonymous-default-export":`error`,"import/no-commonjs":void 0,"import/no-cycle":`error`,"import/no-default-export":void 0,"import/no-duplicates":`error`,"import/no-dynamic-require":`error`,"import/no-empty-named-blocks":`error`,"import/no-mutable-exports":void 0,"import/no-named-as-default":`error`,"import/no-named-as-default-member":`error`,"import/no-named-default":`error`,"import/no-named-export":void 0,"import/no-namespace":void 0,"import/no-nodejs-modules":void 0,"import/no-relative-parent-imports":void 0,"import/no-self-import":`error`,"import/no-unassigned-import":void 0,"import/no-webpack-loader-syntax":`error`,"import/prefer-default-export":void 0,"import/unambiguous":void 0,"import/newline-after-import":void 0}}),a=e({plugins:[`eslint`],rules:{"accessor-pairs":[`error`,{enforceForClassMembers:!0,setWithoutGet:!0}],"array-callback-return":`error`,"arrow-body-style":[`error`,`as-needed`,{requireReturnForObjectLiteral:!1}],"block-scoped-var":`error`,"capitalized-comments":[`error`,`always`,{ignorePattern:String.raw`^\s*fallow-ignore(?:-|\b)`}],"class-methods-use-this":void 0,"constructor-super":`error`,"default-case":void 0,"default-case-last":`error`,"default-param-last":`error`,"for-direction":`error`,"func-name-matching":void 0,"func-names":[`error`,`always`,{generators:`never`}],"func-style":[`error`,`declaration`,{allowTypeAnnotation:!0}],"getter-return":`error`,"grouped-accessor-pairs":`error`,"guard-for-in":`error`,"id-length":void 0,"init-declarations":void 0,"logical-assignment-operators":[`error`,`always`],"max-classes-per-file":void 0,"max-depth":void 0,"max-lines":void 0,"max-lines-per-function":void 0,"max-nested-callbacks":void 0,"max-params":void 0,"max-statements":void 0,"new-cap":[`error`,{capIsNew:!1,newIsCap:!0,properties:!0}],"no-alert":`error`,"no-array-constructor":`error`,"no-async-promise-executor":`error`,"no-await-in-loop":`error`,"no-bitwise":void 0,"no-caller":`error`,"no-case-declarations":`error`,"no-class-assign":`error`,"no-compare-neg-zero":`error`,"no-cond-assign":[`error`,`always`],"no-console":void 0,"no-const-assign":`error`,"no-constant-binary-expression":`error`,"no-constant-condition":`error`,"no-constructor-return":`error`,"no-continue":void 0,"no-control-regex":`error`,"no-debugger":`error`,"no-delete-var":`error`,"no-div-regex":`error`,"no-dupe-class-members":`error`,"no-dupe-else-if":`error`,"no-dupe-keys":`error`,"no-duplicate-case":`error`,"no-duplicate-imports":[`error`,{allowSeparateTypeImports:!1,includeExports:!1}],"no-else-return":[`error`,{allowElseIf:!1}],"no-empty":[`error`,{allowEmptyCatch:!0}],"no-empty-character-class":`error`,"no-empty-function":void 0,"no-empty-pattern":`error`,"no-empty-static-block":`error`,"no-eq-null":void 0,"no-eval":`error`,"no-ex-assign":`error`,"no-extend-native":`error`,"no-extra-bind":`error`,"no-extra-boolean-cast":`error`,"no-extra-label":`error`,"no-fallthrough":`error`,"no-func-assign":`error`,"no-global-assign":`error`,"no-implicit-coercion":void 0,"no-implicit-globals":[`error`,{lexicalBindings:!0}],"no-implied-eval":`error`,"no-import-assign":`error`,"no-inline-comments":void 0,"no-inner-declarations":void 0,"no-invalid-regexp":`error`,"no-irregular-whitespace":`error`,"no-iterator":`error`,"no-label-var":`error`,"no-labels":[`error`,{allowLoop:!1,allowSwitch:!1}],"no-lone-blocks":`error`,"no-lonely-if":`error`,"no-loop-func":`error`,"no-loss-of-precision":`error`,"no-magic-numbers":void 0,"no-misleading-character-class":`error`,"no-multi-assign":`error`,"no-multi-str":`error`,"no-negated-condition":`error`,"no-nested-ternary":void 0,"no-new":`error`,"no-new-func":`error`,"no-new-native-nonconstructor":`error`,"no-new-wrappers":`error`,"no-nonoctal-decimal-escape":`error`,"no-obj-calls":`error`,"no-object-constructor":`error`,"no-param-reassign":void 0,"no-plusplus":void 0,"no-promise-executor-return":`error`,"no-proto":`error`,"no-prototype-builtins":`error`,"no-redeclare":`off`,"no-regex-spaces":`error`,"no-restricted-exports":void 0,"no-restricted-globals":[`error`,{message:"Use `globalThis` instead.",name:`global`},{message:"Use `globalThis` instead.",name:`self`}],"no-restricted-imports":void 0,"no-restricted-properties":[`error`,{message:"Use `Object.getPrototypeOf` or `Object.setPrototypeOf` instead.",property:`__proto__`},{message:"Use `Object.defineProperty` instead.",property:`__defineGetter__`},{message:"Use `Object.defineProperty` instead.",property:`__defineSetter__`},{message:"Use `Object.getOwnPropertyDescriptor` instead.",property:`__lookupGetter__`},{message:"Use `Object.getOwnPropertyDescriptor` instead.",property:`__lookupSetter__`}],"no-return-assign":`error`,"no-script-url":`error`,"no-self-assign":[`error`,{props:!0}],"no-self-compare":`error`,"no-sequences":`error`,"no-setter-return":`error`,"no-shadow":`off`,"no-shadow-restricted-names":`error`,"no-sparse-arrays":`error`,"no-template-curly-in-string":`error`,"no-ternary":void 0,"no-this-before-super":`error`,"no-throw-literal":`error`,"no-unassigned-vars":`error`,"no-undef":`error`,"no-undefined":void 0,"no-underscore-dangle":void 0,"no-unexpected-multiline":`error`,"no-unmodified-loop-condition":`error`,"no-unneeded-ternary":[`error`,{defaultAssignment:!1}],"no-unreachable":`error`,"no-unreachable-loop":`error`,"no-unsafe-finally":`error`,"no-unsafe-negation":`error`,"no-unsafe-optional-chaining":`error`,"no-unused-expressions":[`error`,{allowShortCircuit:!0,allowTaggedTemplates:!0,allowTernary:!0}],"no-unused-labels":`error`,"no-unused-private-class-members":`error`,"no-unused-vars":[`error`,{args:`none`,caughtErrors:`none`,vars:`all`,argsIgnorePattern:`^_`,ignoreRestSiblings:!0,varsIgnorePattern:`^_`}],"no-use-before-define":void 0,"no-useless-assignment":`off`,"no-useless-backreference":`error`,"no-useless-call":`error`,"no-useless-catch":`error`,"no-useless-computed-key":`error`,"no-useless-concat":`error`,"no-useless-constructor":`error`,"no-useless-escape":`error`,"no-useless-rename":`error`,"no-useless-return":`error`,"no-var":`error`,"no-void":void 0,"no-warning-comments":void 0,"no-with":`error`,"object-shorthand":[`error`,`always`,{avoidQuotes:!0,ignoreConstructors:!1}],"one-var":void 0,"operator-assignment":[`error`,`always`],"prefer-arrow-callback":[`error`,{allowNamedFunctions:!0,allowUnboundThis:!0}],"prefer-const":[`error`,{destructuring:`all`,ignoreReadBeforeAssign:!0}],"prefer-destructuring":`off`,"prefer-exponentiation-operator":`error`,"prefer-named-capture-group":void 0,"prefer-numeric-literals":`error`,"prefer-object-has-own":`error`,"prefer-object-spread":`error`,"prefer-promise-reject-errors":`error`,"prefer-regex-literals":[`error`,{disallowRedundantWrapping:!0}],"prefer-rest-params":`error`,"prefer-spread":`error`,"prefer-template":`error`,"preserve-caught-error":`error`,"require-await":void 0,"require-unicode-regexp":void 0,"require-yield":`error`,"sort-imports":void 0,"sort-keys":void 0,"sort-vars":`error`,"symbol-description":`error`,"unicode-bom":[`error`,`never`],"use-isnan":[`error`,{enforceForIndexOf:!0,enforceForSwitchCase:!0}],"valid-typeof":[`error`,{requireStringLiterals:!0}],"vars-on-top":`error`,complexity:[`error`,{variant:`modified`,max:20}],curly:`error`,eqeqeq:[`error`,`smart`],radix:`error`,yoda:[`error`,`never`]}}),o=e({plugins:[`jsdoc`],rules:{"jsdoc/check-access":`error`,"jsdoc/check-property-names":`error`,"jsdoc/check-tag-names":[`error`,{typed:!0,definedTags:[`effect-codegens`,`effect-diagnostics`,`effect-diagnostics-next-line`,`effect-expect-leaking`,`effect-identifier`,`effect-leakable-service`,`effect-schema-codegenerated`]}],"jsdoc/empty-tags":`error`,"jsdoc/implements-on-classes":`error`,"jsdoc/no-defaults":`error`,"jsdoc/require-param":`error`,"jsdoc/require-param-name":`error`,"jsdoc/require-property":`error`,"jsdoc/require-property-description":`error`,"jsdoc/require-property-name":`error`,"jsdoc/require-returns-description":`error`,"jsdoc/require-yields":`error`}}),s=e({plugins:[`node`],rules:{"node/callback-return":`off`,"node/exports-style":[`error`,`module.exports`],"node/global-require":`off`,"node/handle-callback-err":[`error`,`^(err|error)$`],"node/no-exports-assign":`error`,"node/no-mixed-requires":`error`,"node/no-new-require":`error`,"node/no-path-concat":`error`,"node/no-process-env":`off`,"node/no-sync":`off`,"node/no-top-level-await":`off`}}),c=e({plugins:[`oxc`],rules:{"oxc/approx-constant":`error`,"oxc/bad-array-method-on-arguments":`error`,"oxc/bad-bitwise-operator":`error`,"oxc/bad-char-at-comparison":`error`,"oxc/bad-comparison-sequence":`error`,"oxc/bad-match-all-arg":`error`,"oxc/bad-min-max-func":`error`,"oxc/bad-object-literal-comparison":`error`,"oxc/bad-replace-all-arg":`error`,"oxc/branches-sharing-code":`error`,"oxc/const-comparisons":`error`,"oxc/double-comparisons":`error`,"oxc/erasing-op":`error`,"oxc/misrefactored-assign-op":`error`,"oxc/missing-throw":`error`,"oxc/no-accumulating-spread":`error`,"oxc/no-async-await":void 0,"oxc/no-async-endpoint-handlers":void 0,"oxc/no-barrel-file":[`error`,{threshold:1e4}],"oxc/no-const-enum":`error`,"oxc/no-map-spread":void 0,"oxc/no-optional-chaining":void 0,"oxc/no-rest-spread-properties":void 0,"oxc/no-this-in-exported-function":`error`,"oxc/number-arg-out-of-range":`error`,"oxc/only-used-in-recursion":`error`,"oxc/uninvoked-array-callback":`error`}}),l=e({plugins:[`unicorn`],rules:{"unicorn/catch-error-name":`error`,"unicorn/consistent-assert":`error`,"unicorn/consistent-date-clone":`error`,"unicorn/consistent-empty-array-spread":`error`,"unicorn/consistent-existence-index-check":`error`,"unicorn/consistent-function-scoping":`error`,"unicorn/consistent-template-literal-escape":`error`,"unicorn/custom-error-definition":void 0,"unicorn/empty-brace-spaces":`error`,"unicorn/error-message":`error`,"unicorn/escape-case":`error`,"unicorn/explicit-length-check":`error`,"unicorn/explicit-timer-delay":`error`,"unicorn/filename-case":void 0,"unicorn/import-style":`error`,"unicorn/max-nested-calls":void 0,"unicorn/new-for-builtins":`error`,"unicorn/no-abusive-eslint-disable":`error`,"unicorn/no-accessor-recursion":`error`,"unicorn/no-anonymous-default-export":`error`,"unicorn/no-array-callback-reference":void 0,"unicorn/no-array-fill-with-reference-type":`error`,"unicorn/no-array-for-each":`error`,"unicorn/no-array-method-this-argument":`error`,"unicorn/no-array-reduce":`error`,"unicorn/no-array-reverse":`error`,"unicorn/no-array-sort":`error`,"unicorn/no-await-expression-member":`error`,"unicorn/no-await-in-promise-methods":`error`,"unicorn/no-confusing-array-with":`error`,"unicorn/no-console-spaces":`error`,"unicorn/no-document-cookie":`error`,"unicorn/no-empty-file":`error`,"unicorn/no-hex-escape":`error`,"unicorn/no-immediate-mutation":`error`,"unicorn/no-instanceof-array":`error`,"unicorn/no-instanceof-builtins":`error`,"unicorn/no-invalid-fetch-options":`error`,"unicorn/no-invalid-remove-event-listener":`error`,"unicorn/no-length-as-slice-end":`error`,"unicorn/no-lonely-if":`error`,"unicorn/no-magic-array-flat-depth":`error`,"unicorn/no-negated-condition":`error`,"unicorn/no-negation-in-equality-check":`error`,"unicorn/no-nested-ternary":void 0,"unicorn/no-new-array":`error`,"unicorn/no-new-buffer":`error`,"unicorn/no-null":`error`,"unicorn/no-object-as-default-parameter":`error`,"unicorn/no-process-exit":`error`,"unicorn/no-single-promise-in-promise-methods":`error`,"unicorn/no-static-only-class":`error`,"unicorn/no-thenable":`error`,"unicorn/no-this-assignment":`error`,"unicorn/no-typeof-undefined":`error`,"unicorn/no-unnecessary-array-flat-depth":`error`,"unicorn/no-unnecessary-array-splice-count":`error`,"unicorn/no-unnecessary-await":`error`,"unicorn/no-unnecessary-slice-end":`error`,"unicorn/no-unreadable-array-destructuring":`error`,"unicorn/no-unreadable-iife":`error`,"unicorn/no-useless-collection-argument":`error`,"unicorn/no-useless-error-capture-stack-trace":`error`,"unicorn/no-useless-fallback-in-spread":`error`,"unicorn/no-useless-iterator-to-array":`error`,"unicorn/no-useless-length-check":`error`,"unicorn/no-useless-promise-resolve-reject":`error`,"unicorn/no-useless-spread":`error`,"unicorn/no-useless-switch-case":`error`,"unicorn/no-useless-undefined":[`error`,{checkArguments:!1,checkArrowFunctionBody:!1}],"unicorn/no-zero-fractions":`error`,"unicorn/number-literal-case":`error`,"unicorn/numeric-separators-style":`error`,"unicorn/prefer-add-event-listener":`error`,"unicorn/prefer-array-find":`error`,"unicorn/prefer-array-flat":`error`,"unicorn/prefer-array-flat-map":`error`,"unicorn/prefer-array-index-of":`error`,"unicorn/prefer-array-some":`error`,"unicorn/prefer-at":`error`,"unicorn/prefer-bigint-literals":`error`,"unicorn/prefer-blob-reading-methods":`error`,"unicorn/prefer-class-fields":`error`,"unicorn/prefer-classlist-toggle":`error`,"unicorn/prefer-code-point":`error`,"unicorn/prefer-date-now":`error`,"unicorn/prefer-default-parameters":`error`,"unicorn/prefer-dom-node-append":`error`,"unicorn/prefer-dom-node-dataset":`error`,"unicorn/prefer-dom-node-remove":`error`,"unicorn/prefer-dom-node-text-content":`error`,"unicorn/prefer-event-target":`error`,"unicorn/prefer-export-from":`error`,"unicorn/prefer-global-this":`error`,"unicorn/prefer-import-meta-properties":void 0,"unicorn/prefer-includes":`error`,"unicorn/prefer-keyboard-event-key":`error`,"unicorn/prefer-logical-operator-over-ternary":`error`,"unicorn/prefer-math-min-max":`error`,"unicorn/prefer-math-trunc":`error`,"unicorn/prefer-modern-dom-apis":`error`,"unicorn/prefer-modern-math-apis":`error`,"unicorn/prefer-module":void 0,"unicorn/prefer-native-coercion-functions":`error`,"unicorn/prefer-negative-index":`error`,"unicorn/prefer-node-protocol":`error`,"unicorn/prefer-number-coercion":void 0,"unicorn/prefer-number-properties":`error`,"unicorn/prefer-object-from-entries":`error`,"unicorn/prefer-optional-catch-binding":`error`,"unicorn/prefer-prototype-methods":`error`,"unicorn/prefer-query-selector":`error`,"unicorn/prefer-reflect-apply":`error`,"unicorn/prefer-regexp-test":`error`,"unicorn/prefer-response-static-json":`error`,"unicorn/prefer-set-has":`error`,"unicorn/prefer-set-size":`error`,"unicorn/prefer-single-call":`error`,"unicorn/prefer-spread":`error`,"unicorn/prefer-string-raw":`error`,"unicorn/prefer-string-replace-all":`error`,"unicorn/prefer-string-slice":`error`,"unicorn/prefer-string-starts-ends-with":`error`,"unicorn/prefer-string-trim-start-end":`error`,"unicorn/prefer-structured-clone":`error`,"unicorn/prefer-ternary":[`error`,`only-single-line`],"unicorn/prefer-top-level-await":void 0,"unicorn/prefer-type-error":`error`,"unicorn/relative-url-style":`error`,"unicorn/require-array-join-separator":`error`,"unicorn/require-module-attributes":`error`,"unicorn/require-module-specifiers":`error`,"unicorn/require-number-to-fixed-digits-argument":`error`,"unicorn/require-post-message-target-origin":void 0,"unicorn/switch-case-braces":`error`,"unicorn/switch-case-break-position":`error`,"unicorn/text-encoding-identifier-case":`error`,"unicorn/throw-new-error":`off`}}),u=e({jsPlugins:[{name:`zod`,specifier:import.meta.resolve(`eslint-plugin-zod`)}],rules:{"zod/array-style":[`error`,{style:`function`}],"zod/consistent-import":[`error`,{syntax:`namespace`}],"zod/consistent-schema-output-type-style":[`error`,{style:`infer`}],"zod/consistent-schema-var-name":[`warn`,{after:`Schema`}],"zod/no-any-schema":`error`,"zod/no-coerce-boolean":`error`,"zod/no-conflicting-checks":[`error`,{checkConfusingCases:!0,checkImpossibleCases:!0,checkInapplicableChecks:!0}],"zod/no-duplicate-schema-methods":`error`,"zod/no-dynamic-schema-value":`error`,"zod/no-empty-custom-schema":`error`,"zod/no-function-scoped-schema":`error`,"zod/no-native-enum":`error`,"zod/no-number-schema-with-finite":`error`,"zod/no-number-schema-with-int":`error`,"zod/no-number-schema-with-is-finite":`error`,"zod/no-number-schema-with-is-int":`error`,"zod/no-number-schema-with-safe":`error`,"zod/no-number-schema-with-step":`error`,"zod/no-optional-and-default-together":[`warn`,{preferredMethod:`default`}],"zod/no-promise-schema":`error`,"zod/no-schema-with-is-nullable":`error`,"zod/no-schema-with-is-optional":`error`,"zod/no-throw-in-refine":`error`,"zod/no-transform-in-record-key":`error`,"zod/no-unnecessary-readonly":`error`,"zod/prefer-enum-over-literal-union":`error`,"zod/prefer-loose-object":`error`,"zod/prefer-map-set-size-over-min-max":`error`,"zod/prefer-meta":`error`,"zod/prefer-meta-last":`error`,"zod/prefer-strict-object":`error`,"zod/prefer-string-length-over-min-max":`error`,"zod/prefer-string-schema-with-trim":`error`,"zod/prefer-top-level-string-formats":`error`,"zod/prefer-trim-before-string-length-checks":`error`,"zod/prefer-tuple-over-array-length":`error`,"zod/prefer-validate":`error`,"zod/require-brand-type-parameter":`error`,"zod/schema-error-property-style":[`error`,{selector:`Literal,TemplateLiteral`,example:`"This is an error message"`}],"zod/consistent-import-source":void 0,"zod/consistent-object-schema-type":void 0,"zod/no-string-schema-with-uuid":void 0,"zod/no-unknown-schema":void 0,"zod/require-error-message":void 0}}),d=e({env:{browser:!0,node:!0},options:{denyWarnings:!0,reportUnusedDisableDirectives:`deny`},categories:{nursery:`off`,pedantic:`off`,correctness:`off`,perf:`off`,style:`off`,restriction:`off`,suspicious:`off`},extends:[a,l,i,s,c,o,u,r],ignorePatterns:t});export{d as t};
|
|
2
|
+
//# sourceMappingURL=base-BzZfZp_U.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"base-BzZfZp_U.mjs","names":["twoDigitsPluginConfig","defineConfig","recommendedRules","importConfig","javascriptConfig","jsdocConfig","nodeConfig","oxcConfig","unicornConfig","zodConfig","baseConfig"],"sources":["../src/configs/2digits.ts","../src/configs/import.ts","../src/configs/javascript.ts","../src/configs/jsdoc.ts","../src/configs/node.ts","../src/configs/oxc.ts","../src/configs/unicorn.ts","../src/configs/zod.ts","../src/base.ts"],"sourcesContent":["import { defineConfig } from 'oxlint';\n\nimport { recommendedRules } from '@2digits/oxlint-plugin';\n\n/**\n * Shared plugin defaults, including statement spacing with grouped imports.\n */\nexport const twoDigitsPluginConfig = defineConfig({\n jsPlugins: [\n {\n name: '2digits',\n specifier: import.meta.resolve('@2digits/oxlint-plugin'),\n },\n ],\n rules: {\n ...recommendedRules,\n '2digits/padding-line-between-statements': [\n 'error',\n { blankLine: 'always', prev: '*', next: '*' },\n { blankLine: 'any', prev: 'import', next: 'import' },\n ],\n },\n});\n","import { defineConfig } from 'oxlint';\n\nexport const importConfig = defineConfig({\n plugins: ['import'],\n rules: {\n 'import/consistent-type-specifier-style': undefined,\n 'import/default': 'error',\n 'import/export': 'error',\n 'import/exports-last': undefined,\n 'import/extensions': undefined,\n 'import/first': ['error', 'disable-absolute-first'],\n 'import/group-exports': undefined,\n 'import/max-dependencies': undefined,\n 'import/named': undefined,\n 'import/namespace': 'error',\n 'import/no-absolute-path': 'error',\n 'import/no-amd': 'error',\n 'import/no-anonymous-default-export': 'error',\n 'import/no-commonjs': undefined,\n 'import/no-cycle': 'error',\n 'import/no-default-export': undefined,\n 'import/no-duplicates': 'error',\n 'import/no-dynamic-require': 'error',\n 'import/no-empty-named-blocks': 'error',\n 'import/no-mutable-exports': undefined,\n 'import/no-named-as-default': 'error',\n 'import/no-named-as-default-member': 'error',\n 'import/no-named-default': 'error',\n 'import/no-named-export': undefined,\n 'import/no-namespace': undefined,\n 'import/no-nodejs-modules': undefined,\n 'import/no-relative-parent-imports': undefined,\n 'import/no-self-import': 'error',\n 'import/no-unassigned-import': undefined,\n 'import/no-webpack-loader-syntax': 'error',\n 'import/prefer-default-export': undefined,\n 'import/unambiguous': undefined,\n\n 'import/newline-after-import': undefined,\n },\n});\n","import { defineConfig } from 'oxlint';\n\nexport const javascriptConfig = defineConfig({\n plugins: ['eslint'],\n rules: {\n 'accessor-pairs': ['error', { enforceForClassMembers: true, setWithoutGet: true }],\n 'array-callback-return': 'error',\n 'arrow-body-style': ['error', 'as-needed', { requireReturnForObjectLiteral: false }],\n 'block-scoped-var': 'error',\n // Fallow suppression directives are case-sensitive, not prose.\n 'capitalized-comments': ['error', 'always', { ignorePattern: String.raw`^\\s*fallow-ignore(?:-|\\b)` }],\n 'class-methods-use-this': undefined,\n 'constructor-super': 'error',\n 'default-case': undefined,\n 'default-case-last': 'error',\n 'default-param-last': 'error',\n 'for-direction': 'error',\n 'func-name-matching': undefined,\n 'func-names': ['error', 'always', { generators: 'never' }],\n 'func-style': ['error', 'declaration', { allowTypeAnnotation: true }],\n 'getter-return': 'error',\n 'grouped-accessor-pairs': 'error',\n 'guard-for-in': 'error',\n 'id-length': undefined,\n 'init-declarations': undefined,\n 'logical-assignment-operators': ['error', 'always'],\n 'max-classes-per-file': undefined,\n 'max-depth': undefined,\n 'max-lines': undefined,\n 'max-lines-per-function': undefined,\n 'max-nested-callbacks': undefined,\n 'max-params': undefined,\n 'max-statements': undefined,\n 'new-cap': ['error', { capIsNew: false, newIsCap: true, properties: true }],\n 'no-alert': 'error',\n 'no-array-constructor': 'error',\n 'no-async-promise-executor': 'error',\n 'no-await-in-loop': 'error',\n 'no-bitwise': undefined,\n 'no-caller': 'error',\n 'no-case-declarations': 'error',\n 'no-class-assign': 'error',\n 'no-compare-neg-zero': 'error',\n 'no-cond-assign': ['error', 'always'],\n 'no-console': undefined,\n 'no-const-assign': 'error',\n 'no-constant-binary-expression': 'error',\n 'no-constant-condition': 'error',\n 'no-constructor-return': 'error',\n 'no-continue': undefined,\n 'no-control-regex': 'error',\n 'no-debugger': 'error',\n 'no-delete-var': 'error',\n 'no-div-regex': 'error',\n 'no-dupe-class-members': 'error',\n 'no-dupe-else-if': 'error',\n 'no-dupe-keys': 'error',\n 'no-duplicate-case': 'error',\n 'no-duplicate-imports': ['error', { allowSeparateTypeImports: false, includeExports: false }],\n 'no-else-return': ['error', { allowElseIf: false }],\n 'no-empty': ['error', { allowEmptyCatch: true }],\n 'no-empty-character-class': 'error',\n 'no-empty-function': undefined,\n 'no-empty-pattern': 'error',\n 'no-empty-static-block': 'error',\n 'no-eq-null': undefined,\n 'no-eval': 'error',\n 'no-ex-assign': 'error',\n 'no-extend-native': 'error',\n 'no-extra-bind': 'error',\n 'no-extra-boolean-cast': 'error',\n 'no-extra-label': 'error',\n 'no-fallthrough': 'error',\n 'no-func-assign': 'error',\n 'no-global-assign': 'error',\n 'no-implicit-coercion': undefined,\n 'no-implicit-globals': ['error', { lexicalBindings: true }],\n 'no-implied-eval': 'error',\n 'no-import-assign': 'error',\n 'no-inline-comments': undefined,\n 'no-inner-declarations': undefined,\n 'no-invalid-regexp': 'error',\n 'no-irregular-whitespace': 'error',\n 'no-iterator': 'error',\n 'no-label-var': 'error',\n 'no-labels': ['error', { allowLoop: false, allowSwitch: false }],\n 'no-lone-blocks': 'error',\n 'no-lonely-if': 'error',\n 'no-loop-func': 'error',\n 'no-loss-of-precision': 'error',\n 'no-magic-numbers': undefined,\n 'no-misleading-character-class': 'error',\n 'no-multi-assign': 'error',\n 'no-multi-str': 'error',\n 'no-negated-condition': 'error',\n 'no-nested-ternary': undefined,\n 'no-new': 'error',\n 'no-new-func': 'error',\n 'no-new-native-nonconstructor': 'error',\n 'no-new-wrappers': 'error',\n 'no-nonoctal-decimal-escape': 'error',\n 'no-obj-calls': 'error',\n 'no-object-constructor': 'error',\n 'no-param-reassign': undefined,\n 'no-plusplus': undefined,\n 'no-promise-executor-return': 'error',\n 'no-proto': 'error',\n 'no-prototype-builtins': 'error',\n 'no-redeclare': 'off',\n 'no-regex-spaces': 'error',\n 'no-restricted-exports': undefined,\n 'no-restricted-globals': [\n 'error',\n { message: 'Use `globalThis` instead.', name: 'global' },\n { message: 'Use `globalThis` instead.', name: 'self' },\n ],\n 'no-restricted-imports': undefined,\n 'no-restricted-properties': [\n 'error',\n {\n message: 'Use `Object.getPrototypeOf` or `Object.setPrototypeOf` instead.',\n property: '__proto__',\n },\n { message: 'Use `Object.defineProperty` instead.', property: '__defineGetter__' },\n { message: 'Use `Object.defineProperty` instead.', property: '__defineSetter__' },\n { message: 'Use `Object.getOwnPropertyDescriptor` instead.', property: '__lookupGetter__' },\n { message: 'Use `Object.getOwnPropertyDescriptor` instead.', property: '__lookupSetter__' },\n ],\n 'no-return-assign': 'error',\n 'no-script-url': 'error',\n 'no-self-assign': ['error', { props: true }],\n 'no-self-compare': 'error',\n 'no-sequences': 'error',\n 'no-setter-return': 'error',\n 'no-shadow': 'off',\n 'no-shadow-restricted-names': 'error',\n 'no-sparse-arrays': 'error',\n 'no-template-curly-in-string': 'error',\n 'no-ternary': undefined,\n 'no-this-before-super': 'error',\n 'no-throw-literal': 'error',\n 'no-unassigned-vars': 'error',\n 'no-undef': 'error',\n 'no-undefined': undefined,\n 'no-underscore-dangle': undefined,\n 'no-unexpected-multiline': 'error',\n 'no-unmodified-loop-condition': 'error',\n 'no-unneeded-ternary': ['error', { defaultAssignment: false }],\n 'no-unreachable': 'error',\n 'no-unreachable-loop': 'error',\n 'no-unsafe-finally': 'error',\n 'no-unsafe-negation': 'error',\n 'no-unsafe-optional-chaining': 'error',\n 'no-unused-expressions': ['error', { allowShortCircuit: true, allowTaggedTemplates: true, allowTernary: true }],\n 'no-unused-labels': 'error',\n 'no-unused-private-class-members': 'error',\n 'no-unused-vars': [\n 'error',\n {\n args: 'none',\n caughtErrors: 'none',\n vars: 'all',\n argsIgnorePattern: '^_',\n ignoreRestSiblings: true,\n varsIgnorePattern: '^_',\n },\n ],\n 'no-use-before-define': undefined,\n 'no-useless-assignment': 'off',\n 'no-useless-backreference': 'error',\n 'no-useless-call': 'error',\n 'no-useless-catch': 'error',\n 'no-useless-computed-key': 'error',\n 'no-useless-concat': 'error',\n 'no-useless-constructor': 'error',\n 'no-useless-escape': 'error',\n 'no-useless-rename': 'error',\n 'no-useless-return': 'error',\n 'no-var': 'error',\n 'no-void': undefined,\n 'no-warning-comments': undefined,\n 'no-with': 'error',\n 'object-shorthand': ['error', 'always', { avoidQuotes: true, ignoreConstructors: false }],\n 'one-var': undefined,\n 'operator-assignment': ['error', 'always'],\n 'prefer-arrow-callback': ['error', { allowNamedFunctions: true, allowUnboundThis: true }],\n 'prefer-const': ['error', { destructuring: 'all', ignoreReadBeforeAssign: true }],\n 'prefer-destructuring': 'off',\n 'prefer-exponentiation-operator': 'error',\n 'prefer-named-capture-group': undefined,\n 'prefer-numeric-literals': 'error',\n 'prefer-object-has-own': 'error',\n 'prefer-object-spread': 'error',\n 'prefer-promise-reject-errors': 'error',\n 'prefer-regex-literals': ['error', { disallowRedundantWrapping: true }],\n 'prefer-rest-params': 'error',\n 'prefer-spread': 'error',\n 'prefer-template': 'error',\n 'preserve-caught-error': 'error',\n 'require-await': undefined,\n 'require-unicode-regexp': undefined,\n 'require-yield': 'error',\n 'sort-imports': undefined,\n 'sort-keys': undefined,\n 'sort-vars': 'error',\n 'symbol-description': 'error',\n 'unicode-bom': ['error', 'never'],\n 'use-isnan': ['error', { enforceForIndexOf: true, enforceForSwitchCase: true }],\n 'valid-typeof': ['error', { requireStringLiterals: true }],\n 'vars-on-top': 'error',\n complexity: ['error', { variant: 'modified', max: 20 }],\n curly: 'error',\n eqeqeq: ['error', 'smart'],\n radix: 'error',\n yoda: ['error', 'never'],\n },\n});\n","import { defineConfig } from 'oxlint';\n\nexport const jsdocConfig = defineConfig({\n plugins: ['jsdoc'],\n rules: {\n 'jsdoc/check-access': 'error',\n 'jsdoc/check-property-names': 'error',\n 'jsdoc/check-tag-names': [\n 'error',\n {\n typed: true,\n definedTags: [\n 'effect-codegens',\n 'effect-diagnostics',\n 'effect-diagnostics-next-line',\n 'effect-expect-leaking',\n 'effect-identifier',\n 'effect-leakable-service',\n 'effect-schema-codegenerated',\n ],\n },\n ],\n 'jsdoc/empty-tags': 'error',\n 'jsdoc/implements-on-classes': 'error',\n 'jsdoc/no-defaults': 'error',\n 'jsdoc/require-param': 'error',\n 'jsdoc/require-param-name': 'error',\n 'jsdoc/require-property': 'error',\n 'jsdoc/require-property-description': 'error',\n 'jsdoc/require-property-name': 'error',\n 'jsdoc/require-returns-description': 'error',\n 'jsdoc/require-yields': 'error',\n },\n});\n","import { defineConfig } from 'oxlint';\n\nexport const nodeConfig = defineConfig({\n plugins: ['node'],\n rules: {\n 'node/callback-return': 'off',\n 'node/exports-style': ['error', 'module.exports'],\n 'node/global-require': 'off',\n 'node/handle-callback-err': ['error', '^(err|error)$'],\n 'node/no-exports-assign': 'error',\n 'node/no-mixed-requires': 'error',\n 'node/no-new-require': 'error',\n 'node/no-path-concat': 'error',\n 'node/no-process-env': 'off',\n 'node/no-sync': 'off',\n 'node/no-top-level-await': 'off',\n },\n});\n","import { defineConfig } from 'oxlint';\n\nexport const oxcConfig = defineConfig({\n plugins: ['oxc'],\n\n rules: {\n 'oxc/approx-constant': 'error',\n 'oxc/bad-array-method-on-arguments': 'error',\n 'oxc/bad-bitwise-operator': 'error',\n 'oxc/bad-char-at-comparison': 'error',\n 'oxc/bad-comparison-sequence': 'error',\n 'oxc/bad-match-all-arg': 'error',\n 'oxc/bad-min-max-func': 'error',\n 'oxc/bad-object-literal-comparison': 'error',\n 'oxc/bad-replace-all-arg': 'error',\n 'oxc/branches-sharing-code': 'error',\n 'oxc/const-comparisons': 'error',\n 'oxc/double-comparisons': 'error',\n 'oxc/erasing-op': 'error',\n 'oxc/misrefactored-assign-op': 'error',\n 'oxc/missing-throw': 'error',\n 'oxc/no-accumulating-spread': 'error',\n 'oxc/no-async-await': undefined,\n 'oxc/no-async-endpoint-handlers': undefined,\n 'oxc/no-barrel-file': ['error', { threshold: 10_000 }],\n 'oxc/no-const-enum': 'error',\n 'oxc/no-map-spread': undefined,\n 'oxc/no-optional-chaining': undefined,\n 'oxc/no-rest-spread-properties': undefined,\n 'oxc/no-this-in-exported-function': 'error',\n 'oxc/number-arg-out-of-range': 'error',\n 'oxc/only-used-in-recursion': 'error',\n 'oxc/uninvoked-array-callback': 'error',\n },\n});\n","import { defineConfig } from 'oxlint';\n\nexport const unicornConfig = defineConfig({\n plugins: ['unicorn'],\n rules: {\n 'unicorn/catch-error-name': 'error',\n 'unicorn/consistent-assert': 'error',\n 'unicorn/consistent-date-clone': 'error',\n 'unicorn/consistent-empty-array-spread': 'error',\n 'unicorn/consistent-existence-index-check': 'error',\n 'unicorn/consistent-function-scoping': 'error',\n 'unicorn/consistent-template-literal-escape': 'error',\n 'unicorn/custom-error-definition': undefined,\n 'unicorn/empty-brace-spaces': 'error',\n 'unicorn/error-message': 'error',\n 'unicorn/escape-case': 'error',\n 'unicorn/explicit-length-check': 'error',\n 'unicorn/explicit-timer-delay': 'error',\n 'unicorn/filename-case': undefined,\n 'unicorn/import-style': 'error',\n 'unicorn/max-nested-calls': undefined,\n 'unicorn/new-for-builtins': 'error',\n 'unicorn/no-abusive-eslint-disable': 'error',\n 'unicorn/no-accessor-recursion': 'error',\n 'unicorn/no-anonymous-default-export': 'error',\n 'unicorn/no-array-callback-reference': undefined,\n 'unicorn/no-array-fill-with-reference-type': 'error',\n 'unicorn/no-array-for-each': 'error',\n 'unicorn/no-array-method-this-argument': 'error',\n 'unicorn/no-array-reduce': 'error',\n 'unicorn/no-array-reverse': 'error',\n 'unicorn/no-array-sort': 'error',\n 'unicorn/no-await-expression-member': 'error',\n 'unicorn/no-await-in-promise-methods': 'error',\n 'unicorn/no-confusing-array-with': 'error',\n 'unicorn/no-console-spaces': 'error',\n 'unicorn/no-document-cookie': 'error',\n 'unicorn/no-empty-file': 'error',\n 'unicorn/no-hex-escape': 'error',\n 'unicorn/no-immediate-mutation': 'error',\n 'unicorn/no-instanceof-array': 'error',\n 'unicorn/no-instanceof-builtins': 'error',\n 'unicorn/no-invalid-fetch-options': 'error',\n 'unicorn/no-invalid-remove-event-listener': 'error',\n 'unicorn/no-length-as-slice-end': 'error',\n 'unicorn/no-lonely-if': 'error',\n 'unicorn/no-magic-array-flat-depth': 'error',\n 'unicorn/no-negated-condition': 'error',\n 'unicorn/no-negation-in-equality-check': 'error',\n 'unicorn/no-nested-ternary': undefined,\n 'unicorn/no-new-array': 'error',\n 'unicorn/no-new-buffer': 'error',\n 'unicorn/no-null': 'error',\n 'unicorn/no-object-as-default-parameter': 'error',\n 'unicorn/no-process-exit': 'error',\n 'unicorn/no-single-promise-in-promise-methods': 'error',\n 'unicorn/no-static-only-class': 'error',\n 'unicorn/no-thenable': 'error',\n 'unicorn/no-this-assignment': 'error',\n 'unicorn/no-typeof-undefined': 'error',\n 'unicorn/no-unnecessary-array-flat-depth': 'error',\n 'unicorn/no-unnecessary-array-splice-count': 'error',\n 'unicorn/no-unnecessary-await': 'error',\n 'unicorn/no-unnecessary-slice-end': 'error',\n 'unicorn/no-unreadable-array-destructuring': 'error',\n 'unicorn/no-unreadable-iife': 'error',\n 'unicorn/no-useless-collection-argument': 'error',\n 'unicorn/no-useless-error-capture-stack-trace': 'error',\n 'unicorn/no-useless-fallback-in-spread': 'error',\n 'unicorn/no-useless-iterator-to-array': 'error',\n 'unicorn/no-useless-length-check': 'error',\n 'unicorn/no-useless-promise-resolve-reject': 'error',\n 'unicorn/no-useless-spread': 'error',\n 'unicorn/no-useless-switch-case': 'error',\n 'unicorn/no-useless-undefined': ['error', { checkArguments: false, checkArrowFunctionBody: false }],\n 'unicorn/no-zero-fractions': 'error',\n 'unicorn/number-literal-case': 'error',\n 'unicorn/numeric-separators-style': 'error',\n 'unicorn/prefer-add-event-listener': 'error',\n 'unicorn/prefer-array-find': 'error',\n 'unicorn/prefer-array-flat': 'error',\n 'unicorn/prefer-array-flat-map': 'error',\n 'unicorn/prefer-array-index-of': 'error',\n 'unicorn/prefer-array-some': 'error',\n 'unicorn/prefer-at': 'error',\n 'unicorn/prefer-bigint-literals': 'error',\n 'unicorn/prefer-blob-reading-methods': 'error',\n 'unicorn/prefer-class-fields': 'error',\n 'unicorn/prefer-classlist-toggle': 'error',\n 'unicorn/prefer-code-point': 'error',\n 'unicorn/prefer-date-now': 'error',\n 'unicorn/prefer-default-parameters': 'error',\n 'unicorn/prefer-dom-node-append': 'error',\n 'unicorn/prefer-dom-node-dataset': 'error',\n 'unicorn/prefer-dom-node-remove': 'error',\n 'unicorn/prefer-dom-node-text-content': 'error',\n 'unicorn/prefer-event-target': 'error',\n 'unicorn/prefer-export-from': 'error',\n 'unicorn/prefer-global-this': 'error',\n 'unicorn/prefer-import-meta-properties': undefined,\n 'unicorn/prefer-includes': 'error',\n 'unicorn/prefer-keyboard-event-key': 'error',\n 'unicorn/prefer-logical-operator-over-ternary': 'error',\n 'unicorn/prefer-math-min-max': 'error',\n 'unicorn/prefer-math-trunc': 'error',\n 'unicorn/prefer-modern-dom-apis': 'error',\n 'unicorn/prefer-modern-math-apis': 'error',\n 'unicorn/prefer-module': undefined,\n 'unicorn/prefer-native-coercion-functions': 'error',\n 'unicorn/prefer-negative-index': 'error',\n 'unicorn/prefer-node-protocol': 'error',\n 'unicorn/prefer-number-coercion': undefined,\n 'unicorn/prefer-number-properties': 'error',\n 'unicorn/prefer-object-from-entries': 'error',\n 'unicorn/prefer-optional-catch-binding': 'error',\n 'unicorn/prefer-prototype-methods': 'error',\n 'unicorn/prefer-query-selector': 'error',\n 'unicorn/prefer-reflect-apply': 'error',\n 'unicorn/prefer-regexp-test': 'error',\n 'unicorn/prefer-response-static-json': 'error',\n 'unicorn/prefer-set-has': 'error',\n 'unicorn/prefer-set-size': 'error',\n 'unicorn/prefer-single-call': 'error',\n 'unicorn/prefer-spread': 'error',\n 'unicorn/prefer-string-raw': 'error',\n 'unicorn/prefer-string-replace-all': 'error',\n 'unicorn/prefer-string-slice': 'error',\n 'unicorn/prefer-string-starts-ends-with': 'error',\n 'unicorn/prefer-string-trim-start-end': 'error',\n 'unicorn/prefer-structured-clone': 'error',\n 'unicorn/prefer-ternary': ['error', 'only-single-line'],\n 'unicorn/prefer-top-level-await': undefined,\n 'unicorn/prefer-type-error': 'error',\n 'unicorn/relative-url-style': 'error',\n 'unicorn/require-array-join-separator': 'error',\n 'unicorn/require-module-attributes': 'error',\n 'unicorn/require-module-specifiers': 'error',\n 'unicorn/require-number-to-fixed-digits-argument': 'error',\n 'unicorn/require-post-message-target-origin': undefined,\n 'unicorn/switch-case-braces': 'error',\n 'unicorn/switch-case-break-position': 'error',\n 'unicorn/text-encoding-identifier-case': 'error',\n 'unicorn/throw-new-error': 'off',\n },\n});\n","import { defineConfig } from 'oxlint';\n\nexport const zodConfig = defineConfig({\n jsPlugins: [\n {\n name: 'zod',\n specifier: import.meta.resolve('eslint-plugin-zod'),\n },\n ],\n rules: {\n 'zod/array-style': ['error', { style: 'function' }],\n 'zod/consistent-import': ['error', { syntax: 'namespace' }],\n 'zod/consistent-schema-output-type-style': ['error', { style: 'infer' }],\n 'zod/consistent-schema-var-name': ['warn', { after: 'Schema' }],\n 'zod/no-any-schema': 'error',\n 'zod/no-coerce-boolean': 'error',\n 'zod/no-conflicting-checks': [\n 'error',\n { checkConfusingCases: true, checkImpossibleCases: true, checkInapplicableChecks: true },\n ],\n 'zod/no-duplicate-schema-methods': 'error',\n 'zod/no-dynamic-schema-value': 'error',\n 'zod/no-empty-custom-schema': 'error',\n 'zod/no-function-scoped-schema': 'error',\n 'zod/no-native-enum': 'error',\n 'zod/no-number-schema-with-finite': 'error',\n 'zod/no-number-schema-with-int': 'error',\n 'zod/no-number-schema-with-is-finite': 'error',\n 'zod/no-number-schema-with-is-int': 'error',\n 'zod/no-number-schema-with-safe': 'error',\n 'zod/no-number-schema-with-step': 'error',\n 'zod/no-optional-and-default-together': ['warn', { preferredMethod: 'default' }],\n 'zod/no-promise-schema': 'error',\n 'zod/no-schema-with-is-nullable': 'error',\n 'zod/no-schema-with-is-optional': 'error',\n 'zod/no-throw-in-refine': 'error',\n 'zod/no-transform-in-record-key': 'error',\n 'zod/no-unnecessary-readonly': 'error',\n 'zod/prefer-enum-over-literal-union': 'error',\n 'zod/prefer-loose-object': 'error',\n 'zod/prefer-map-set-size-over-min-max': 'error',\n 'zod/prefer-meta': 'error',\n 'zod/prefer-meta-last': 'error',\n 'zod/prefer-strict-object': 'error',\n 'zod/prefer-string-length-over-min-max': 'error',\n 'zod/prefer-string-schema-with-trim': 'error',\n 'zod/prefer-top-level-string-formats': 'error',\n 'zod/prefer-trim-before-string-length-checks': 'error',\n 'zod/prefer-tuple-over-array-length': 'error',\n 'zod/prefer-validate': 'error',\n 'zod/require-brand-type-parameter': 'error',\n 'zod/schema-error-property-style': [\n 'error',\n { selector: 'Literal,TemplateLiteral', example: `\"This is an error message\"` },\n ],\n\n 'zod/consistent-import-source': undefined,\n 'zod/consistent-object-schema-type': undefined,\n 'zod/no-string-schema-with-uuid': undefined,\n 'zod/no-unknown-schema': undefined,\n 'zod/require-error-message': undefined,\n },\n});\n","import { defineConfig } from 'oxlint';\n\nimport { ignorePatterns } from '@2digits/constants';\n\nimport { twoDigitsPluginConfig } from './configs/2digits';\nimport { importConfig } from './configs/import';\nimport { javascriptConfig } from './configs/javascript';\nimport { jsdocConfig } from './configs/jsdoc';\nimport { nodeConfig } from './configs/node';\nimport { oxcConfig } from './configs/oxc';\nimport { unicornConfig } from './configs/unicorn';\nimport { zodConfig } from './configs/zod';\n\nexport const baseConfig = defineConfig({\n env: {\n browser: true,\n node: true,\n },\n options: {\n denyWarnings: true,\n reportUnusedDisableDirectives: 'deny',\n },\n categories: {\n nursery: 'off',\n pedantic: 'off',\n correctness: 'off',\n perf: 'off',\n style: 'off',\n restriction: 'off',\n suspicious: 'off',\n },\n extends: [\n javascriptConfig,\n unicornConfig,\n importConfig,\n nodeConfig,\n oxcConfig,\n jsdocConfig,\n zodConfig,\n twoDigitsPluginConfig,\n ],\n ignorePatterns,\n});\n"],"mappings":"oJAO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T,EAAa,CACrC,IAAK,CACH,QAAS,GACT,KAAM,EACR,EACA,QAAS,CACP,aAAc,GACd,8BAA+B,MACjC,EACA,WAAY,CACV,QAAS,MACT,SAAU,MACV,YAAa,MACb,KAAM,MACN,MAAO,MACP,YAAa,MACb,WAAY,KACd,EACA,QAAS,CACPG,EACAI,EACAL,EACAG,EACAC,EACAF,EACAI,EACAT,CACF,EACA,gBACF,CAAC"}
|
package/dist/base.d.mts
CHANGED
|
@@ -22,7 +22,71 @@ export declare const baseConfig: {
|
|
|
22
22
|
name: string;
|
|
23
23
|
specifier: string;
|
|
24
24
|
}[];
|
|
25
|
-
rules:
|
|
25
|
+
rules: {
|
|
26
|
+
'2digits/padding-line-between-statements': ["error", {
|
|
27
|
+
blankLine: "always";
|
|
28
|
+
prev: "*";
|
|
29
|
+
next: "*";
|
|
30
|
+
}, {
|
|
31
|
+
blankLine: "any";
|
|
32
|
+
prev: "import";
|
|
33
|
+
next: "import";
|
|
34
|
+
}];
|
|
35
|
+
"2digits/alchemy-no-cloudflare-init-finalizer"?: "error" | undefined;
|
|
36
|
+
"2digits/alchemy-no-deprecated-docker-constraints"?: "error" | undefined;
|
|
37
|
+
"2digits/alchemy-no-deprecated-resource"?: "error" | undefined;
|
|
38
|
+
"2digits/alchemy-no-plaintext-github-secret"?: "error" | undefined;
|
|
39
|
+
"2digits/alchemy-no-removed-config-api"?: "error" | undefined;
|
|
40
|
+
"2digits/alchemy-no-reserved-eventbridge-default-name"?: "error" | undefined;
|
|
41
|
+
"2digits/alchemy-no-runtime-config"?: "error" | undefined;
|
|
42
|
+
"2digits/alchemy-no-v1-import"?: "error" | undefined;
|
|
43
|
+
"2digits/alchemy-no-v1-worker-properties"?: "error" | undefined;
|
|
44
|
+
"2digits/avoid-data-tagged-error"?: "error" | undefined;
|
|
45
|
+
"2digits/ban-error-string"?: "error" | undefined;
|
|
46
|
+
"2digits/cors-credentials-with-wildcard"?: "error" | undefined;
|
|
47
|
+
"2digits/dual-numeric-arity-with-optional-parameter"?: "error" | undefined;
|
|
48
|
+
"2digits/effect-promise-vs-trypromise"?: "error" | undefined;
|
|
49
|
+
"2digits/no-already-started-promise"?: "error" | undefined;
|
|
50
|
+
"2digits/no-async-effect-try"?: "error" | undefined;
|
|
51
|
+
"2digits/no-discarded-run-promise"?: "error" | undefined;
|
|
52
|
+
"2digits/no-discarded-schema-checks"?: "error" | undefined;
|
|
53
|
+
"2digits/no-effect-alchemy-barrel-imports"?: "error" | undefined;
|
|
54
|
+
"2digits/no-empty-effect-callback"?: "error" | undefined;
|
|
55
|
+
"2digits/no-empty-schema-struct"?: "error" | undefined;
|
|
56
|
+
"2digits/no-function-config-default"?: "error" | undefined;
|
|
57
|
+
"2digits/no-hash-as-identity"?: "error" | undefined;
|
|
58
|
+
"2digits/no-logging-in-catch"?: "error" | undefined;
|
|
59
|
+
"2digits/no-manual-effect-error-tag"?: "error" | undefined;
|
|
60
|
+
"2digits/no-manual-tag-comparison"?: "error" | undefined;
|
|
61
|
+
"2digits/no-manual-tagged-construction"?: "error" | undefined;
|
|
62
|
+
"2digits/no-multi-shot-effect-callback"?: "error" | undefined;
|
|
63
|
+
"2digits/no-non-json-schema-annotation"?: "error" | undefined;
|
|
64
|
+
"2digits/no-option-of-service"?: "error" | undefined;
|
|
65
|
+
"2digits/no-overwritten-discriminant"?: "error" | undefined;
|
|
66
|
+
"2digits/no-service-constructor-imports"?: "error" | undefined;
|
|
67
|
+
"2digits/no-service-option-get-or-throw"?: "error" | undefined;
|
|
68
|
+
"2digits/no-throw-in-effect-callback"?: "error" | undefined;
|
|
69
|
+
"2digits/no-uppercase-http-api-header"?: "error" | undefined;
|
|
70
|
+
"2digits/no-zero-retry-times"?: "error" | undefined;
|
|
71
|
+
"2digits/prefer-effect-alchemy-namespace-imports"?: "error" | undefined;
|
|
72
|
+
"2digits/prefer-effect-array-sort"?: "error" | undefined;
|
|
73
|
+
"2digits/prefer-effect-datetime"?: "error" | undefined;
|
|
74
|
+
"2digits/prefer-effect-duration"?: "error" | undefined;
|
|
75
|
+
"2digits/prefer-effect-encoding"?: "error" | undefined;
|
|
76
|
+
"2digits/prefer-effect-filesystem"?: "error" | undefined;
|
|
77
|
+
"2digits/prefer-effect-filter"?: "error" | undefined;
|
|
78
|
+
"2digits/prefer-effect-headers"?: "error" | undefined;
|
|
79
|
+
"2digits/prefer-effect-match"?: "error" | undefined;
|
|
80
|
+
"2digits/prefer-effect-path"?: "error" | undefined;
|
|
81
|
+
"2digits/prefer-effect-url"?: "error" | undefined;
|
|
82
|
+
"2digits/prefer-uninterruptible"?: "error" | undefined;
|
|
83
|
+
"2digits/prefer-with-span"?: "error" | undefined;
|
|
84
|
+
"2digits/prefer-yield-now"?: "error" | undefined;
|
|
85
|
+
"2digits/preserve-caught-error"?: "error" | undefined;
|
|
86
|
+
"2digits/require-schema-class-brand"?: "error" | undefined;
|
|
87
|
+
"2digits/require-try-promise-abort-signal"?: "error" | undefined;
|
|
88
|
+
"2digits/throw-in-effect-gen"?: "error" | undefined;
|
|
89
|
+
};
|
|
26
90
|
} | {
|
|
27
91
|
plugins: "import"[];
|
|
28
92
|
rules: {
|
|
@@ -72,7 +136,9 @@ export declare const baseConfig: {
|
|
|
72
136
|
requireReturnForObjectLiteral: false;
|
|
73
137
|
}];
|
|
74
138
|
'block-scoped-var': "error";
|
|
75
|
-
'capitalized-comments': "error"
|
|
139
|
+
'capitalized-comments': ["error", "always", {
|
|
140
|
+
ignorePattern: string;
|
|
141
|
+
}];
|
|
76
142
|
'class-methods-use-this': undefined;
|
|
77
143
|
'constructor-super': "error";
|
|
78
144
|
'default-case': undefined;
|
package/dist/base.d.mts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"base.d.mts","names":[],"sources":["../src/base.ts"],"mappings":";qBAaa
|
|
1
|
+
{"version":3,"file":"base.d.mts","names":[],"sources":["../src/base.ts"],"mappings":";qBAaa"}
|
package/dist/base.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{t as e}from"./base-
|
|
1
|
+
import{t as e}from"./base-BzZfZp_U.mjs";export{e as baseConfig};
|
package/dist/index.d.mts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { AllowWarnDeny, DummyRuleMap, DummyRuleMap as DummyRuleMap$1, DummyRuleMap as RuleMap, OxlintConfig, OxlintConfig as OxlintConfig$1, OxlintOverride } from "oxlint";
|
|
2
|
-
import { RuleName as RuleName$1 } from "@2digits/oxlint-plugin";
|
|
2
|
+
import { PaddingLineOption, RuleName as RuleName$1 } from "@2digits/oxlint-plugin";
|
|
3
3
|
//#region src/rule-options.d.ts
|
|
4
4
|
type RuleWithOptions<T> = AllowWarnDeny | [AllowWarnDeny, T];
|
|
5
|
-
type TwoDigitsRuleMap = Partial<Record<`2digits/${RuleName$1}`, AllowWarnDeny>>;
|
|
5
|
+
type TwoDigitsRuleMap = Partial<Record<`2digits/${Exclude<RuleName$1, 'padding-line-between-statements'>}`, AllowWarnDeny>>;
|
|
6
6
|
interface NoConflictingChecksOptions {
|
|
7
7
|
readonly checkConfusingCases?: boolean;
|
|
8
8
|
readonly checkImpossibleCases?: boolean;
|
|
@@ -15,6 +15,7 @@ interface NoConflictingChecksOptions {
|
|
|
15
15
|
*/
|
|
16
16
|
declare module 'oxlint' {
|
|
17
17
|
interface DummyRuleMap extends TwoDigitsRuleMap {
|
|
18
|
+
'2digits/padding-line-between-statements'?: AllowWarnDeny | [AllowWarnDeny, ...Array<PaddingLineOption>];
|
|
18
19
|
'stylistic/jsx-curly-newline'?: AllowWarnDeny;
|
|
19
20
|
'stylistic/jsx-newline'?: RuleWithOptions<{
|
|
20
21
|
readonly allowMultilines?: boolean;
|
|
@@ -107,7 +108,71 @@ export declare const twoDigits: Omit<{
|
|
|
107
108
|
name: string;
|
|
108
109
|
specifier: string;
|
|
109
110
|
}[];
|
|
110
|
-
rules:
|
|
111
|
+
rules: {
|
|
112
|
+
'2digits/padding-line-between-statements': ["error", {
|
|
113
|
+
blankLine: "always";
|
|
114
|
+
prev: "*";
|
|
115
|
+
next: "*";
|
|
116
|
+
}, {
|
|
117
|
+
blankLine: "any";
|
|
118
|
+
prev: "import";
|
|
119
|
+
next: "import";
|
|
120
|
+
}];
|
|
121
|
+
"2digits/alchemy-no-cloudflare-init-finalizer"?: "error" | undefined;
|
|
122
|
+
"2digits/alchemy-no-deprecated-docker-constraints"?: "error" | undefined;
|
|
123
|
+
"2digits/alchemy-no-deprecated-resource"?: "error" | undefined;
|
|
124
|
+
"2digits/alchemy-no-plaintext-github-secret"?: "error" | undefined;
|
|
125
|
+
"2digits/alchemy-no-removed-config-api"?: "error" | undefined;
|
|
126
|
+
"2digits/alchemy-no-reserved-eventbridge-default-name"?: "error" | undefined;
|
|
127
|
+
"2digits/alchemy-no-runtime-config"?: "error" | undefined;
|
|
128
|
+
"2digits/alchemy-no-v1-import"?: "error" | undefined;
|
|
129
|
+
"2digits/alchemy-no-v1-worker-properties"?: "error" | undefined;
|
|
130
|
+
"2digits/avoid-data-tagged-error"?: "error" | undefined;
|
|
131
|
+
"2digits/ban-error-string"?: "error" | undefined;
|
|
132
|
+
"2digits/cors-credentials-with-wildcard"?: "error" | undefined;
|
|
133
|
+
"2digits/dual-numeric-arity-with-optional-parameter"?: "error" | undefined;
|
|
134
|
+
"2digits/effect-promise-vs-trypromise"?: "error" | undefined;
|
|
135
|
+
"2digits/no-already-started-promise"?: "error" | undefined;
|
|
136
|
+
"2digits/no-async-effect-try"?: "error" | undefined;
|
|
137
|
+
"2digits/no-discarded-run-promise"?: "error" | undefined;
|
|
138
|
+
"2digits/no-discarded-schema-checks"?: "error" | undefined;
|
|
139
|
+
"2digits/no-effect-alchemy-barrel-imports"?: "error" | undefined;
|
|
140
|
+
"2digits/no-empty-effect-callback"?: "error" | undefined;
|
|
141
|
+
"2digits/no-empty-schema-struct"?: "error" | undefined;
|
|
142
|
+
"2digits/no-function-config-default"?: "error" | undefined;
|
|
143
|
+
"2digits/no-hash-as-identity"?: "error" | undefined;
|
|
144
|
+
"2digits/no-logging-in-catch"?: "error" | undefined;
|
|
145
|
+
"2digits/no-manual-effect-error-tag"?: "error" | undefined;
|
|
146
|
+
"2digits/no-manual-tag-comparison"?: "error" | undefined;
|
|
147
|
+
"2digits/no-manual-tagged-construction"?: "error" | undefined;
|
|
148
|
+
"2digits/no-multi-shot-effect-callback"?: "error" | undefined;
|
|
149
|
+
"2digits/no-non-json-schema-annotation"?: "error" | undefined;
|
|
150
|
+
"2digits/no-option-of-service"?: "error" | undefined;
|
|
151
|
+
"2digits/no-overwritten-discriminant"?: "error" | undefined;
|
|
152
|
+
"2digits/no-service-constructor-imports"?: "error" | undefined;
|
|
153
|
+
"2digits/no-service-option-get-or-throw"?: "error" | undefined;
|
|
154
|
+
"2digits/no-throw-in-effect-callback"?: "error" | undefined;
|
|
155
|
+
"2digits/no-uppercase-http-api-header"?: "error" | undefined;
|
|
156
|
+
"2digits/no-zero-retry-times"?: "error" | undefined;
|
|
157
|
+
"2digits/prefer-effect-alchemy-namespace-imports"?: "error" | undefined;
|
|
158
|
+
"2digits/prefer-effect-array-sort"?: "error" | undefined;
|
|
159
|
+
"2digits/prefer-effect-datetime"?: "error" | undefined;
|
|
160
|
+
"2digits/prefer-effect-duration"?: "error" | undefined;
|
|
161
|
+
"2digits/prefer-effect-encoding"?: "error" | undefined;
|
|
162
|
+
"2digits/prefer-effect-filesystem"?: "error" | undefined;
|
|
163
|
+
"2digits/prefer-effect-filter"?: "error" | undefined;
|
|
164
|
+
"2digits/prefer-effect-headers"?: "error" | undefined;
|
|
165
|
+
"2digits/prefer-effect-match"?: "error" | undefined;
|
|
166
|
+
"2digits/prefer-effect-path"?: "error" | undefined;
|
|
167
|
+
"2digits/prefer-effect-url"?: "error" | undefined;
|
|
168
|
+
"2digits/prefer-uninterruptible"?: "error" | undefined;
|
|
169
|
+
"2digits/prefer-with-span"?: "error" | undefined;
|
|
170
|
+
"2digits/prefer-yield-now"?: "error" | undefined;
|
|
171
|
+
"2digits/preserve-caught-error"?: "error" | undefined;
|
|
172
|
+
"2digits/require-schema-class-brand"?: "error" | undefined;
|
|
173
|
+
"2digits/require-try-promise-abort-signal"?: "error" | undefined;
|
|
174
|
+
"2digits/throw-in-effect-gen"?: "error" | undefined;
|
|
175
|
+
};
|
|
111
176
|
} | {
|
|
112
177
|
plugins: "import"[];
|
|
113
178
|
rules: {
|
|
@@ -157,7 +222,9 @@ export declare const twoDigits: Omit<{
|
|
|
157
222
|
requireReturnForObjectLiteral: false;
|
|
158
223
|
}];
|
|
159
224
|
'block-scoped-var': "error";
|
|
160
|
-
'capitalized-comments': "error"
|
|
225
|
+
'capitalized-comments': ["error", "always", {
|
|
226
|
+
ignorePattern: string;
|
|
227
|
+
}];
|
|
161
228
|
'class-methods-use-this': undefined;
|
|
162
229
|
'constructor-super': "error";
|
|
163
230
|
'default-case': undefined;
|
|
@@ -1129,7 +1196,71 @@ export declare const twoDigits: Omit<{
|
|
|
1129
1196
|
name: string;
|
|
1130
1197
|
specifier: string;
|
|
1131
1198
|
}[];
|
|
1132
|
-
rules:
|
|
1199
|
+
rules: {
|
|
1200
|
+
'2digits/padding-line-between-statements': ["error", {
|
|
1201
|
+
blankLine: "always";
|
|
1202
|
+
prev: "*";
|
|
1203
|
+
next: "*";
|
|
1204
|
+
}, {
|
|
1205
|
+
blankLine: "any";
|
|
1206
|
+
prev: "import";
|
|
1207
|
+
next: "import";
|
|
1208
|
+
}];
|
|
1209
|
+
"2digits/alchemy-no-cloudflare-init-finalizer"?: "error" | undefined;
|
|
1210
|
+
"2digits/alchemy-no-deprecated-docker-constraints"?: "error" | undefined;
|
|
1211
|
+
"2digits/alchemy-no-deprecated-resource"?: "error" | undefined;
|
|
1212
|
+
"2digits/alchemy-no-plaintext-github-secret"?: "error" | undefined;
|
|
1213
|
+
"2digits/alchemy-no-removed-config-api"?: "error" | undefined;
|
|
1214
|
+
"2digits/alchemy-no-reserved-eventbridge-default-name"?: "error" | undefined;
|
|
1215
|
+
"2digits/alchemy-no-runtime-config"?: "error" | undefined;
|
|
1216
|
+
"2digits/alchemy-no-v1-import"?: "error" | undefined;
|
|
1217
|
+
"2digits/alchemy-no-v1-worker-properties"?: "error" | undefined;
|
|
1218
|
+
"2digits/avoid-data-tagged-error"?: "error" | undefined;
|
|
1219
|
+
"2digits/ban-error-string"?: "error" | undefined;
|
|
1220
|
+
"2digits/cors-credentials-with-wildcard"?: "error" | undefined;
|
|
1221
|
+
"2digits/dual-numeric-arity-with-optional-parameter"?: "error" | undefined;
|
|
1222
|
+
"2digits/effect-promise-vs-trypromise"?: "error" | undefined;
|
|
1223
|
+
"2digits/no-already-started-promise"?: "error" | undefined;
|
|
1224
|
+
"2digits/no-async-effect-try"?: "error" | undefined;
|
|
1225
|
+
"2digits/no-discarded-run-promise"?: "error" | undefined;
|
|
1226
|
+
"2digits/no-discarded-schema-checks"?: "error" | undefined;
|
|
1227
|
+
"2digits/no-effect-alchemy-barrel-imports"?: "error" | undefined;
|
|
1228
|
+
"2digits/no-empty-effect-callback"?: "error" | undefined;
|
|
1229
|
+
"2digits/no-empty-schema-struct"?: "error" | undefined;
|
|
1230
|
+
"2digits/no-function-config-default"?: "error" | undefined;
|
|
1231
|
+
"2digits/no-hash-as-identity"?: "error" | undefined;
|
|
1232
|
+
"2digits/no-logging-in-catch"?: "error" | undefined;
|
|
1233
|
+
"2digits/no-manual-effect-error-tag"?: "error" | undefined;
|
|
1234
|
+
"2digits/no-manual-tag-comparison"?: "error" | undefined;
|
|
1235
|
+
"2digits/no-manual-tagged-construction"?: "error" | undefined;
|
|
1236
|
+
"2digits/no-multi-shot-effect-callback"?: "error" | undefined;
|
|
1237
|
+
"2digits/no-non-json-schema-annotation"?: "error" | undefined;
|
|
1238
|
+
"2digits/no-option-of-service"?: "error" | undefined;
|
|
1239
|
+
"2digits/no-overwritten-discriminant"?: "error" | undefined;
|
|
1240
|
+
"2digits/no-service-constructor-imports"?: "error" | undefined;
|
|
1241
|
+
"2digits/no-service-option-get-or-throw"?: "error" | undefined;
|
|
1242
|
+
"2digits/no-throw-in-effect-callback"?: "error" | undefined;
|
|
1243
|
+
"2digits/no-uppercase-http-api-header"?: "error" | undefined;
|
|
1244
|
+
"2digits/no-zero-retry-times"?: "error" | undefined;
|
|
1245
|
+
"2digits/prefer-effect-alchemy-namespace-imports"?: "error" | undefined;
|
|
1246
|
+
"2digits/prefer-effect-array-sort"?: "error" | undefined;
|
|
1247
|
+
"2digits/prefer-effect-datetime"?: "error" | undefined;
|
|
1248
|
+
"2digits/prefer-effect-duration"?: "error" | undefined;
|
|
1249
|
+
"2digits/prefer-effect-encoding"?: "error" | undefined;
|
|
1250
|
+
"2digits/prefer-effect-filesystem"?: "error" | undefined;
|
|
1251
|
+
"2digits/prefer-effect-filter"?: "error" | undefined;
|
|
1252
|
+
"2digits/prefer-effect-headers"?: "error" | undefined;
|
|
1253
|
+
"2digits/prefer-effect-match"?: "error" | undefined;
|
|
1254
|
+
"2digits/prefer-effect-path"?: "error" | undefined;
|
|
1255
|
+
"2digits/prefer-effect-url"?: "error" | undefined;
|
|
1256
|
+
"2digits/prefer-uninterruptible"?: "error" | undefined;
|
|
1257
|
+
"2digits/prefer-with-span"?: "error" | undefined;
|
|
1258
|
+
"2digits/prefer-yield-now"?: "error" | undefined;
|
|
1259
|
+
"2digits/preserve-caught-error"?: "error" | undefined;
|
|
1260
|
+
"2digits/require-schema-class-brand"?: "error" | undefined;
|
|
1261
|
+
"2digits/require-try-promise-abort-signal"?: "error" | undefined;
|
|
1262
|
+
"2digits/throw-in-effect-gen"?: "error" | undefined;
|
|
1263
|
+
};
|
|
1133
1264
|
} | {
|
|
1134
1265
|
plugins: "import"[];
|
|
1135
1266
|
rules: {
|
|
@@ -1179,7 +1310,9 @@ export declare const twoDigits: Omit<{
|
|
|
1179
1310
|
requireReturnForObjectLiteral: false;
|
|
1180
1311
|
}];
|
|
1181
1312
|
'block-scoped-var': "error";
|
|
1182
|
-
'capitalized-comments': "error"
|
|
1313
|
+
'capitalized-comments': ["error", "always", {
|
|
1314
|
+
ignorePattern: string;
|
|
1315
|
+
}];
|
|
1183
1316
|
'class-methods-use-this': undefined;
|
|
1184
1317
|
'constructor-super': "error";
|
|
1185
1318
|
'default-case': undefined;
|
package/dist/index.d.mts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.mts","names":["TwoDigitsRuleName","OxlintConfig","DummyRuleMap"],"sources":["../src/rule-options.ts","../src/config.ts","../src/index.ts"],"mappings":";;;KAIK,gBAAgB,KAAK,iBAAiB,eAAe;
|
|
1
|
+
{"version":3,"file":"index.d.mts","names":["TwoDigitsRuleName","OxlintConfig","DummyRuleMap"],"sources":["../src/rule-options.ts","../src/config.ts","../src/index.ts"],"mappings":";;;KAIK,gBAAgB,KAAK,iBAAiB,eAAe;KAErD,mBAAmB,QACtB,kBAAkB,QAAQA,kDAAyD;UAG3E;WACC;WACA;WACA;;;;;;;;YASC,qBAAqB;IAC7B,4CAA4C,iBAAiB,kBAAkB,MAAM;IACrF,gCAAgC;IAChC,0BAA0B;eACf;eACA;;IAEX,oBAAoB;eAA2B;;IAC/C,0BAA0B;eAA2B;;IACrD,iCAAiC;eAA2B,SAAS;;IACrE,sCAAsC;eAC3B,OAAO;;IAElB,4CAA4C;eACjC;;IAEX,mCAAmC;eACxB;eACA;;IAEX,sBAAsB;IACtB,0BAA0B;IAC1B,8BAA8B,gBAAgB;IAC9C,oCAAoC;IACpC,+BAA+B;IAC/B,uBAAuB;IACvB,qCAAqC;IACrC,kCAAkC;IAClC,wCAAwC;IACxC,qCAAqC;IACrC,mCAAmC;IACnC,mCAAmC;IACnC,yCAAyC;eAC9B;;IAEX,0BAA0B;IAC1B,mCAAmC;IACnC,mCAAmC;IACnC,mCAAmC;IACnC,2BAA2B;IAC3B,mCAAmC;IACnC,0BAA0B;IAC1B,gCAAgC;IAChC,uCAAuC;IACvC,4BAA4B;IAC5B,oBAAoB;IACpB,yBAAyB;IACzB,6BAA6B;IAC7B,u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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;UASL,wBAAwB,KAAKC;EAC5C,UAAU,MAAM;EAChB,UAAU,qBAAqB,YAAYA;;;;;;;;;wBAY7B,iBAAiB,SAAS,MAAM,mBAAmB;;;YC1BvD,iBAAiBC"}
|
package/dist/index.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{t as e}from"./base-
|
|
1
|
+
import{t as e}from"./base-BzZfZp_U.mjs";import{t}from"./typescript-CkY-3Pw0.mjs";import{defu as n}from"defu";import{defineConfig as r}from"oxlint";const i=r(n(e,t));function a(...e){let t=i,r=[];for(let{overrides:i=[],...a}of e)t=n(a,t),r.push(...i);return{...t,overrides:[...t.overrides??[],...r]}}export{a as default,a as withTwoDigits,i as twoDigits};
|
|
2
2
|
//# sourceMappingURL=index.mjs.map
|
package/dist/index.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.mjs","names":["baseConfig","twoDigits","defineConfig","defu","typescriptConfig","withTwoDigits","configs","config","extraOverrides","rest","overrides"],"sources":["../src/config.ts"],"sourcesContent":["import { defu } from 'defu';\nimport { defineConfig, type OxlintConfig } from 'oxlint';\n\nimport { baseConfig } from './base';\nimport { typescriptConfig } from './typescript';\n\n/**\n * Complete 2digits Oxlint configuration.\n */\nexport const twoDigits = defineConfig(defu(baseConfig, typescriptConfig));\n\n/**\n * An Oxlint configuration that may enable plugins registered by a binary patch.\n *\n * Oxlint's generated `plugins` union only lists the plugins compiled into the published binary. `effect-tsgo patch\n * --oxlint` adds `effecttsgo` to the binary and rewrites those declarations, so this type keeps such configs authorable\n * from packages whose own Oxlint install is unpatched.\n */\nexport interface TwoDigitsConfig extends Omit<OxlintConfig, 'extends' | 'plugins'> {\n extends?: Array<TwoDigitsConfig>;\n plugins?: Array<'effecttsgo' | NonNullable<OxlintConfig['plugins']>[number]>;\n}\n\ntype Overrides = NonNullable<TwoDigitsConfig['overrides']>;\n\n/**\n * Extend the 2digits defaults with consumer configuration.\n *\n * Consumer configuration takes precedence over the defaults; later configs take precedence over earlier configs.\n *\n * @param configs Consumer configurations to merge into the defaults.\n */\nexport function withTwoDigits(...configs: Array<TwoDigitsConfig>): TwoDigitsConfig {\n let config: TwoDigitsConfig = twoDigits;\n\n /**\n * Oxlint applies `overrides` in array order, so the last matching entry wins. Merging them with `defu` would prepend\n * each config's entries and hand precedence to the earliest config, so they are collected separately.\n */\n const extraOverrides: Overrides = [];\n\n for (const { overrides = [], ...rest } of configs) {\n config = defu(rest, config);\n extraOverrides.push(...overrides);\n }\n\n return { ...config, overrides: [...(config.overrides ?? []), ...extraOverrides] };\n}\n"],"mappings":"mJASA,MAAaC,EAAYC,EAAaC,EAAKH,EAAYI,CAAgB,CAAC,EAuBxE,SAAgBC,EAAc,GAAGC,EAAkD,CACjF,IAAIC,EAA0BN,EAMxBO,EAA4B,CAAC,EAEnC,IAAK,GAAM,CAAE,YAAY,CAAC,EAAG,GAAGC,KAAUH,EACxC,EAASH,EAAKM,EAAMF,CAAM,
|
|
1
|
+
{"version":3,"file":"index.mjs","names":["baseConfig","twoDigits","defineConfig","defu","typescriptConfig","withTwoDigits","configs","config","extraOverrides","rest","overrides"],"sources":["../src/config.ts"],"sourcesContent":["import { defu } from 'defu';\nimport { defineConfig, type OxlintConfig } from 'oxlint';\n\nimport { baseConfig } from './base';\nimport { typescriptConfig } from './typescript';\n\n/**\n * Complete 2digits Oxlint configuration.\n */\nexport const twoDigits = defineConfig(defu(baseConfig, typescriptConfig));\n\n/**\n * An Oxlint configuration that may enable plugins registered by a binary patch.\n *\n * Oxlint's generated `plugins` union only lists the plugins compiled into the published binary. `effect-tsgo patch\n * --oxlint` adds `effecttsgo` to the binary and rewrites those declarations, so this type keeps such configs authorable\n * from packages whose own Oxlint install is unpatched.\n */\nexport interface TwoDigitsConfig extends Omit<OxlintConfig, 'extends' | 'plugins'> {\n extends?: Array<TwoDigitsConfig>;\n plugins?: Array<'effecttsgo' | NonNullable<OxlintConfig['plugins']>[number]>;\n}\n\ntype Overrides = NonNullable<TwoDigitsConfig['overrides']>;\n\n/**\n * Extend the 2digits defaults with consumer configuration.\n *\n * Consumer configuration takes precedence over the defaults; later configs take precedence over earlier configs.\n *\n * @param configs Consumer configurations to merge into the defaults.\n */\nexport function withTwoDigits(...configs: Array<TwoDigitsConfig>): TwoDigitsConfig {\n let config: TwoDigitsConfig = twoDigits;\n\n /**\n * Oxlint applies `overrides` in array order, so the last matching entry wins. Merging them with `defu` would prepend\n * each config's entries and hand precedence to the earliest config, so they are collected separately.\n */\n const extraOverrides: Overrides = [];\n\n for (const { overrides = [], ...rest } of configs) {\n config = defu(rest, config);\n\n extraOverrides.push(...overrides);\n }\n\n return { ...config, overrides: [...(config.overrides ?? []), ...extraOverrides] };\n}\n"],"mappings":"mJASA,MAAaC,EAAYC,EAAaC,EAAKH,EAAYI,CAAgB,CAAC,EAuBxE,SAAgBC,EAAc,GAAGC,EAAkD,CACjF,IAAIC,EAA0BN,EAMxBO,EAA4B,CAAC,EAEnC,IAAK,GAAM,CAAE,YAAY,CAAC,EAAG,GAAGC,KAAUH,EACxC,EAASH,EAAKM,EAAMF,CAAM,EAE1BC,EAAe,KAAK,GAAGE,CAAS,EAGlC,MAAO,CAAE,GAAGH,EAAQ,UAAW,CAAC,GAAIA,EAAO,WAAa,CAAC,EAAI,GAAGC,CAAc,CAAE,CAClF"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"typescript-CkY-3Pw0.mjs","names":["dtsFiles","testFiles","commonJsFiles","overridesConfig","defineConfig","reactConfig","typescriptRulesConfig","vitestConfig","typescriptConfig"],"sources":["../src/globs.ts","../src/configs/overrides.ts","../src/configs/react.ts","../src/configs/typescript.ts","../src/configs/vitest.ts","../src/typescript.ts"],"sourcesContent":["export const dtsFiles = ['**/*.d.ts'] as const;\nexport const testFiles = ['**/*.{test,spec}.ts?(x)'] as const;\nexport const commonJsFiles = ['**/*.js', '**/*.cjs', '**/*.cts'] as const;\n","import { defineConfig } from 'oxlint';\n\nimport { commonJsFiles, dtsFiles, testFiles } from '../globs';\n\nexport const overridesConfig = defineConfig({\n overrides: [\n {\n files: [...dtsFiles],\n rules: {\n 'no-duplicate-imports': 'off',\n 'no-undef': 'off',\n 'no-unused-vars': 'off',\n 'import/unambiguous': 'off',\n },\n },\n {\n files: [...testFiles],\n globals: {\n afterAll: 'readonly',\n afterEach: 'readonly',\n beforeAll: 'readonly',\n beforeEach: 'readonly',\n bench: 'readonly',\n describe: 'readonly',\n expect: 'readonly',\n expectTypeOf: 'readonly',\n it: 'readonly',\n suite: 'readonly',\n test: 'readonly',\n vi: 'readonly',\n },\n rules: {\n 'no-unused-expressions': 'off',\n },\n },\n {\n files: [...commonJsFiles],\n rules: {\n 'typescript/no-import-type-side-effects': 'off',\n },\n },\n ],\n});\n","import { defineConfig } from 'oxlint';\n\nexport const reactConfig = defineConfig({\n options: {\n typeAware: true,\n },\n plugins: ['react', 'react-perf'],\n jsPlugins: [\n {\n name: 'stylistic',\n specifier: import.meta.resolve('@stylistic/eslint-plugin'),\n },\n ],\n rules: {\n 'react/button-has-type': 'error',\n 'react/exhaustive-deps': 'error',\n 'react/function-component-definition': ['error', { namedComponents: 'function-declaration' }],\n 'react/iframe-missing-sandbox': 'error',\n 'react/jsx-key': 'error',\n 'react/jsx-no-comment-textnodes': 'warn',\n 'react/jsx-no-constructed-context-values': 'error',\n 'react/jsx-no-script-url': 'warn',\n 'react/jsx-no-target-blank': 'error',\n 'react/jsx-no-useless-fragment': 'off',\n 'react/no-array-index-key': 'warn',\n 'react/no-children-prop': 'error',\n 'react/no-clone-element': 'warn',\n 'react/no-danger': 'warn',\n 'react/no-danger-with-children': 'error',\n 'react/no-did-mount-set-state': 'warn',\n 'react/no-direct-mutation-state': 'error',\n 'react/no-find-dom-node': 'error',\n 'react/no-namespace': 'error',\n 'react/no-redundant-should-component-update': 'error',\n 'react/no-render-return-value': 'error',\n 'react/no-unsafe': 'warn',\n 'react/no-will-update-set-state': 'warn',\n 'react/rules-of-hooks': 'error',\n 'react/self-closing-comp': 'error',\n 'react/void-dom-elements-no-children': 'error',\n 'react-perf/jsx-no-jsx-as-prop': 'error',\n\n 'stylistic/jsx-curly-newline': 'off',\n 'stylistic/jsx-newline': ['error', { prevent: false }],\n\n 'react/checked-requires-onchange-or-readonly': undefined,\n 'react/display-name': 'off',\n 'react/forbid-component-props': undefined,\n 'react/forbid-dom-props': undefined,\n 'react/forbid-elements': undefined,\n 'react/forward-ref-uses-ref': 'off',\n 'react/hook-use-state': 'error',\n 'react/jsx-boolean-value': 'off',\n 'react/jsx-curly-brace-presence': undefined,\n 'react/jsx-filename-extension': 'off',\n 'react/jsx-fragments': 'off',\n 'react/jsx-handler-names': undefined,\n 'react/jsx-max-depth': undefined,\n 'react/jsx-no-duplicate-props': undefined,\n 'react/jsx-no-literals': undefined,\n 'react/jsx-no-undef': undefined,\n 'react/jsx-pascal-case': 'off',\n 'react/jsx-props-no-spread-multi': undefined,\n 'react/jsx-props-no-spreading': undefined,\n 'react/no-did-update-set-state': 'off',\n 'react/no-is-mounted': undefined,\n 'react/no-multi-comp': undefined,\n 'react/no-object-type-as-default-prop': 'off',\n 'react/no-react-children': undefined,\n 'react/no-set-state': undefined,\n 'react/no-string-refs': 'off',\n 'react/no-this-in-sfc': undefined,\n 'react/no-unescaped-entities': undefined,\n 'react/no-unknown-property': 'off',\n 'react/no-unstable-nested-components': 'off',\n 'react/only-export-components': undefined,\n 'react/prefer-es6-class': undefined,\n 'react/prefer-function-component': undefined,\n 'react/react-in-jsx-scope': undefined,\n 'react/require-render-return': undefined,\n 'react/state-in-constructor': undefined,\n 'react/style-prop-object': undefined,\n 'react/syntax': 'error',\n 'react/todo': 'error',\n 'react/unsupported-syntax': 'error',\n 'react/use-memo': 'error',\n 'react/void-use-memo': 'error',\n\n 'react/capitalized-calls': 'error',\n 'react/error-boundaries': 'error',\n 'react/exhaustive-effect-dependencies': 'error',\n 'react/globals': 'error',\n 'react/hooks': 'error',\n 'react/immutability': 'error',\n 'react/incompatible-library': 'error',\n 'react/invariant': 'error',\n 'react/memo-dependencies': 'error',\n 'react/no-deriving-state-in-effects': 'error',\n 'react/preserve-manual-memoization': 'error',\n 'react/purity': 'error',\n 'react/refs': 'error',\n 'react/rule-suppression': 'error',\n 'react/set-state-in-effect': 'error',\n 'react/set-state-in-render': 'error',\n 'react/static-components': 'error',\n\n 'react-perf/jsx-no-new-array-as-prop': undefined,\n 'react-perf/jsx-no-new-function-as-prop': undefined,\n 'react-perf/jsx-no-new-object-as-prop': undefined,\n },\n});\n","import { defineConfig } from 'oxlint';\n\nexport const typescriptRulesConfig = defineConfig({\n plugins: ['typescript'],\n options: {\n typeAware: true,\n },\n rules: {\n 'typescript/adjacent-overload-signatures': 'error',\n 'typescript/array-type': ['error', { default: 'generic', readonly: 'generic' }],\n 'typescript/await-thenable': 'error',\n 'typescript/ban-ts-comment': ['error', { 'ts-ignore': 'allow-with-description' }],\n 'typescript/ban-tslint-comment': 'error',\n 'typescript/ban-types': undefined,\n 'typescript/class-literal-property-style': 'error',\n 'typescript/consistent-generic-constructors': ['error', 'constructor'],\n 'typescript/consistent-indexed-object-style': ['error', 'record'],\n 'typescript/consistent-return': 'off',\n 'typescript/consistent-type-assertions': ['error', { assertionStyle: 'as' }],\n 'typescript/consistent-type-definitions': ['error', 'interface'],\n 'typescript/consistent-type-exports': ['error'],\n 'typescript/consistent-type-imports': [\n 'error',\n { fixStyle: 'inline-type-imports', prefer: 'type-imports', disallowTypeAnnotations: false },\n ],\n 'typescript/dot-notation': ['error', { allowKeywords: true }],\n 'typescript/explicit-function-return-type': undefined,\n 'typescript/explicit-member-accessibility': undefined,\n 'typescript/explicit-module-boundary-types': undefined,\n 'typescript/method-signature-style': ['error', 'property'],\n 'typescript/no-array-delete': 'error',\n 'typescript/no-base-to-string': 'error',\n 'typescript/no-confusing-non-null-assertion': 'error',\n 'typescript/no-confusing-void-expression': 'off',\n 'typescript/no-deprecated': 'error',\n 'typescript/no-duplicate-enum-values': 'error',\n 'typescript/no-duplicate-type-constituents': 'error',\n 'typescript/no-dynamic-delete': 'error',\n 'typescript/no-empty-interface': ['error', { allowSingleExtends: true }],\n 'typescript/no-empty-object-type': ['error', { allowInterfaces: 'with-single-extends', allowObjectTypes: 'never' }],\n 'typescript/no-explicit-any': ['error'],\n 'typescript/no-extra-non-null-assertion': 'error',\n 'typescript/no-extraneous-class': 'error',\n 'typescript/no-floating-promises': 'error',\n 'typescript/no-for-in-array': 'error',\n 'typescript/no-implied-eval': 'error',\n 'typescript/no-import-type-side-effects': ['error'],\n 'typescript/no-inferrable-types': 'error',\n 'typescript/no-invalid-void-type': 'error',\n 'typescript/no-meaningless-void-operator': 'error',\n 'typescript/no-misused-new': 'error',\n 'typescript/no-misused-promises': 'off',\n 'typescript/no-misused-spread': 'error',\n 'typescript/no-mixed-enums': 'error',\n 'typescript/no-namespace': 'error',\n 'typescript/no-non-null-asserted-nullish-coalescing': 'error',\n 'typescript/no-non-null-asserted-optional-chain': 'error',\n 'typescript/no-non-null-assertion': 'error',\n 'typescript/no-redundant-type-constituents': 'error',\n 'typescript/no-require-imports': 'error',\n 'typescript/no-restricted-types': undefined,\n 'typescript/no-this-alias': 'error',\n 'typescript/no-unnecessary-boolean-literal-compare': 'error',\n 'typescript/no-unnecessary-condition': 'error',\n 'typescript/no-unnecessary-parameter-property-assignment': 'error',\n 'typescript/no-unnecessary-qualifier': 'error',\n 'typescript/no-unnecessary-template-expression': 'error',\n 'typescript/no-unnecessary-type-arguments': 'error',\n 'typescript/no-unnecessary-type-assertion': 'off',\n 'typescript/no-unnecessary-type-constraint': 'error',\n 'typescript/no-unnecessary-type-conversion': 'error',\n 'typescript/no-unnecessary-type-parameters': 'error',\n 'typescript/no-unsafe-argument': 'error',\n 'typescript/no-unsafe-assignment': 'error',\n 'typescript/no-unsafe-call': 'error',\n 'typescript/no-unsafe-declaration-merging': 'error',\n 'typescript/no-unsafe-enum-comparison': 'error',\n 'typescript/no-unsafe-function-type': 'error',\n 'typescript/no-unsafe-member-access': 'error',\n 'typescript/no-unsafe-return': 'error',\n 'typescript/no-unsafe-type-assertion': 'off',\n 'typescript/no-unsafe-unary-minus': 'error',\n 'typescript/no-useless-default-assignment': 'error',\n 'typescript/no-useless-empty-export': 'error',\n 'typescript/no-var-requires': 'error',\n 'typescript/no-wrapper-object-types': 'error',\n 'typescript/non-nullable-type-assertion-style': 'error',\n 'typescript/only-throw-error': 'error',\n 'typescript/parameter-properties': ['error', { prefer: 'class-property' }],\n 'typescript/prefer-as-const': 'error',\n 'typescript/prefer-enum-initializers': 'error',\n 'typescript/prefer-find': 'error',\n 'typescript/prefer-for-of': 'error',\n 'typescript/prefer-function-type': 'error',\n 'typescript/prefer-includes': 'error',\n 'typescript/prefer-literal-enum-member': 'error',\n 'typescript/prefer-namespace-keyword': 'error',\n 'typescript/prefer-nullish-coalescing': 'error',\n 'typescript/prefer-optional-chain': 'error',\n 'typescript/prefer-promise-reject-errors': 'error',\n 'typescript/prefer-readonly': 'error',\n 'typescript/prefer-readonly-parameter-types': 'off',\n 'typescript/prefer-reduce-type-parameter': 'error',\n 'typescript/prefer-regexp-exec': 'error',\n 'typescript/prefer-return-this-type': 'error',\n 'typescript/prefer-string-starts-ends-with': 'error',\n 'typescript/prefer-ts-expect-error': undefined,\n 'typescript/promise-function-async': undefined,\n 'typescript/related-getter-setter-pairs': 'error',\n 'typescript/require-array-sort-compare': 'error',\n 'typescript/require-await': 'error',\n 'typescript/restrict-plus-operands': [\n 'error',\n { allowAny: false, allowBoolean: false, allowNullish: false, allowNumberAndString: false, allowRegExp: false },\n ],\n 'typescript/restrict-template-expressions': ['error', { allowNumber: true }],\n 'typescript/return-await': ['error', 'error-handling-correctness-only'],\n 'typescript/strict-boolean-expressions': undefined,\n 'typescript/strict-void-return': 'off',\n 'typescript/switch-exhaustiveness-check': 'off',\n 'typescript/triple-slash-reference': 'error',\n 'typescript/unbound-method': 'off',\n 'typescript/unified-signatures': 'error',\n 'typescript/use-unknown-in-catch-callback-variable': 'error',\n },\n});\n","import { defineConfig } from 'oxlint';\n\nexport const vitestConfig = defineConfig({\n plugins: ['vitest'],\n\n settings: {\n vitest: { typecheck: true },\n },\n\n rules: {\n 'vitest/consistent-each-for': ['error', { describe: 'for', suite: 'for', it: 'for', test: 'for' }],\n 'vitest/consistent-test-filename': [\n 'error',\n { pattern: String.raw`.*\\.spec\\.[tj]sx?$`, allTestPattern: String.raw`.*\\.(test|spec)\\.[tj]sx?$` },\n ],\n 'vitest/consistent-test-it': ['error', { fn: 'it', withinDescribe: 'it' }],\n 'vitest/consistent-vitest-vi': ['error', { fn: 'vi' }],\n 'vitest/expect-expect': [\n 'error',\n {\n additionalTestBlockFunctions: ['it', 'it.effect', 'it.scoped'],\n assertFunctionNames: ['expect', 'expectTypeOf', 'assert', 'assertType', 'assert*', '*Equal'],\n },\n ],\n 'vitest/hoisted-apis-on-top': 'error',\n 'vitest/max-expects': 'error',\n 'vitest/max-nested-describe': 'error',\n 'vitest/no-alias-methods': 'error',\n 'vitest/no-commented-out-tests': 'error',\n 'vitest/no-conditional-expect': 'error',\n 'vitest/no-conditional-in-test': 'error',\n 'vitest/no-conditional-tests': 'error',\n 'vitest/no-disabled-tests': 'error',\n 'vitest/no-duplicate-hooks': 'error',\n 'vitest/no-focused-tests': 'error',\n 'vitest/no-hooks': undefined,\n 'vitest/no-identical-title': 'error',\n 'vitest/no-import-node-test': 'error',\n 'vitest/no-importing-vitest-globals': undefined,\n 'vitest/no-interpolation-in-snapshots': 'error',\n 'vitest/no-large-snapshots': undefined,\n 'vitest/no-mocks-import': 'error',\n 'vitest/no-restricted-matchers': undefined,\n 'vitest/no-restricted-vi-methods': undefined,\n 'vitest/no-standalone-expect': ['error', { additionalTestBlockFunctions: ['it', 'it.effect', 'it.scoped'] }],\n 'vitest/no-test-prefixes': 'error',\n 'vitest/no-test-return-statement': 'error',\n 'vitest/no-unneeded-async-expect-function': 'error',\n 'vitest/prefer-called-exactly-once-with': 'error',\n 'vitest/prefer-called-once': 'error',\n 'vitest/prefer-called-times': undefined,\n 'vitest/prefer-called-with': 'error',\n 'vitest/prefer-comparison-matcher': 'error',\n 'vitest/prefer-describe-function-title': 'error',\n 'vitest/prefer-each': 'error',\n 'vitest/prefer-equality-matcher': 'error',\n 'vitest/prefer-expect-assertions': undefined,\n 'vitest/prefer-expect-resolves': 'error',\n 'vitest/prefer-expect-type-of': 'error',\n 'vitest/prefer-hooks-in-order': 'error',\n 'vitest/prefer-hooks-on-top': 'error',\n 'vitest/prefer-import-in-mock': 'error',\n 'vitest/prefer-importing-vitest-globals': undefined,\n 'vitest/prefer-lowercase-title': 'error',\n 'vitest/prefer-mock-promise-shorthand': 'error',\n 'vitest/prefer-mock-return-shorthand': 'error',\n 'vitest/prefer-snapshot-hint': ['error', 'always'],\n 'vitest/prefer-spy-on': 'error',\n 'vitest/prefer-strict-boolean-matchers': undefined,\n 'vitest/prefer-strict-equal': 'error',\n 'vitest/prefer-to-be': 'error',\n 'vitest/prefer-to-be-falsy': 'error',\n 'vitest/prefer-to-be-object': 'error',\n 'vitest/prefer-to-be-truthy': 'error',\n 'vitest/prefer-to-contain': 'error',\n 'vitest/prefer-to-have-been-called-times': 'error',\n 'vitest/prefer-to-have-length': 'error',\n 'vitest/prefer-todo': 'error',\n 'vitest/require-awaited-expect-poll': 'error',\n 'vitest/require-hook': undefined,\n 'vitest/require-local-test-context-for-concurrent-snapshots': 'error',\n 'vitest/require-mock-type-parameters': 'error',\n 'vitest/require-test-timeout': undefined,\n 'vitest/require-to-throw-message': 'error',\n 'vitest/require-top-level-describe': 'error',\n 'vitest/valid-describe-callback': 'error',\n 'vitest/valid-expect': 'error',\n 'vitest/valid-expect-in-promise': 'error',\n 'vitest/valid-title': ['error', { ignoreTypeOfDescribeName: true }],\n 'vitest/warn-todo': 'error',\n\n 'vitest/padding-around-after-all-blocks': undefined,\n 'vitest/padding-around-test-blocks': undefined,\n },\n});\n","import { defineConfig } from 'oxlint';\n\nimport { ignorePatterns } from '@2digits/constants';\n\nimport { overridesConfig } from './configs/overrides';\nimport { reactConfig } from './configs/react';\nimport { typescriptRulesConfig } from './configs/typescript';\nimport { vitestConfig } from './configs/vitest';\n\nexport const typescriptConfig = defineConfig({\n options: {\n denyWarnings: true,\n reportUnusedDisableDirectives: 'deny',\n },\n categories: {\n nursery: 'off',\n pedantic: 'off',\n correctness: 'off',\n perf: 'off',\n style: 'off',\n restriction: 'off',\n suspicious: 'off',\n },\n extends: [typescriptRulesConfig, vitestConfig, reactConfig, overridesConfig],\n ignorePatterns,\n});\n"],"mappings":"0FAAA,MAAaA,EAAW,CAAC,WAAW,EACvBC,EAAY,CAAC,yBAAyB,EACtCC,EAAgB,CAAC,UAAW,WAAY,UAAU,ECElDC,EAAkBC,EAAa,CAC1C,UAAW,CACT,CACE,MAAO,CAAC,GAAGJ,CAAQ,EACnB,MAAO,CACL,uBAAwB,MACxB,WAAY,MACZ,iBAAkB,MAClB,qBAAsB,KACxB,CACF,EACA,CACE,MAAO,CAAC,GAAGC,CAAS,EACpB,QAAS,CACP,SAAU,WACV,UAAW,WACX,UAAW,WACX,WAAY,WACZ,MAAO,WACP,SAAU,WACV,OAAQ,WACR,aAAc,WACd,GAAI,WACJ,MAAO,WACP,KAAM,WACN,GAAI,UACN,EACA,MAAO,CACL,wBAAyB,KAC3B,CACF,EACA,CACE,MAAO,CAAC,GAAGC,CAAa,EACxB,MAAO,CACL,yCAA0C,KAC5C,CACF,CACF,CACF,CAAC,ECxCYG,EAAcD,EAAa,CACtC,QAAS,CACP,UAAW,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3Pw0.mjs","names":["dtsFiles","testFiles","commonJsFiles","overridesConfig","defineConfig","reactConfig","typescriptRulesConfig","vitestConfig","typescriptConfig"],"sources":["../src/globs.ts","../src/configs/overrides.ts","../src/configs/react.ts","../src/configs/typescript.ts","../src/configs/vitest.ts","../src/typescript.ts"],"sourcesContent":["export const dtsFiles = ['**/*.d.ts'] as const;\n\nexport const testFiles = ['**/*.{test,spec}.ts?(x)'] as const;\n\nexport const commonJsFiles = ['**/*.js', '**/*.cjs', '**/*.cts'] as const;\n","import { defineConfig } from 'oxlint';\n\nimport { commonJsFiles, dtsFiles, testFiles } from '../globs';\n\nexport const overridesConfig = defineConfig({\n overrides: [\n {\n files: [...dtsFiles],\n rules: {\n 'no-duplicate-imports': 'off',\n 'no-undef': 'off',\n 'no-unused-vars': 'off',\n 'import/unambiguous': 'off',\n },\n },\n {\n files: [...testFiles],\n globals: {\n afterAll: 'readonly',\n afterEach: 'readonly',\n beforeAll: 'readonly',\n beforeEach: 'readonly',\n bench: 'readonly',\n describe: 'readonly',\n expect: 'readonly',\n expectTypeOf: 'readonly',\n it: 'readonly',\n suite: 'readonly',\n test: 'readonly',\n vi: 'readonly',\n },\n rules: {\n 'no-unused-expressions': 'off',\n },\n },\n {\n files: [...commonJsFiles],\n rules: {\n 'typescript/no-import-type-side-effects': 'off',\n },\n },\n ],\n});\n","import { defineConfig } from 'oxlint';\n\nexport const reactConfig = defineConfig({\n options: {\n typeAware: true,\n },\n plugins: ['react', 'react-perf'],\n jsPlugins: [\n {\n name: 'stylistic',\n specifier: import.meta.resolve('@stylistic/eslint-plugin'),\n },\n ],\n rules: {\n 'react/button-has-type': 'error',\n 'react/exhaustive-deps': 'error',\n 'react/function-component-definition': ['error', { namedComponents: 'function-declaration' }],\n 'react/iframe-missing-sandbox': 'error',\n 'react/jsx-key': 'error',\n 'react/jsx-no-comment-textnodes': 'warn',\n 'react/jsx-no-constructed-context-values': 'error',\n 'react/jsx-no-script-url': 'warn',\n 'react/jsx-no-target-blank': 'error',\n 'react/jsx-no-useless-fragment': 'off',\n 'react/no-array-index-key': 'warn',\n 'react/no-children-prop': 'error',\n 'react/no-clone-element': 'warn',\n 'react/no-danger': 'warn',\n 'react/no-danger-with-children': 'error',\n 'react/no-did-mount-set-state': 'warn',\n 'react/no-direct-mutation-state': 'error',\n 'react/no-find-dom-node': 'error',\n 'react/no-namespace': 'error',\n 'react/no-redundant-should-component-update': 'error',\n 'react/no-render-return-value': 'error',\n 'react/no-unsafe': 'warn',\n 'react/no-will-update-set-state': 'warn',\n 'react/rules-of-hooks': 'error',\n 'react/self-closing-comp': 'error',\n 'react/void-dom-elements-no-children': 'error',\n 'react-perf/jsx-no-jsx-as-prop': 'error',\n\n 'stylistic/jsx-curly-newline': 'off',\n 'stylistic/jsx-newline': ['error', { prevent: false }],\n\n 'react/checked-requires-onchange-or-readonly': undefined,\n 'react/display-name': 'off',\n 'react/forbid-component-props': undefined,\n 'react/forbid-dom-props': undefined,\n 'react/forbid-elements': undefined,\n 'react/forward-ref-uses-ref': 'off',\n 'react/hook-use-state': 'error',\n 'react/jsx-boolean-value': 'off',\n 'react/jsx-curly-brace-presence': undefined,\n 'react/jsx-filename-extension': 'off',\n 'react/jsx-fragments': 'off',\n 'react/jsx-handler-names': undefined,\n 'react/jsx-max-depth': undefined,\n 'react/jsx-no-duplicate-props': undefined,\n 'react/jsx-no-literals': undefined,\n 'react/jsx-no-undef': undefined,\n 'react/jsx-pascal-case': 'off',\n 'react/jsx-props-no-spread-multi': undefined,\n 'react/jsx-props-no-spreading': undefined,\n 'react/no-did-update-set-state': 'off',\n 'react/no-is-mounted': undefined,\n 'react/no-multi-comp': undefined,\n 'react/no-object-type-as-default-prop': 'off',\n 'react/no-react-children': undefined,\n 'react/no-set-state': undefined,\n 'react/no-string-refs': 'off',\n 'react/no-this-in-sfc': undefined,\n 'react/no-unescaped-entities': undefined,\n 'react/no-unknown-property': 'off',\n 'react/no-unstable-nested-components': 'off',\n 'react/only-export-components': undefined,\n 'react/prefer-es6-class': undefined,\n 'react/prefer-function-component': undefined,\n 'react/react-in-jsx-scope': undefined,\n 'react/require-render-return': undefined,\n 'react/state-in-constructor': undefined,\n 'react/style-prop-object': undefined,\n 'react/syntax': 'error',\n 'react/todo': 'error',\n 'react/unsupported-syntax': 'error',\n 'react/use-memo': 'error',\n 'react/void-use-memo': 'error',\n\n 'react/capitalized-calls': 'error',\n 'react/error-boundaries': 'error',\n 'react/exhaustive-effect-dependencies': 'error',\n 'react/globals': 'error',\n 'react/hooks': 'error',\n 'react/immutability': 'error',\n 'react/incompatible-library': 'error',\n 'react/invariant': 'error',\n 'react/memo-dependencies': 'error',\n 'react/no-deriving-state-in-effects': 'error',\n 'react/preserve-manual-memoization': 'error',\n 'react/purity': 'error',\n 'react/refs': 'error',\n 'react/rule-suppression': 'error',\n 'react/set-state-in-effect': 'error',\n 'react/set-state-in-render': 'error',\n 'react/static-components': 'error',\n\n 'react-perf/jsx-no-new-array-as-prop': undefined,\n 'react-perf/jsx-no-new-function-as-prop': undefined,\n 'react-perf/jsx-no-new-object-as-prop': undefined,\n },\n});\n","import { defineConfig } from 'oxlint';\n\nexport const typescriptRulesConfig = defineConfig({\n plugins: ['typescript'],\n options: {\n typeAware: true,\n },\n rules: {\n 'typescript/adjacent-overload-signatures': 'error',\n 'typescript/array-type': ['error', { default: 'generic', readonly: 'generic' }],\n 'typescript/await-thenable': 'error',\n 'typescript/ban-ts-comment': ['error', { 'ts-ignore': 'allow-with-description' }],\n 'typescript/ban-tslint-comment': 'error',\n 'typescript/ban-types': undefined,\n 'typescript/class-literal-property-style': 'error',\n 'typescript/consistent-generic-constructors': ['error', 'constructor'],\n 'typescript/consistent-indexed-object-style': ['error', 'record'],\n 'typescript/consistent-return': 'off',\n 'typescript/consistent-type-assertions': ['error', { assertionStyle: 'as' }],\n 'typescript/consistent-type-definitions': ['error', 'interface'],\n 'typescript/consistent-type-exports': ['error'],\n 'typescript/consistent-type-imports': [\n 'error',\n { fixStyle: 'inline-type-imports', prefer: 'type-imports', disallowTypeAnnotations: false },\n ],\n 'typescript/dot-notation': ['error', { allowKeywords: true }],\n 'typescript/explicit-function-return-type': undefined,\n 'typescript/explicit-member-accessibility': undefined,\n 'typescript/explicit-module-boundary-types': undefined,\n 'typescript/method-signature-style': ['error', 'property'],\n 'typescript/no-array-delete': 'error',\n 'typescript/no-base-to-string': 'error',\n 'typescript/no-confusing-non-null-assertion': 'error',\n 'typescript/no-confusing-void-expression': 'off',\n 'typescript/no-deprecated': 'error',\n 'typescript/no-duplicate-enum-values': 'error',\n 'typescript/no-duplicate-type-constituents': 'error',\n 'typescript/no-dynamic-delete': 'error',\n 'typescript/no-empty-interface': ['error', { allowSingleExtends: true }],\n 'typescript/no-empty-object-type': ['error', { allowInterfaces: 'with-single-extends', allowObjectTypes: 'never' }],\n 'typescript/no-explicit-any': ['error'],\n 'typescript/no-extra-non-null-assertion': 'error',\n 'typescript/no-extraneous-class': 'error',\n 'typescript/no-floating-promises': 'error',\n 'typescript/no-for-in-array': 'error',\n 'typescript/no-implied-eval': 'error',\n 'typescript/no-import-type-side-effects': ['error'],\n 'typescript/no-inferrable-types': 'error',\n 'typescript/no-invalid-void-type': 'error',\n 'typescript/no-meaningless-void-operator': 'error',\n 'typescript/no-misused-new': 'error',\n 'typescript/no-misused-promises': 'off',\n 'typescript/no-misused-spread': 'error',\n 'typescript/no-mixed-enums': 'error',\n 'typescript/no-namespace': 'error',\n 'typescript/no-non-null-asserted-nullish-coalescing': 'error',\n 'typescript/no-non-null-asserted-optional-chain': 'error',\n 'typescript/no-non-null-assertion': 'error',\n 'typescript/no-redundant-type-constituents': 'error',\n 'typescript/no-require-imports': 'error',\n 'typescript/no-restricted-types': undefined,\n 'typescript/no-this-alias': 'error',\n 'typescript/no-unnecessary-boolean-literal-compare': 'error',\n 'typescript/no-unnecessary-condition': 'error',\n 'typescript/no-unnecessary-parameter-property-assignment': 'error',\n 'typescript/no-unnecessary-qualifier': 'error',\n 'typescript/no-unnecessary-template-expression': 'error',\n 'typescript/no-unnecessary-type-arguments': 'error',\n 'typescript/no-unnecessary-type-assertion': 'off',\n 'typescript/no-unnecessary-type-constraint': 'error',\n 'typescript/no-unnecessary-type-conversion': 'error',\n 'typescript/no-unnecessary-type-parameters': 'error',\n 'typescript/no-unsafe-argument': 'error',\n 'typescript/no-unsafe-assignment': 'error',\n 'typescript/no-unsafe-call': 'error',\n 'typescript/no-unsafe-declaration-merging': 'error',\n 'typescript/no-unsafe-enum-comparison': 'error',\n 'typescript/no-unsafe-function-type': 'error',\n 'typescript/no-unsafe-member-access': 'error',\n 'typescript/no-unsafe-return': 'error',\n 'typescript/no-unsafe-type-assertion': 'off',\n 'typescript/no-unsafe-unary-minus': 'error',\n 'typescript/no-useless-default-assignment': 'error',\n 'typescript/no-useless-empty-export': 'error',\n 'typescript/no-var-requires': 'error',\n 'typescript/no-wrapper-object-types': 'error',\n 'typescript/non-nullable-type-assertion-style': 'error',\n 'typescript/only-throw-error': 'error',\n 'typescript/parameter-properties': ['error', { prefer: 'class-property' }],\n 'typescript/prefer-as-const': 'error',\n 'typescript/prefer-enum-initializers': 'error',\n 'typescript/prefer-find': 'error',\n 'typescript/prefer-for-of': 'error',\n 'typescript/prefer-function-type': 'error',\n 'typescript/prefer-includes': 'error',\n 'typescript/prefer-literal-enum-member': 'error',\n 'typescript/prefer-namespace-keyword': 'error',\n 'typescript/prefer-nullish-coalescing': 'error',\n 'typescript/prefer-optional-chain': 'error',\n 'typescript/prefer-promise-reject-errors': 'error',\n 'typescript/prefer-readonly': 'error',\n 'typescript/prefer-readonly-parameter-types': 'off',\n 'typescript/prefer-reduce-type-parameter': 'error',\n 'typescript/prefer-regexp-exec': 'error',\n 'typescript/prefer-return-this-type': 'error',\n 'typescript/prefer-string-starts-ends-with': 'error',\n 'typescript/prefer-ts-expect-error': undefined,\n 'typescript/promise-function-async': undefined,\n 'typescript/related-getter-setter-pairs': 'error',\n 'typescript/require-array-sort-compare': 'error',\n 'typescript/require-await': 'error',\n 'typescript/restrict-plus-operands': [\n 'error',\n { allowAny: false, allowBoolean: false, allowNullish: false, allowNumberAndString: false, allowRegExp: false },\n ],\n 'typescript/restrict-template-expressions': ['error', { allowNumber: true }],\n 'typescript/return-await': ['error', 'error-handling-correctness-only'],\n 'typescript/strict-boolean-expressions': undefined,\n 'typescript/strict-void-return': 'off',\n 'typescript/switch-exhaustiveness-check': 'off',\n 'typescript/triple-slash-reference': 'error',\n 'typescript/unbound-method': 'off',\n 'typescript/unified-signatures': 'error',\n 'typescript/use-unknown-in-catch-callback-variable': 'error',\n },\n});\n","import { defineConfig } from 'oxlint';\n\nexport const vitestConfig = defineConfig({\n plugins: ['vitest'],\n\n settings: {\n vitest: { typecheck: true },\n },\n\n rules: {\n 'vitest/consistent-each-for': ['error', { describe: 'for', suite: 'for', it: 'for', test: 'for' }],\n 'vitest/consistent-test-filename': [\n 'error',\n { pattern: String.raw`.*\\.spec\\.[tj]sx?$`, allTestPattern: String.raw`.*\\.(test|spec)\\.[tj]sx?$` },\n ],\n 'vitest/consistent-test-it': ['error', { fn: 'it', withinDescribe: 'it' }],\n 'vitest/consistent-vitest-vi': ['error', { fn: 'vi' }],\n 'vitest/expect-expect': [\n 'error',\n {\n additionalTestBlockFunctions: ['it', 'it.effect', 'it.scoped'],\n assertFunctionNames: ['expect', 'expectTypeOf', 'assert', 'assertType', 'assert*', '*Equal'],\n },\n ],\n 'vitest/hoisted-apis-on-top': 'error',\n 'vitest/max-expects': 'error',\n 'vitest/max-nested-describe': 'error',\n 'vitest/no-alias-methods': 'error',\n 'vitest/no-commented-out-tests': 'error',\n 'vitest/no-conditional-expect': 'error',\n 'vitest/no-conditional-in-test': 'error',\n 'vitest/no-conditional-tests': 'error',\n 'vitest/no-disabled-tests': 'error',\n 'vitest/no-duplicate-hooks': 'error',\n 'vitest/no-focused-tests': 'error',\n 'vitest/no-hooks': undefined,\n 'vitest/no-identical-title': 'error',\n 'vitest/no-import-node-test': 'error',\n 'vitest/no-importing-vitest-globals': undefined,\n 'vitest/no-interpolation-in-snapshots': 'error',\n 'vitest/no-large-snapshots': undefined,\n 'vitest/no-mocks-import': 'error',\n 'vitest/no-restricted-matchers': undefined,\n 'vitest/no-restricted-vi-methods': undefined,\n 'vitest/no-standalone-expect': ['error', { additionalTestBlockFunctions: ['it', 'it.effect', 'it.scoped'] }],\n 'vitest/no-test-prefixes': 'error',\n 'vitest/no-test-return-statement': 'error',\n 'vitest/no-unneeded-async-expect-function': 'error',\n 'vitest/prefer-called-exactly-once-with': 'error',\n 'vitest/prefer-called-once': 'error',\n 'vitest/prefer-called-times': undefined,\n 'vitest/prefer-called-with': 'error',\n 'vitest/prefer-comparison-matcher': 'error',\n 'vitest/prefer-describe-function-title': 'error',\n 'vitest/prefer-each': 'error',\n 'vitest/prefer-equality-matcher': 'error',\n 'vitest/prefer-expect-assertions': undefined,\n 'vitest/prefer-expect-resolves': 'error',\n 'vitest/prefer-expect-type-of': 'error',\n 'vitest/prefer-hooks-in-order': 'error',\n 'vitest/prefer-hooks-on-top': 'error',\n 'vitest/prefer-import-in-mock': 'error',\n 'vitest/prefer-importing-vitest-globals': undefined,\n 'vitest/prefer-lowercase-title': 'error',\n 'vitest/prefer-mock-promise-shorthand': 'error',\n 'vitest/prefer-mock-return-shorthand': 'error',\n 'vitest/prefer-snapshot-hint': ['error', 'always'],\n 'vitest/prefer-spy-on': 'error',\n 'vitest/prefer-strict-boolean-matchers': undefined,\n 'vitest/prefer-strict-equal': 'error',\n 'vitest/prefer-to-be': 'error',\n 'vitest/prefer-to-be-falsy': 'error',\n 'vitest/prefer-to-be-object': 'error',\n 'vitest/prefer-to-be-truthy': 'error',\n 'vitest/prefer-to-contain': 'error',\n 'vitest/prefer-to-have-been-called-times': 'error',\n 'vitest/prefer-to-have-length': 'error',\n 'vitest/prefer-todo': 'error',\n 'vitest/require-awaited-expect-poll': 'error',\n 'vitest/require-hook': undefined,\n 'vitest/require-local-test-context-for-concurrent-snapshots': 'error',\n 'vitest/require-mock-type-parameters': 'error',\n 'vitest/require-test-timeout': undefined,\n 'vitest/require-to-throw-message': 'error',\n 'vitest/require-top-level-describe': 'error',\n 'vitest/valid-describe-callback': 'error',\n 'vitest/valid-expect': 'error',\n 'vitest/valid-expect-in-promise': 'error',\n 'vitest/valid-title': ['error', { ignoreTypeOfDescribeName: true }],\n 'vitest/warn-todo': 'error',\n\n 'vitest/padding-around-after-all-blocks': undefined,\n 'vitest/padding-around-test-blocks': undefined,\n },\n});\n","import { defineConfig } from 'oxlint';\n\nimport { ignorePatterns } from '@2digits/constants';\n\nimport { overridesConfig } from './configs/overrides';\nimport { reactConfig } from './configs/react';\nimport { typescriptRulesConfig } from './configs/typescript';\nimport { vitestConfig } from './configs/vitest';\n\nexport const typescriptConfig = defineConfig({\n options: {\n denyWarnings: true,\n reportUnusedDisableDirectives: 'deny',\n },\n categories: {\n nursery: 'off',\n pedantic: 'off',\n correctness: 'off',\n perf: 'off',\n style: 'off',\n restriction: 'off',\n suspicious: 'off',\n },\n extends: [typescriptRulesConfig, vitestConfig, reactConfig, overridesConfig],\n ignorePatterns,\n});\n"],"mappings":"0FAAA,MAAaA,EAAW,CAAC,WAAW,EAEvBC,EAAY,CAAC,yBAAyB,EAEtCC,EAAgB,CAAC,UAAW,WAAY,UAAU,ECAlDC,EAAkBC,EAAa,CAC1C,UAAW,CACT,CACE,MAAO,CAAC,GAAGJ,CAAQ,EACnB,MAAO,CACL,uBAAwB,MACxB,WAAY,MACZ,iBAAkB,MAClB,qBAAsB,KACxB,CACF,EACA,CACE,MAAO,CAAC,GAAGC,CAAS,EACpB,QAAS,CACP,SAAU,WACV,UAAW,WACX,UAAW,WACX,WAAY,WACZ,MAAO,WACP,SAAU,WACV,OAAQ,WACR,aAAc,WACd,GAAI,WACJ,MAAO,WACP,KAAM,WACN,GAAI,UACN,EACA,MAAO,CACL,wBAAyB,KAC3B,CACF,EACA,CACE,MAAO,CAAC,GAAGC,CAAa,EACxB,MAAO,CACL,yCAA0C,KAC5C,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aF,CAAe,EAC3E,gBACF,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@2digits/oxlint-config",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.3.0",
|
|
4
4
|
"description": "Minimal Oxlint config for 2digits projects.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"oxlint-config"
|
|
@@ -28,16 +28,17 @@
|
|
|
28
28
|
},
|
|
29
29
|
"dependencies": {
|
|
30
30
|
"@2digits/constants": "1.1.20",
|
|
31
|
-
"@2digits/oxlint-plugin": "0.0
|
|
31
|
+
"@2digits/oxlint-plugin": "0.1.0",
|
|
32
32
|
"@stylistic/eslint-plugin": "5.10.0",
|
|
33
33
|
"defu": "6.1.7",
|
|
34
34
|
"eslint-plugin-zod": "5.0.0"
|
|
35
35
|
},
|
|
36
36
|
"devDependencies": {
|
|
37
|
-
"@2digits/eslint-config": "5.8.
|
|
37
|
+
"@2digits/eslint-config": "5.8.4",
|
|
38
38
|
"@2digits/tsconfig": "0.9.1",
|
|
39
39
|
"@arethetypeswrong/core": "0.18.5",
|
|
40
40
|
"@types/node": "24.19.1",
|
|
41
|
+
"dedent": "1.7.2",
|
|
41
42
|
"oxlint": "1.86.0",
|
|
42
43
|
"oxlint-tsgolint": "7.0.2003",
|
|
43
44
|
"publint": "0.3.25",
|
package/dist/base-M4dxDhGw.mjs
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{defineConfig as e}from"oxlint";import{ignorePatterns as t}from"@2digits/constants";import{recommendedRules as n}from"@2digits/oxlint-plugin";const r=e({jsPlugins:[{name:`2digits`,specifier:import.meta.resolve(`@2digits/oxlint-plugin`)}],rules:n}),i=e({plugins:[`import`],rules:{"import/consistent-type-specifier-style":void 0,"import/default":`error`,"import/export":`error`,"import/exports-last":void 0,"import/extensions":void 0,"import/first":[`error`,`disable-absolute-first`],"import/group-exports":void 0,"import/max-dependencies":void 0,"import/named":void 0,"import/namespace":`error`,"import/no-absolute-path":`error`,"import/no-amd":`error`,"import/no-anonymous-default-export":`error`,"import/no-commonjs":void 0,"import/no-cycle":`error`,"import/no-default-export":void 0,"import/no-duplicates":`error`,"import/no-dynamic-require":`error`,"import/no-empty-named-blocks":`error`,"import/no-mutable-exports":void 0,"import/no-named-as-default":`error`,"import/no-named-as-default-member":`error`,"import/no-named-default":`error`,"import/no-named-export":void 0,"import/no-namespace":void 0,"import/no-nodejs-modules":void 0,"import/no-relative-parent-imports":void 0,"import/no-self-import":`error`,"import/no-unassigned-import":void 0,"import/no-webpack-loader-syntax":`error`,"import/prefer-default-export":void 0,"import/unambiguous":void 0,"import/newline-after-import":void 0}}),a=e({plugins:[`eslint`],rules:{"accessor-pairs":[`error`,{enforceForClassMembers:!0,setWithoutGet:!0}],"array-callback-return":`error`,"arrow-body-style":[`error`,`as-needed`,{requireReturnForObjectLiteral:!1}],"block-scoped-var":`error`,"capitalized-comments":`error`,"class-methods-use-this":void 0,"constructor-super":`error`,"default-case":void 0,"default-case-last":`error`,"default-param-last":`error`,"for-direction":`error`,"func-name-matching":void 0,"func-names":[`error`,`always`,{generators:`never`}],"func-style":[`error`,`declaration`,{allowTypeAnnotation:!0}],"getter-return":`error`,"grouped-accessor-pairs":`error`,"guard-for-in":`error`,"id-length":void 0,"init-declarations":void 0,"logical-assignment-operators":[`error`,`always`],"max-classes-per-file":void 0,"max-depth":void 0,"max-lines":void 0,"max-lines-per-function":void 0,"max-nested-callbacks":void 0,"max-params":void 0,"max-statements":void 0,"new-cap":[`error`,{capIsNew:!1,newIsCap:!0,properties:!0}],"no-alert":`error`,"no-array-constructor":`error`,"no-async-promise-executor":`error`,"no-await-in-loop":`error`,"no-bitwise":void 0,"no-caller":`error`,"no-case-declarations":`error`,"no-class-assign":`error`,"no-compare-neg-zero":`error`,"no-cond-assign":[`error`,`always`],"no-console":void 0,"no-const-assign":`error`,"no-constant-binary-expression":`error`,"no-constant-condition":`error`,"no-constructor-return":`error`,"no-continue":void 0,"no-control-regex":`error`,"no-debugger":`error`,"no-delete-var":`error`,"no-div-regex":`error`,"no-dupe-class-members":`error`,"no-dupe-else-if":`error`,"no-dupe-keys":`error`,"no-duplicate-case":`error`,"no-duplicate-imports":[`error`,{allowSeparateTypeImports:!1,includeExports:!1}],"no-else-return":[`error`,{allowElseIf:!1}],"no-empty":[`error`,{allowEmptyCatch:!0}],"no-empty-character-class":`error`,"no-empty-function":void 0,"no-empty-pattern":`error`,"no-empty-static-block":`error`,"no-eq-null":void 0,"no-eval":`error`,"no-ex-assign":`error`,"no-extend-native":`error`,"no-extra-bind":`error`,"no-extra-boolean-cast":`error`,"no-extra-label":`error`,"no-fallthrough":`error`,"no-func-assign":`error`,"no-global-assign":`error`,"no-implicit-coercion":void 0,"no-implicit-globals":[`error`,{lexicalBindings:!0}],"no-implied-eval":`error`,"no-import-assign":`error`,"no-inline-comments":void 0,"no-inner-declarations":void 0,"no-invalid-regexp":`error`,"no-irregular-whitespace":`error`,"no-iterator":`error`,"no-label-var":`error`,"no-labels":[`error`,{allowLoop:!1,allowSwitch:!1}],"no-lone-blocks":`error`,"no-lonely-if":`error`,"no-loop-func":`error`,"no-loss-of-precision":`error`,"no-magic-numbers":void 0,"no-misleading-character-class":`error`,"no-multi-assign":`error`,"no-multi-str":`error`,"no-negated-condition":`error`,"no-nested-ternary":void 0,"no-new":`error`,"no-new-func":`error`,"no-new-native-nonconstructor":`error`,"no-new-wrappers":`error`,"no-nonoctal-decimal-escape":`error`,"no-obj-calls":`error`,"no-object-constructor":`error`,"no-param-reassign":void 0,"no-plusplus":void 0,"no-promise-executor-return":`error`,"no-proto":`error`,"no-prototype-builtins":`error`,"no-redeclare":`off`,"no-regex-spaces":`error`,"no-restricted-exports":void 0,"no-restricted-globals":[`error`,{message:"Use `globalThis` instead.",name:`global`},{message:"Use `globalThis` instead.",name:`self`}],"no-restricted-imports":void 0,"no-restricted-properties":[`error`,{message:"Use `Object.getPrototypeOf` or `Object.setPrototypeOf` instead.",property:`__proto__`},{message:"Use `Object.defineProperty` instead.",property:`__defineGetter__`},{message:"Use `Object.defineProperty` instead.",property:`__defineSetter__`},{message:"Use `Object.getOwnPropertyDescriptor` instead.",property:`__lookupGetter__`},{message:"Use `Object.getOwnPropertyDescriptor` instead.",property:`__lookupSetter__`}],"no-return-assign":`error`,"no-script-url":`error`,"no-self-assign":[`error`,{props:!0}],"no-self-compare":`error`,"no-sequences":`error`,"no-setter-return":`error`,"no-shadow":`off`,"no-shadow-restricted-names":`error`,"no-sparse-arrays":`error`,"no-template-curly-in-string":`error`,"no-ternary":void 0,"no-this-before-super":`error`,"no-throw-literal":`error`,"no-unassigned-vars":`error`,"no-undef":`error`,"no-undefined":void 0,"no-underscore-dangle":void 0,"no-unexpected-multiline":`error`,"no-unmodified-loop-condition":`error`,"no-unneeded-ternary":[`error`,{defaultAssignment:!1}],"no-unreachable":`error`,"no-unreachable-loop":`error`,"no-unsafe-finally":`error`,"no-unsafe-negation":`error`,"no-unsafe-optional-chaining":`error`,"no-unused-expressions":[`error`,{allowShortCircuit:!0,allowTaggedTemplates:!0,allowTernary:!0}],"no-unused-labels":`error`,"no-unused-private-class-members":`error`,"no-unused-vars":[`error`,{args:`none`,caughtErrors:`none`,vars:`all`,argsIgnorePattern:`^_`,ignoreRestSiblings:!0,varsIgnorePattern:`^_`}],"no-use-before-define":void 0,"no-useless-assignment":`off`,"no-useless-backreference":`error`,"no-useless-call":`error`,"no-useless-catch":`error`,"no-useless-computed-key":`error`,"no-useless-concat":`error`,"no-useless-constructor":`error`,"no-useless-escape":`error`,"no-useless-rename":`error`,"no-useless-return":`error`,"no-var":`error`,"no-void":void 0,"no-warning-comments":void 0,"no-with":`error`,"object-shorthand":[`error`,`always`,{avoidQuotes:!0,ignoreConstructors:!1}],"one-var":void 0,"operator-assignment":[`error`,`always`],"prefer-arrow-callback":[`error`,{allowNamedFunctions:!0,allowUnboundThis:!0}],"prefer-const":[`error`,{destructuring:`all`,ignoreReadBeforeAssign:!0}],"prefer-destructuring":`off`,"prefer-exponentiation-operator":`error`,"prefer-named-capture-group":void 0,"prefer-numeric-literals":`error`,"prefer-object-has-own":`error`,"prefer-object-spread":`error`,"prefer-promise-reject-errors":`error`,"prefer-regex-literals":[`error`,{disallowRedundantWrapping:!0}],"prefer-rest-params":`error`,"prefer-spread":`error`,"prefer-template":`error`,"preserve-caught-error":`error`,"require-await":void 0,"require-unicode-regexp":void 0,"require-yield":`error`,"sort-imports":void 0,"sort-keys":void 0,"sort-vars":`error`,"symbol-description":`error`,"unicode-bom":[`error`,`never`],"use-isnan":[`error`,{enforceForIndexOf:!0,enforceForSwitchCase:!0}],"valid-typeof":[`error`,{requireStringLiterals:!0}],"vars-on-top":`error`,complexity:[`error`,{variant:`modified`,max:20}],curly:`error`,eqeqeq:[`error`,`smart`],radix:`error`,yoda:[`error`,`never`]}}),o=e({plugins:[`jsdoc`],rules:{"jsdoc/check-access":`error`,"jsdoc/check-property-names":`error`,"jsdoc/check-tag-names":[`error`,{typed:!0,definedTags:[`effect-codegens`,`effect-diagnostics`,`effect-diagnostics-next-line`,`effect-expect-leaking`,`effect-identifier`,`effect-leakable-service`,`effect-schema-codegenerated`]}],"jsdoc/empty-tags":`error`,"jsdoc/implements-on-classes":`error`,"jsdoc/no-defaults":`error`,"jsdoc/require-param":`error`,"jsdoc/require-param-name":`error`,"jsdoc/require-property":`error`,"jsdoc/require-property-description":`error`,"jsdoc/require-property-name":`error`,"jsdoc/require-returns-description":`error`,"jsdoc/require-yields":`error`}}),s=e({plugins:[`node`],rules:{"node/callback-return":`off`,"node/exports-style":[`error`,`module.exports`],"node/global-require":`off`,"node/handle-callback-err":[`error`,`^(err|error)$`],"node/no-exports-assign":`error`,"node/no-mixed-requires":`error`,"node/no-new-require":`error`,"node/no-path-concat":`error`,"node/no-process-env":`off`,"node/no-sync":`off`,"node/no-top-level-await":`off`}}),c=e({plugins:[`oxc`],rules:{"oxc/approx-constant":`error`,"oxc/bad-array-method-on-arguments":`error`,"oxc/bad-bitwise-operator":`error`,"oxc/bad-char-at-comparison":`error`,"oxc/bad-comparison-sequence":`error`,"oxc/bad-match-all-arg":`error`,"oxc/bad-min-max-func":`error`,"oxc/bad-object-literal-comparison":`error`,"oxc/bad-replace-all-arg":`error`,"oxc/branches-sharing-code":`error`,"oxc/const-comparisons":`error`,"oxc/double-comparisons":`error`,"oxc/erasing-op":`error`,"oxc/misrefactored-assign-op":`error`,"oxc/missing-throw":`error`,"oxc/no-accumulating-spread":`error`,"oxc/no-async-await":void 0,"oxc/no-async-endpoint-handlers":void 0,"oxc/no-barrel-file":[`error`,{threshold:1e4}],"oxc/no-const-enum":`error`,"oxc/no-map-spread":void 0,"oxc/no-optional-chaining":void 0,"oxc/no-rest-spread-properties":void 0,"oxc/no-this-in-exported-function":`error`,"oxc/number-arg-out-of-range":`error`,"oxc/only-used-in-recursion":`error`,"oxc/uninvoked-array-callback":`error`}}),l=e({plugins:[`unicorn`],rules:{"unicorn/catch-error-name":`error`,"unicorn/consistent-assert":`error`,"unicorn/consistent-date-clone":`error`,"unicorn/consistent-empty-array-spread":`error`,"unicorn/consistent-existence-index-check":`error`,"unicorn/consistent-function-scoping":`error`,"unicorn/consistent-template-literal-escape":`error`,"unicorn/custom-error-definition":void 0,"unicorn/empty-brace-spaces":`error`,"unicorn/error-message":`error`,"unicorn/escape-case":`error`,"unicorn/explicit-length-check":`error`,"unicorn/explicit-timer-delay":`error`,"unicorn/filename-case":void 0,"unicorn/import-style":`error`,"unicorn/max-nested-calls":void 0,"unicorn/new-for-builtins":`error`,"unicorn/no-abusive-eslint-disable":`error`,"unicorn/no-accessor-recursion":`error`,"unicorn/no-anonymous-default-export":`error`,"unicorn/no-array-callback-reference":void 0,"unicorn/no-array-fill-with-reference-type":`error`,"unicorn/no-array-for-each":`error`,"unicorn/no-array-method-this-argument":`error`,"unicorn/no-array-reduce":`error`,"unicorn/no-array-reverse":`error`,"unicorn/no-array-sort":`error`,"unicorn/no-await-expression-member":`error`,"unicorn/no-await-in-promise-methods":`error`,"unicorn/no-confusing-array-with":`error`,"unicorn/no-console-spaces":`error`,"unicorn/no-document-cookie":`error`,"unicorn/no-empty-file":`error`,"unicorn/no-hex-escape":`error`,"unicorn/no-immediate-mutation":`error`,"unicorn/no-instanceof-array":`error`,"unicorn/no-instanceof-builtins":`error`,"unicorn/no-invalid-fetch-options":`error`,"unicorn/no-invalid-remove-event-listener":`error`,"unicorn/no-length-as-slice-end":`error`,"unicorn/no-lonely-if":`error`,"unicorn/no-magic-array-flat-depth":`error`,"unicorn/no-negated-condition":`error`,"unicorn/no-negation-in-equality-check":`error`,"unicorn/no-nested-ternary":void 0,"unicorn/no-new-array":`error`,"unicorn/no-new-buffer":`error`,"unicorn/no-null":`error`,"unicorn/no-object-as-default-parameter":`error`,"unicorn/no-process-exit":`error`,"unicorn/no-single-promise-in-promise-methods":`error`,"unicorn/no-static-only-class":`error`,"unicorn/no-thenable":`error`,"unicorn/no-this-assignment":`error`,"unicorn/no-typeof-undefined":`error`,"unicorn/no-unnecessary-array-flat-depth":`error`,"unicorn/no-unnecessary-array-splice-count":`error`,"unicorn/no-unnecessary-await":`error`,"unicorn/no-unnecessary-slice-end":`error`,"unicorn/no-unreadable-array-destructuring":`error`,"unicorn/no-unreadable-iife":`error`,"unicorn/no-useless-collection-argument":`error`,"unicorn/no-useless-error-capture-stack-trace":`error`,"unicorn/no-useless-fallback-in-spread":`error`,"unicorn/no-useless-iterator-to-array":`error`,"unicorn/no-useless-length-check":`error`,"unicorn/no-useless-promise-resolve-reject":`error`,"unicorn/no-useless-spread":`error`,"unicorn/no-useless-switch-case":`error`,"unicorn/no-useless-undefined":[`error`,{checkArguments:!1,checkArrowFunctionBody:!1}],"unicorn/no-zero-fractions":`error`,"unicorn/number-literal-case":`error`,"unicorn/numeric-separators-style":`error`,"unicorn/prefer-add-event-listener":`error`,"unicorn/prefer-array-find":`error`,"unicorn/prefer-array-flat":`error`,"unicorn/prefer-array-flat-map":`error`,"unicorn/prefer-array-index-of":`error`,"unicorn/prefer-array-some":`error`,"unicorn/prefer-at":`error`,"unicorn/prefer-bigint-literals":`error`,"unicorn/prefer-blob-reading-methods":`error`,"unicorn/prefer-class-fields":`error`,"unicorn/prefer-classlist-toggle":`error`,"unicorn/prefer-code-point":`error`,"unicorn/prefer-date-now":`error`,"unicorn/prefer-default-parameters":`error`,"unicorn/prefer-dom-node-append":`error`,"unicorn/prefer-dom-node-dataset":`error`,"unicorn/prefer-dom-node-remove":`error`,"unicorn/prefer-dom-node-text-content":`error`,"unicorn/prefer-event-target":`error`,"unicorn/prefer-export-from":`error`,"unicorn/prefer-global-this":`error`,"unicorn/prefer-import-meta-properties":void 0,"unicorn/prefer-includes":`error`,"unicorn/prefer-keyboard-event-key":`error`,"unicorn/prefer-logical-operator-over-ternary":`error`,"unicorn/prefer-math-min-max":`error`,"unicorn/prefer-math-trunc":`error`,"unicorn/prefer-modern-dom-apis":`error`,"unicorn/prefer-modern-math-apis":`error`,"unicorn/prefer-module":void 0,"unicorn/prefer-native-coercion-functions":`error`,"unicorn/prefer-negative-index":`error`,"unicorn/prefer-node-protocol":`error`,"unicorn/prefer-number-coercion":void 0,"unicorn/prefer-number-properties":`error`,"unicorn/prefer-object-from-entries":`error`,"unicorn/prefer-optional-catch-binding":`error`,"unicorn/prefer-prototype-methods":`error`,"unicorn/prefer-query-selector":`error`,"unicorn/prefer-reflect-apply":`error`,"unicorn/prefer-regexp-test":`error`,"unicorn/prefer-response-static-json":`error`,"unicorn/prefer-set-has":`error`,"unicorn/prefer-set-size":`error`,"unicorn/prefer-single-call":`error`,"unicorn/prefer-spread":`error`,"unicorn/prefer-string-raw":`error`,"unicorn/prefer-string-replace-all":`error`,"unicorn/prefer-string-slice":`error`,"unicorn/prefer-string-starts-ends-with":`error`,"unicorn/prefer-string-trim-start-end":`error`,"unicorn/prefer-structured-clone":`error`,"unicorn/prefer-ternary":[`error`,`only-single-line`],"unicorn/prefer-top-level-await":void 0,"unicorn/prefer-type-error":`error`,"unicorn/relative-url-style":`error`,"unicorn/require-array-join-separator":`error`,"unicorn/require-module-attributes":`error`,"unicorn/require-module-specifiers":`error`,"unicorn/require-number-to-fixed-digits-argument":`error`,"unicorn/require-post-message-target-origin":void 0,"unicorn/switch-case-braces":`error`,"unicorn/switch-case-break-position":`error`,"unicorn/text-encoding-identifier-case":`error`,"unicorn/throw-new-error":`off`}}),u=e({jsPlugins:[{name:`zod`,specifier:import.meta.resolve(`eslint-plugin-zod`)}],rules:{"zod/array-style":[`error`,{style:`function`}],"zod/consistent-import":[`error`,{syntax:`namespace`}],"zod/consistent-schema-output-type-style":[`error`,{style:`infer`}],"zod/consistent-schema-var-name":[`warn`,{after:`Schema`}],"zod/no-any-schema":`error`,"zod/no-coerce-boolean":`error`,"zod/no-conflicting-checks":[`error`,{checkConfusingCases:!0,checkImpossibleCases:!0,checkInapplicableChecks:!0}],"zod/no-duplicate-schema-methods":`error`,"zod/no-dynamic-schema-value":`error`,"zod/no-empty-custom-schema":`error`,"zod/no-function-scoped-schema":`error`,"zod/no-native-enum":`error`,"zod/no-number-schema-with-finite":`error`,"zod/no-number-schema-with-int":`error`,"zod/no-number-schema-with-is-finite":`error`,"zod/no-number-schema-with-is-int":`error`,"zod/no-number-schema-with-safe":`error`,"zod/no-number-schema-with-step":`error`,"zod/no-optional-and-default-together":[`warn`,{preferredMethod:`default`}],"zod/no-promise-schema":`error`,"zod/no-schema-with-is-nullable":`error`,"zod/no-schema-with-is-optional":`error`,"zod/no-throw-in-refine":`error`,"zod/no-transform-in-record-key":`error`,"zod/no-unnecessary-readonly":`error`,"zod/prefer-enum-over-literal-union":`error`,"zod/prefer-loose-object":`error`,"zod/prefer-map-set-size-over-min-max":`error`,"zod/prefer-meta":`error`,"zod/prefer-meta-last":`error`,"zod/prefer-strict-object":`error`,"zod/prefer-string-length-over-min-max":`error`,"zod/prefer-string-schema-with-trim":`error`,"zod/prefer-top-level-string-formats":`error`,"zod/prefer-trim-before-string-length-checks":`error`,"zod/prefer-tuple-over-array-length":`error`,"zod/prefer-validate":`error`,"zod/require-brand-type-parameter":`error`,"zod/schema-error-property-style":[`error`,{selector:`Literal,TemplateLiteral`,example:`"This is an error message"`}],"zod/consistent-import-source":void 0,"zod/consistent-object-schema-type":void 0,"zod/no-string-schema-with-uuid":void 0,"zod/no-unknown-schema":void 0,"zod/require-error-message":void 0}}),d=e({env:{browser:!0,node:!0},options:{denyWarnings:!0,reportUnusedDisableDirectives:`deny`},categories:{nursery:`off`,pedantic:`off`,correctness:`off`,perf:`off`,style:`off`,restriction:`off`,suspicious:`off`},extends:[a,l,i,s,c,o,u,r],ignorePatterns:t});export{d as t};
|
|
2
|
-
//# sourceMappingURL=base-M4dxDhGw.mjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"base-M4dxDhGw.mjs","names":["twoDigitsPluginConfig","defineConfig","recommendedRules","importConfig","javascriptConfig","jsdocConfig","nodeConfig","oxcConfig","unicornConfig","zodConfig","baseConfig"],"sources":["../src/configs/2digits.ts","../src/configs/import.ts","../src/configs/javascript.ts","../src/configs/jsdoc.ts","../src/configs/node.ts","../src/configs/oxc.ts","../src/configs/unicorn.ts","../src/configs/zod.ts","../src/base.ts"],"sourcesContent":["import { defineConfig } from 'oxlint';\n\nimport { recommendedRules } from '@2digits/oxlint-plugin';\n\nexport const twoDigitsPluginConfig = defineConfig({\n jsPlugins: [\n {\n name: '2digits',\n specifier: import.meta.resolve('@2digits/oxlint-plugin'),\n },\n ],\n rules: recommendedRules,\n});\n","import { defineConfig } from 'oxlint';\n\nexport const importConfig = defineConfig({\n plugins: ['import'],\n rules: {\n 'import/consistent-type-specifier-style': undefined,\n 'import/default': 'error',\n 'import/export': 'error',\n 'import/exports-last': undefined,\n 'import/extensions': undefined,\n 'import/first': ['error', 'disable-absolute-first'],\n 'import/group-exports': undefined,\n 'import/max-dependencies': undefined,\n 'import/named': undefined,\n 'import/namespace': 'error',\n 'import/no-absolute-path': 'error',\n 'import/no-amd': 'error',\n 'import/no-anonymous-default-export': 'error',\n 'import/no-commonjs': undefined,\n 'import/no-cycle': 'error',\n 'import/no-default-export': undefined,\n 'import/no-duplicates': 'error',\n 'import/no-dynamic-require': 'error',\n 'import/no-empty-named-blocks': 'error',\n 'import/no-mutable-exports': undefined,\n 'import/no-named-as-default': 'error',\n 'import/no-named-as-default-member': 'error',\n 'import/no-named-default': 'error',\n 'import/no-named-export': undefined,\n 'import/no-namespace': undefined,\n 'import/no-nodejs-modules': undefined,\n 'import/no-relative-parent-imports': undefined,\n 'import/no-self-import': 'error',\n 'import/no-unassigned-import': undefined,\n 'import/no-webpack-loader-syntax': 'error',\n 'import/prefer-default-export': undefined,\n 'import/unambiguous': undefined,\n\n 'import/newline-after-import': undefined,\n },\n});\n","import { defineConfig } from 'oxlint';\n\nexport const javascriptConfig = defineConfig({\n plugins: ['eslint'],\n rules: {\n 'accessor-pairs': ['error', { enforceForClassMembers: true, setWithoutGet: true }],\n 'array-callback-return': 'error',\n 'arrow-body-style': ['error', 'as-needed', { requireReturnForObjectLiteral: false }],\n 'block-scoped-var': 'error',\n 'capitalized-comments': 'error',\n 'class-methods-use-this': undefined,\n 'constructor-super': 'error',\n 'default-case': undefined,\n 'default-case-last': 'error',\n 'default-param-last': 'error',\n 'for-direction': 'error',\n 'func-name-matching': undefined,\n 'func-names': ['error', 'always', { generators: 'never' }],\n 'func-style': ['error', 'declaration', { allowTypeAnnotation: true }],\n 'getter-return': 'error',\n 'grouped-accessor-pairs': 'error',\n 'guard-for-in': 'error',\n 'id-length': undefined,\n 'init-declarations': undefined,\n 'logical-assignment-operators': ['error', 'always'],\n 'max-classes-per-file': undefined,\n 'max-depth': undefined,\n 'max-lines': undefined,\n 'max-lines-per-function': undefined,\n 'max-nested-callbacks': undefined,\n 'max-params': undefined,\n 'max-statements': undefined,\n 'new-cap': ['error', { capIsNew: false, newIsCap: true, properties: true }],\n 'no-alert': 'error',\n 'no-array-constructor': 'error',\n 'no-async-promise-executor': 'error',\n 'no-await-in-loop': 'error',\n 'no-bitwise': undefined,\n 'no-caller': 'error',\n 'no-case-declarations': 'error',\n 'no-class-assign': 'error',\n 'no-compare-neg-zero': 'error',\n 'no-cond-assign': ['error', 'always'],\n 'no-console': undefined,\n 'no-const-assign': 'error',\n 'no-constant-binary-expression': 'error',\n 'no-constant-condition': 'error',\n 'no-constructor-return': 'error',\n 'no-continue': undefined,\n 'no-control-regex': 'error',\n 'no-debugger': 'error',\n 'no-delete-var': 'error',\n 'no-div-regex': 'error',\n 'no-dupe-class-members': 'error',\n 'no-dupe-else-if': 'error',\n 'no-dupe-keys': 'error',\n 'no-duplicate-case': 'error',\n 'no-duplicate-imports': ['error', { allowSeparateTypeImports: false, includeExports: false }],\n 'no-else-return': ['error', { allowElseIf: false }],\n 'no-empty': ['error', { allowEmptyCatch: true }],\n 'no-empty-character-class': 'error',\n 'no-empty-function': undefined,\n 'no-empty-pattern': 'error',\n 'no-empty-static-block': 'error',\n 'no-eq-null': undefined,\n 'no-eval': 'error',\n 'no-ex-assign': 'error',\n 'no-extend-native': 'error',\n 'no-extra-bind': 'error',\n 'no-extra-boolean-cast': 'error',\n 'no-extra-label': 'error',\n 'no-fallthrough': 'error',\n 'no-func-assign': 'error',\n 'no-global-assign': 'error',\n 'no-implicit-coercion': undefined,\n 'no-implicit-globals': ['error', { lexicalBindings: true }],\n 'no-implied-eval': 'error',\n 'no-import-assign': 'error',\n 'no-inline-comments': undefined,\n 'no-inner-declarations': undefined,\n 'no-invalid-regexp': 'error',\n 'no-irregular-whitespace': 'error',\n 'no-iterator': 'error',\n 'no-label-var': 'error',\n 'no-labels': ['error', { allowLoop: false, allowSwitch: false }],\n 'no-lone-blocks': 'error',\n 'no-lonely-if': 'error',\n 'no-loop-func': 'error',\n 'no-loss-of-precision': 'error',\n 'no-magic-numbers': undefined,\n 'no-misleading-character-class': 'error',\n 'no-multi-assign': 'error',\n 'no-multi-str': 'error',\n 'no-negated-condition': 'error',\n 'no-nested-ternary': undefined,\n 'no-new': 'error',\n 'no-new-func': 'error',\n 'no-new-native-nonconstructor': 'error',\n 'no-new-wrappers': 'error',\n 'no-nonoctal-decimal-escape': 'error',\n 'no-obj-calls': 'error',\n 'no-object-constructor': 'error',\n 'no-param-reassign': undefined,\n 'no-plusplus': undefined,\n 'no-promise-executor-return': 'error',\n 'no-proto': 'error',\n 'no-prototype-builtins': 'error',\n 'no-redeclare': 'off',\n 'no-regex-spaces': 'error',\n 'no-restricted-exports': undefined,\n 'no-restricted-globals': [\n 'error',\n { message: 'Use `globalThis` instead.', name: 'global' },\n { message: 'Use `globalThis` instead.', name: 'self' },\n ],\n 'no-restricted-imports': undefined,\n 'no-restricted-properties': [\n 'error',\n {\n message: 'Use `Object.getPrototypeOf` or `Object.setPrototypeOf` instead.',\n property: '__proto__',\n },\n { message: 'Use `Object.defineProperty` instead.', property: '__defineGetter__' },\n { message: 'Use `Object.defineProperty` instead.', property: '__defineSetter__' },\n { message: 'Use `Object.getOwnPropertyDescriptor` instead.', property: '__lookupGetter__' },\n { message: 'Use `Object.getOwnPropertyDescriptor` instead.', property: '__lookupSetter__' },\n ],\n 'no-return-assign': 'error',\n 'no-script-url': 'error',\n 'no-self-assign': ['error', { props: true }],\n 'no-self-compare': 'error',\n 'no-sequences': 'error',\n 'no-setter-return': 'error',\n 'no-shadow': 'off',\n 'no-shadow-restricted-names': 'error',\n 'no-sparse-arrays': 'error',\n 'no-template-curly-in-string': 'error',\n 'no-ternary': undefined,\n 'no-this-before-super': 'error',\n 'no-throw-literal': 'error',\n 'no-unassigned-vars': 'error',\n 'no-undef': 'error',\n 'no-undefined': undefined,\n 'no-underscore-dangle': undefined,\n 'no-unexpected-multiline': 'error',\n 'no-unmodified-loop-condition': 'error',\n 'no-unneeded-ternary': ['error', { defaultAssignment: false }],\n 'no-unreachable': 'error',\n 'no-unreachable-loop': 'error',\n 'no-unsafe-finally': 'error',\n 'no-unsafe-negation': 'error',\n 'no-unsafe-optional-chaining': 'error',\n 'no-unused-expressions': ['error', { allowShortCircuit: true, allowTaggedTemplates: true, allowTernary: true }],\n 'no-unused-labels': 'error',\n 'no-unused-private-class-members': 'error',\n 'no-unused-vars': [\n 'error',\n {\n args: 'none',\n caughtErrors: 'none',\n vars: 'all',\n argsIgnorePattern: '^_',\n ignoreRestSiblings: true,\n varsIgnorePattern: '^_',\n },\n ],\n 'no-use-before-define': undefined,\n 'no-useless-assignment': 'off',\n 'no-useless-backreference': 'error',\n 'no-useless-call': 'error',\n 'no-useless-catch': 'error',\n 'no-useless-computed-key': 'error',\n 'no-useless-concat': 'error',\n 'no-useless-constructor': 'error',\n 'no-useless-escape': 'error',\n 'no-useless-rename': 'error',\n 'no-useless-return': 'error',\n 'no-var': 'error',\n 'no-void': undefined,\n 'no-warning-comments': undefined,\n 'no-with': 'error',\n 'object-shorthand': ['error', 'always', { avoidQuotes: true, ignoreConstructors: false }],\n 'one-var': undefined,\n 'operator-assignment': ['error', 'always'],\n 'prefer-arrow-callback': ['error', { allowNamedFunctions: true, allowUnboundThis: true }],\n 'prefer-const': ['error', { destructuring: 'all', ignoreReadBeforeAssign: true }],\n 'prefer-destructuring': 'off',\n 'prefer-exponentiation-operator': 'error',\n 'prefer-named-capture-group': undefined,\n 'prefer-numeric-literals': 'error',\n 'prefer-object-has-own': 'error',\n 'prefer-object-spread': 'error',\n 'prefer-promise-reject-errors': 'error',\n 'prefer-regex-literals': ['error', { disallowRedundantWrapping: true }],\n 'prefer-rest-params': 'error',\n 'prefer-spread': 'error',\n 'prefer-template': 'error',\n 'preserve-caught-error': 'error',\n 'require-await': undefined,\n 'require-unicode-regexp': undefined,\n 'require-yield': 'error',\n 'sort-imports': undefined,\n 'sort-keys': undefined,\n 'sort-vars': 'error',\n 'symbol-description': 'error',\n 'unicode-bom': ['error', 'never'],\n 'use-isnan': ['error', { enforceForIndexOf: true, enforceForSwitchCase: true }],\n 'valid-typeof': ['error', { requireStringLiterals: true }],\n 'vars-on-top': 'error',\n complexity: ['error', { variant: 'modified', max: 20 }],\n curly: 'error',\n eqeqeq: ['error', 'smart'],\n radix: 'error',\n yoda: ['error', 'never'],\n },\n});\n","import { defineConfig } from 'oxlint';\n\nexport const jsdocConfig = defineConfig({\n plugins: ['jsdoc'],\n rules: {\n 'jsdoc/check-access': 'error',\n 'jsdoc/check-property-names': 'error',\n 'jsdoc/check-tag-names': [\n 'error',\n {\n typed: true,\n definedTags: [\n 'effect-codegens',\n 'effect-diagnostics',\n 'effect-diagnostics-next-line',\n 'effect-expect-leaking',\n 'effect-identifier',\n 'effect-leakable-service',\n 'effect-schema-codegenerated',\n ],\n },\n ],\n 'jsdoc/empty-tags': 'error',\n 'jsdoc/implements-on-classes': 'error',\n 'jsdoc/no-defaults': 'error',\n 'jsdoc/require-param': 'error',\n 'jsdoc/require-param-name': 'error',\n 'jsdoc/require-property': 'error',\n 'jsdoc/require-property-description': 'error',\n 'jsdoc/require-property-name': 'error',\n 'jsdoc/require-returns-description': 'error',\n 'jsdoc/require-yields': 'error',\n },\n});\n","import { defineConfig } from 'oxlint';\n\nexport const nodeConfig = defineConfig({\n plugins: ['node'],\n rules: {\n 'node/callback-return': 'off',\n 'node/exports-style': ['error', 'module.exports'],\n 'node/global-require': 'off',\n 'node/handle-callback-err': ['error', '^(err|error)$'],\n 'node/no-exports-assign': 'error',\n 'node/no-mixed-requires': 'error',\n 'node/no-new-require': 'error',\n 'node/no-path-concat': 'error',\n 'node/no-process-env': 'off',\n 'node/no-sync': 'off',\n 'node/no-top-level-await': 'off',\n },\n});\n","import { defineConfig } from 'oxlint';\n\nexport const oxcConfig = defineConfig({\n plugins: ['oxc'],\n\n rules: {\n 'oxc/approx-constant': 'error',\n 'oxc/bad-array-method-on-arguments': 'error',\n 'oxc/bad-bitwise-operator': 'error',\n 'oxc/bad-char-at-comparison': 'error',\n 'oxc/bad-comparison-sequence': 'error',\n 'oxc/bad-match-all-arg': 'error',\n 'oxc/bad-min-max-func': 'error',\n 'oxc/bad-object-literal-comparison': 'error',\n 'oxc/bad-replace-all-arg': 'error',\n 'oxc/branches-sharing-code': 'error',\n 'oxc/const-comparisons': 'error',\n 'oxc/double-comparisons': 'error',\n 'oxc/erasing-op': 'error',\n 'oxc/misrefactored-assign-op': 'error',\n 'oxc/missing-throw': 'error',\n 'oxc/no-accumulating-spread': 'error',\n 'oxc/no-async-await': undefined,\n 'oxc/no-async-endpoint-handlers': undefined,\n 'oxc/no-barrel-file': ['error', { threshold: 10_000 }],\n 'oxc/no-const-enum': 'error',\n 'oxc/no-map-spread': undefined,\n 'oxc/no-optional-chaining': undefined,\n 'oxc/no-rest-spread-properties': undefined,\n 'oxc/no-this-in-exported-function': 'error',\n 'oxc/number-arg-out-of-range': 'error',\n 'oxc/only-used-in-recursion': 'error',\n 'oxc/uninvoked-array-callback': 'error',\n },\n});\n","import { defineConfig } from 'oxlint';\n\nexport const unicornConfig = defineConfig({\n plugins: ['unicorn'],\n rules: {\n 'unicorn/catch-error-name': 'error',\n 'unicorn/consistent-assert': 'error',\n 'unicorn/consistent-date-clone': 'error',\n 'unicorn/consistent-empty-array-spread': 'error',\n 'unicorn/consistent-existence-index-check': 'error',\n 'unicorn/consistent-function-scoping': 'error',\n 'unicorn/consistent-template-literal-escape': 'error',\n 'unicorn/custom-error-definition': undefined,\n 'unicorn/empty-brace-spaces': 'error',\n 'unicorn/error-message': 'error',\n 'unicorn/escape-case': 'error',\n 'unicorn/explicit-length-check': 'error',\n 'unicorn/explicit-timer-delay': 'error',\n 'unicorn/filename-case': undefined,\n 'unicorn/import-style': 'error',\n 'unicorn/max-nested-calls': undefined,\n 'unicorn/new-for-builtins': 'error',\n 'unicorn/no-abusive-eslint-disable': 'error',\n 'unicorn/no-accessor-recursion': 'error',\n 'unicorn/no-anonymous-default-export': 'error',\n 'unicorn/no-array-callback-reference': undefined,\n 'unicorn/no-array-fill-with-reference-type': 'error',\n 'unicorn/no-array-for-each': 'error',\n 'unicorn/no-array-method-this-argument': 'error',\n 'unicorn/no-array-reduce': 'error',\n 'unicorn/no-array-reverse': 'error',\n 'unicorn/no-array-sort': 'error',\n 'unicorn/no-await-expression-member': 'error',\n 'unicorn/no-await-in-promise-methods': 'error',\n 'unicorn/no-confusing-array-with': 'error',\n 'unicorn/no-console-spaces': 'error',\n 'unicorn/no-document-cookie': 'error',\n 'unicorn/no-empty-file': 'error',\n 'unicorn/no-hex-escape': 'error',\n 'unicorn/no-immediate-mutation': 'error',\n 'unicorn/no-instanceof-array': 'error',\n 'unicorn/no-instanceof-builtins': 'error',\n 'unicorn/no-invalid-fetch-options': 'error',\n 'unicorn/no-invalid-remove-event-listener': 'error',\n 'unicorn/no-length-as-slice-end': 'error',\n 'unicorn/no-lonely-if': 'error',\n 'unicorn/no-magic-array-flat-depth': 'error',\n 'unicorn/no-negated-condition': 'error',\n 'unicorn/no-negation-in-equality-check': 'error',\n 'unicorn/no-nested-ternary': undefined,\n 'unicorn/no-new-array': 'error',\n 'unicorn/no-new-buffer': 'error',\n 'unicorn/no-null': 'error',\n 'unicorn/no-object-as-default-parameter': 'error',\n 'unicorn/no-process-exit': 'error',\n 'unicorn/no-single-promise-in-promise-methods': 'error',\n 'unicorn/no-static-only-class': 'error',\n 'unicorn/no-thenable': 'error',\n 'unicorn/no-this-assignment': 'error',\n 'unicorn/no-typeof-undefined': 'error',\n 'unicorn/no-unnecessary-array-flat-depth': 'error',\n 'unicorn/no-unnecessary-array-splice-count': 'error',\n 'unicorn/no-unnecessary-await': 'error',\n 'unicorn/no-unnecessary-slice-end': 'error',\n 'unicorn/no-unreadable-array-destructuring': 'error',\n 'unicorn/no-unreadable-iife': 'error',\n 'unicorn/no-useless-collection-argument': 'error',\n 'unicorn/no-useless-error-capture-stack-trace': 'error',\n 'unicorn/no-useless-fallback-in-spread': 'error',\n 'unicorn/no-useless-iterator-to-array': 'error',\n 'unicorn/no-useless-length-check': 'error',\n 'unicorn/no-useless-promise-resolve-reject': 'error',\n 'unicorn/no-useless-spread': 'error',\n 'unicorn/no-useless-switch-case': 'error',\n 'unicorn/no-useless-undefined': ['error', { checkArguments: false, checkArrowFunctionBody: false }],\n 'unicorn/no-zero-fractions': 'error',\n 'unicorn/number-literal-case': 'error',\n 'unicorn/numeric-separators-style': 'error',\n 'unicorn/prefer-add-event-listener': 'error',\n 'unicorn/prefer-array-find': 'error',\n 'unicorn/prefer-array-flat': 'error',\n 'unicorn/prefer-array-flat-map': 'error',\n 'unicorn/prefer-array-index-of': 'error',\n 'unicorn/prefer-array-some': 'error',\n 'unicorn/prefer-at': 'error',\n 'unicorn/prefer-bigint-literals': 'error',\n 'unicorn/prefer-blob-reading-methods': 'error',\n 'unicorn/prefer-class-fields': 'error',\n 'unicorn/prefer-classlist-toggle': 'error',\n 'unicorn/prefer-code-point': 'error',\n 'unicorn/prefer-date-now': 'error',\n 'unicorn/prefer-default-parameters': 'error',\n 'unicorn/prefer-dom-node-append': 'error',\n 'unicorn/prefer-dom-node-dataset': 'error',\n 'unicorn/prefer-dom-node-remove': 'error',\n 'unicorn/prefer-dom-node-text-content': 'error',\n 'unicorn/prefer-event-target': 'error',\n 'unicorn/prefer-export-from': 'error',\n 'unicorn/prefer-global-this': 'error',\n 'unicorn/prefer-import-meta-properties': undefined,\n 'unicorn/prefer-includes': 'error',\n 'unicorn/prefer-keyboard-event-key': 'error',\n 'unicorn/prefer-logical-operator-over-ternary': 'error',\n 'unicorn/prefer-math-min-max': 'error',\n 'unicorn/prefer-math-trunc': 'error',\n 'unicorn/prefer-modern-dom-apis': 'error',\n 'unicorn/prefer-modern-math-apis': 'error',\n 'unicorn/prefer-module': undefined,\n 'unicorn/prefer-native-coercion-functions': 'error',\n 'unicorn/prefer-negative-index': 'error',\n 'unicorn/prefer-node-protocol': 'error',\n 'unicorn/prefer-number-coercion': undefined,\n 'unicorn/prefer-number-properties': 'error',\n 'unicorn/prefer-object-from-entries': 'error',\n 'unicorn/prefer-optional-catch-binding': 'error',\n 'unicorn/prefer-prototype-methods': 'error',\n 'unicorn/prefer-query-selector': 'error',\n 'unicorn/prefer-reflect-apply': 'error',\n 'unicorn/prefer-regexp-test': 'error',\n 'unicorn/prefer-response-static-json': 'error',\n 'unicorn/prefer-set-has': 'error',\n 'unicorn/prefer-set-size': 'error',\n 'unicorn/prefer-single-call': 'error',\n 'unicorn/prefer-spread': 'error',\n 'unicorn/prefer-string-raw': 'error',\n 'unicorn/prefer-string-replace-all': 'error',\n 'unicorn/prefer-string-slice': 'error',\n 'unicorn/prefer-string-starts-ends-with': 'error',\n 'unicorn/prefer-string-trim-start-end': 'error',\n 'unicorn/prefer-structured-clone': 'error',\n 'unicorn/prefer-ternary': ['error', 'only-single-line'],\n 'unicorn/prefer-top-level-await': undefined,\n 'unicorn/prefer-type-error': 'error',\n 'unicorn/relative-url-style': 'error',\n 'unicorn/require-array-join-separator': 'error',\n 'unicorn/require-module-attributes': 'error',\n 'unicorn/require-module-specifiers': 'error',\n 'unicorn/require-number-to-fixed-digits-argument': 'error',\n 'unicorn/require-post-message-target-origin': undefined,\n 'unicorn/switch-case-braces': 'error',\n 'unicorn/switch-case-break-position': 'error',\n 'unicorn/text-encoding-identifier-case': 'error',\n 'unicorn/throw-new-error': 'off',\n },\n});\n","import { defineConfig } from 'oxlint';\n\nexport const zodConfig = defineConfig({\n jsPlugins: [\n {\n name: 'zod',\n specifier: import.meta.resolve('eslint-plugin-zod'),\n },\n ],\n rules: {\n 'zod/array-style': ['error', { style: 'function' }],\n 'zod/consistent-import': ['error', { syntax: 'namespace' }],\n 'zod/consistent-schema-output-type-style': ['error', { style: 'infer' }],\n 'zod/consistent-schema-var-name': ['warn', { after: 'Schema' }],\n 'zod/no-any-schema': 'error',\n 'zod/no-coerce-boolean': 'error',\n 'zod/no-conflicting-checks': [\n 'error',\n { checkConfusingCases: true, checkImpossibleCases: true, checkInapplicableChecks: true },\n ],\n 'zod/no-duplicate-schema-methods': 'error',\n 'zod/no-dynamic-schema-value': 'error',\n 'zod/no-empty-custom-schema': 'error',\n 'zod/no-function-scoped-schema': 'error',\n 'zod/no-native-enum': 'error',\n 'zod/no-number-schema-with-finite': 'error',\n 'zod/no-number-schema-with-int': 'error',\n 'zod/no-number-schema-with-is-finite': 'error',\n 'zod/no-number-schema-with-is-int': 'error',\n 'zod/no-number-schema-with-safe': 'error',\n 'zod/no-number-schema-with-step': 'error',\n 'zod/no-optional-and-default-together': ['warn', { preferredMethod: 'default' }],\n 'zod/no-promise-schema': 'error',\n 'zod/no-schema-with-is-nullable': 'error',\n 'zod/no-schema-with-is-optional': 'error',\n 'zod/no-throw-in-refine': 'error',\n 'zod/no-transform-in-record-key': 'error',\n 'zod/no-unnecessary-readonly': 'error',\n 'zod/prefer-enum-over-literal-union': 'error',\n 'zod/prefer-loose-object': 'error',\n 'zod/prefer-map-set-size-over-min-max': 'error',\n 'zod/prefer-meta': 'error',\n 'zod/prefer-meta-last': 'error',\n 'zod/prefer-strict-object': 'error',\n 'zod/prefer-string-length-over-min-max': 'error',\n 'zod/prefer-string-schema-with-trim': 'error',\n 'zod/prefer-top-level-string-formats': 'error',\n 'zod/prefer-trim-before-string-length-checks': 'error',\n 'zod/prefer-tuple-over-array-length': 'error',\n 'zod/prefer-validate': 'error',\n 'zod/require-brand-type-parameter': 'error',\n 'zod/schema-error-property-style': [\n 'error',\n { selector: 'Literal,TemplateLiteral', example: `\"This is an error message\"` },\n ],\n\n 'zod/consistent-import-source': undefined,\n 'zod/consistent-object-schema-type': undefined,\n 'zod/no-string-schema-with-uuid': undefined,\n 'zod/no-unknown-schema': undefined,\n 'zod/require-error-message': undefined,\n },\n});\n","import { defineConfig } from 'oxlint';\n\nimport { ignorePatterns } from '@2digits/constants';\n\nimport { twoDigitsPluginConfig } from './configs/2digits';\nimport { importConfig } from './configs/import';\nimport { javascriptConfig } from './configs/javascript';\nimport { jsdocConfig } from './configs/jsdoc';\nimport { nodeConfig } from './configs/node';\nimport { oxcConfig } from './configs/oxc';\nimport { unicornConfig } from './configs/unicorn';\nimport { zodConfig } from './configs/zod';\n\nexport const baseConfig = defineConfig({\n env: {\n browser: true,\n node: true,\n },\n options: {\n denyWarnings: true,\n reportUnusedDisableDirectives: 'deny',\n },\n categories: {\n nursery: 'off',\n pedantic: 'off',\n correctness: 'off',\n perf: 'off',\n style: 'off',\n restriction: 'off',\n suspicious: 'off',\n },\n extends: [\n javascriptConfig,\n unicornConfig,\n importConfig,\n nodeConfig,\n oxcConfig,\n jsdocConfig,\n zodConfig,\n twoDigitsPluginConfig,\n ],\n ignorePatterns,\n});\n"],"mappings":"oJAIA,MAAaA,EAAwBC,EAAa,CAChD,UAAW,CACT,CACE,KAAM,UACN,UAAW,YAAY,QAAQ,wBAAwB,CACzD,CACF,EACA,MAAOC,CACT,CAAC,ECVYC,EAAeF,EAAa,CACvC,QAAS,CAAC,QAAQ,EAClB,MAAO,CACL,yCAA0C,IAAA,GAC1C,iBAAkB,QAClB,gBAAiB,QACjB,sBAAuB,IAAA,GACvB,oBAAqB,IAAA,GACrB,eAAgB,CAAC,QAAS,wBAAwB,EAClD,uBAAwB,IAAA,GACxB,0BAA2B,IAAA,GAC3B,eAAgB,IAAA,GAChB,mBAAoB,QACpB,0BAA2B,QAC3B,gBAAiB,QACjB,qCAAsC,QACtC,qBAAsB,IAAA,GACtB,kBAAmB,QACnB,2BAA4B,IAAA,GAC5B,uBAAwB,QACxB,4BAA6B,QAC7B,+BAAgC,QAChC,4BAA6B,IAAA,GAC7B,6BAA8B,QAC9B,oCAAqC,QACrC,0BAA2B,QAC3B,yBAA0B,IAAA,GAC1B,sBAAuB,IAAA,GACvB,2BAA4B,IAAA,GAC5B,oCAAqC,IAAA,GACrC,wBAAyB,QACzB,8BAA+B,IAAA,GAC/B,kCAAmC,QACnC,+BAAgC,IAAA,GAChC,qBAAsB,IAAA,GAEtB,8BAA+B,IAAA,EACjC,CACF,CAAC,ECtCYG,EAAmBH,EAAa,CAC3C,QAAS,CAAC,QAAQ,EAClB,MAAO,CACL,iBAAkB,CAAC,QAAS,CAAE,uBAAwB,GAAM,cAAe,EAAK,CAAC,EACjF,wBAAyB,QAC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