@2digits/oxlint-config 0.8.1 → 1.0.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.
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.mts","names":[],"sources":["../src/rule-options.ts","../src/config.ts","../src/index.ts"],"mappings":";;KAEK,gBAAgB,KAAK,iBAAiB,eAAe;UAEhD;WACC;WACA;WACA;;;;;;;;YASC;IACR,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,uCAAuC;IACvC,wCAAwC;IACxC,gDAAgD;IAChD,uCAAuC;IACvC,qCAAqC;IACrC,8BAA8B;IAC9B,oCAAoC;eACzB;eACA;;;;;;;;;cC9DF,WAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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.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};
1
+ import{t as e}from"./base-C9g759uV.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
+ //# sourceMappingURL=index.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.mjs","names":[],"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,MAAa,EAAY,EAAa,EAAK,EAAY,CAAgB,CAAC,EAuBxE,SAAgB,EAAc,GAAG,EAAkD,CACjF,IAAI,EAA0B,EAMxB,EAA4B,CAAC,EAEnC,IAAK,GAAM,CAAE,YAAY,CAAC,EAAG,GAAG,KAAU,EACxC,EAAS,EAAK,EAAM,CAAM,EAC1B,EAAe,KAAK,GAAG,CAAS,EAGlC,MAAO,CAAE,GAAG,EAAQ,UAAW,CAAC,GAAI,EAAO,WAAa,CAAC,EAAI,GAAG,CAAc,CAAE,CAClF"}
@@ -0,0 +1,2 @@
1
+ import{defineConfig as e}from"oxlint";import{ignorePatterns as t}from"@2digits/constants";const n=[`**/*.d.ts`],r=[`**/*.{test,spec}.ts?(x)`],i=[`**/*.js`,`**/*.cjs`,`**/*.cts`],a=e({overrides:[{files:[...n],rules:{"no-duplicate-imports":`off`,"no-undef":`off`,"no-unused-vars":`off`,"import/unambiguous":`off`}},{files:[...r],globals:{afterAll:`readonly`,afterEach:`readonly`,beforeAll:`readonly`,beforeEach:`readonly`,bench:`readonly`,describe:`readonly`,expect:`readonly`,expectTypeOf:`readonly`,it:`readonly`,suite:`readonly`,test:`readonly`,vi:`readonly`},rules:{"no-unused-expressions":`off`}},{files:[...i],rules:{"typescript/no-import-type-side-effects":`off`}}]}),o=e({options:{typeAware:!0},plugins:[`react`,`react-perf`],jsPlugins:[{name:`stylistic`,specifier:import.meta.resolve(`@stylistic/eslint-plugin`)}],rules:{"react/button-has-type":`error`,"react/exhaustive-deps":`error`,"react/function-component-definition":[`error`,{namedComponents:`function-declaration`}],"react/iframe-missing-sandbox":`error`,"react/jsx-key":`error`,"react/jsx-no-comment-textnodes":`warn`,"react/jsx-no-constructed-context-values":`error`,"react/jsx-no-script-url":`warn`,"react/jsx-no-target-blank":`error`,"react/jsx-no-useless-fragment":`off`,"react/no-array-index-key":`warn`,"react/no-children-prop":`error`,"react/no-clone-element":`warn`,"react/no-danger":`warn`,"react/no-danger-with-children":`error`,"react/no-did-mount-set-state":`warn`,"react/no-direct-mutation-state":`error`,"react/no-find-dom-node":`error`,"react/no-namespace":`error`,"react/no-redundant-should-component-update":`error`,"react/no-render-return-value":`error`,"react/no-unsafe":`warn`,"react/no-will-update-set-state":`warn`,"react/rules-of-hooks":`error`,"react/self-closing-comp":`error`,"react/void-dom-elements-no-children":`error`,"react-perf/jsx-no-jsx-as-prop":`error`,"stylistic/jsx-curly-newline":`off`,"stylistic/jsx-newline":[`error`,{prevent:!1}],"react/checked-requires-onchange-or-readonly":void 0,"react/display-name":`off`,"react/forbid-component-props":void 0,"react/forbid-dom-props":void 0,"react/forbid-elements":void 0,"react/forward-ref-uses-ref":`off`,"react/hook-use-state":`error`,"react/jsx-boolean-value":`off`,"react/jsx-curly-brace-presence":void 0,"react/jsx-filename-extension":`off`,"react/jsx-fragments":`off`,"react/jsx-handler-names":void 0,"react/jsx-max-depth":void 0,"react/jsx-no-duplicate-props":void 0,"react/jsx-no-literals":void 0,"react/jsx-no-undef":void 0,"react/jsx-pascal-case":`off`,"react/jsx-props-no-spread-multi":void 0,"react/jsx-props-no-spreading":void 0,"react/no-did-update-set-state":`off`,"react/no-is-mounted":void 0,"react/no-multi-comp":void 0,"react/no-object-type-as-default-prop":`off`,"react/no-react-children":void 0,"react/no-set-state":void 0,"react/no-string-refs":`off`,"react/no-this-in-sfc":void 0,"react/no-unescaped-entities":void 0,"react/no-unknown-property":`off`,"react/no-unstable-nested-components":`off`,"react/only-export-components":void 0,"react/prefer-es6-class":void 0,"react/prefer-function-component":void 0,"react/react-in-jsx-scope":void 0,"react/require-render-return":void 0,"react/state-in-constructor":void 0,"react/style-prop-object":void 0,"react/syntax":`error`,"react/todo":`error`,"react/unsupported-syntax":`error`,"react/use-memo":`error`,"react/void-use-memo":`error`,"react/capitalized-calls":`error`,"react/error-boundaries":`error`,"react/exhaustive-effect-dependencies":`error`,"react/globals":`error`,"react/hooks":`error`,"react/immutability":`error`,"react/incompatible-library":`error`,"react/invariant":`error`,"react/memo-dependencies":`error`,"react/no-deriving-state-in-effects":`error`,"react/preserve-manual-memoization":`error`,"react/purity":`error`,"react/refs":`error`,"react/rule-suppression":`error`,"react/set-state-in-effect":`error`,"react/set-state-in-render":`error`,"react/static-components":`error`,"react-perf/jsx-no-new-array-as-prop":void 0,"react-perf/jsx-no-new-function-as-prop":void 0,"react-perf/jsx-no-new-object-as-prop":void 0}}),s=e({plugins:[`typescript`],options:{typeAware:!0},rules:{"typescript/adjacent-overload-signatures":`error`,"typescript/array-type":[`error`,{default:`generic`,readonly:`generic`}],"typescript/await-thenable":`error`,"typescript/ban-ts-comment":[`error`,{"ts-ignore":`allow-with-description`}],"typescript/ban-tslint-comment":`error`,"typescript/ban-types":void 0,"typescript/class-literal-property-style":`error`,"typescript/consistent-generic-constructors":[`error`,`constructor`],"typescript/consistent-indexed-object-style":[`error`,`record`],"typescript/consistent-return":`off`,"typescript/consistent-type-assertions":[`error`,{assertionStyle:`as`}],"typescript/consistent-type-definitions":[`error`,`interface`],"typescript/consistent-type-exports":[`error`],"typescript/consistent-type-imports":[`error`,{fixStyle:`inline-type-imports`,prefer:`type-imports`,disallowTypeAnnotations:!1}],"typescript/dot-notation":[`error`,{allowKeywords:!0}],"typescript/explicit-function-return-type":void 0,"typescript/explicit-member-accessibility":void 0,"typescript/explicit-module-boundary-types":void 0,"typescript/method-signature-style":[`error`,`property`],"typescript/no-array-delete":`error`,"typescript/no-base-to-string":`error`,"typescript/no-confusing-non-null-assertion":`error`,"typescript/no-confusing-void-expression":`off`,"typescript/no-deprecated":`error`,"typescript/no-duplicate-enum-values":`error`,"typescript/no-duplicate-type-constituents":`error`,"typescript/no-dynamic-delete":`error`,"typescript/no-empty-interface":[`error`,{allowSingleExtends:!0}],"typescript/no-empty-object-type":[`error`,{allowInterfaces:`with-single-extends`,allowObjectTypes:`never`}],"typescript/no-explicit-any":[`error`],"typescript/no-extra-non-null-assertion":`error`,"typescript/no-extraneous-class":`error`,"typescript/no-floating-promises":`error`,"typescript/no-for-in-array":`error`,"typescript/no-implied-eval":`error`,"typescript/no-import-type-side-effects":[`error`],"typescript/no-inferrable-types":`error`,"typescript/no-invalid-void-type":`error`,"typescript/no-meaningless-void-operator":`error`,"typescript/no-misused-new":`error`,"typescript/no-misused-promises":`off`,"typescript/no-misused-spread":`error`,"typescript/no-mixed-enums":`error`,"typescript/no-namespace":`error`,"typescript/no-non-null-asserted-nullish-coalescing":`error`,"typescript/no-non-null-asserted-optional-chain":`error`,"typescript/no-non-null-assertion":`error`,"typescript/no-redundant-type-constituents":`error`,"typescript/no-require-imports":`error`,"typescript/no-restricted-types":void 0,"typescript/no-this-alias":`error`,"typescript/no-unnecessary-boolean-literal-compare":`error`,"typescript/no-unnecessary-condition":`error`,"typescript/no-unnecessary-parameter-property-assignment":`error`,"typescript/no-unnecessary-qualifier":`error`,"typescript/no-unnecessary-template-expression":`error`,"typescript/no-unnecessary-type-arguments":`error`,"typescript/no-unnecessary-type-assertion":`off`,"typescript/no-unnecessary-type-constraint":`error`,"typescript/no-unnecessary-type-conversion":`error`,"typescript/no-unnecessary-type-parameters":`error`,"typescript/no-unsafe-argument":`error`,"typescript/no-unsafe-assignment":`error`,"typescript/no-unsafe-call":`error`,"typescript/no-unsafe-declaration-merging":`error`,"typescript/no-unsafe-enum-comparison":`error`,"typescript/no-unsafe-function-type":`error`,"typescript/no-unsafe-member-access":`error`,"typescript/no-unsafe-return":`error`,"typescript/no-unsafe-type-assertion":`off`,"typescript/no-unsafe-unary-minus":`error`,"typescript/no-useless-default-assignment":`error`,"typescript/no-useless-empty-export":`error`,"typescript/no-var-requires":`error`,"typescript/no-wrapper-object-types":`error`,"typescript/non-nullable-type-assertion-style":`error`,"typescript/only-throw-error":`error`,"typescript/parameter-properties":[`error`,{prefer:`class-property`}],"typescript/prefer-as-const":`error`,"typescript/prefer-enum-initializers":`error`,"typescript/prefer-find":`error`,"typescript/prefer-for-of":`error`,"typescript/prefer-function-type":`error`,"typescript/prefer-includes":`error`,"typescript/prefer-literal-enum-member":`error`,"typescript/prefer-namespace-keyword":`error`,"typescript/prefer-nullish-coalescing":`error`,"typescript/prefer-optional-chain":`error`,"typescript/prefer-promise-reject-errors":`error`,"typescript/prefer-readonly":`error`,"typescript/prefer-readonly-parameter-types":`off`,"typescript/prefer-reduce-type-parameter":`error`,"typescript/prefer-regexp-exec":`error`,"typescript/prefer-return-this-type":`error`,"typescript/prefer-string-starts-ends-with":`error`,"typescript/prefer-ts-expect-error":void 0,"typescript/promise-function-async":void 0,"typescript/related-getter-setter-pairs":`error`,"typescript/require-array-sort-compare":`error`,"typescript/require-await":`error`,"typescript/restrict-plus-operands":[`error`,{allowAny:!1,allowBoolean:!1,allowNullish:!1,allowNumberAndString:!1,allowRegExp:!1}],"typescript/restrict-template-expressions":[`error`,{allowNumber:!0}],"typescript/return-await":[`error`,`error-handling-correctness-only`],"typescript/strict-boolean-expressions":void 0,"typescript/strict-void-return":`off`,"typescript/switch-exhaustiveness-check":`off`,"typescript/triple-slash-reference":`error`,"typescript/unbound-method":`off`,"typescript/unified-signatures":`error`,"typescript/use-unknown-in-catch-callback-variable":`error`}}),c=e({plugins:[`vitest`],settings:{vitest:{typecheck:!0}},rules:{"vitest/consistent-each-for":[`error`,{describe:`for`,suite:`for`,it:`for`,test:`for`}],"vitest/consistent-test-filename":[`error`,{pattern:String.raw`.*\.spec\.[tj]sx?$`,allTestPattern:String.raw`.*\.(test|spec)\.[tj]sx?$`}],"vitest/consistent-test-it":[`error`,{fn:`it`,withinDescribe:`it`}],"vitest/consistent-vitest-vi":[`error`,{fn:`vi`}],"vitest/expect-expect":[`error`,{additionalTestBlockFunctions:[`it`,`it.effect`,`it.scoped`],assertFunctionNames:[`expect`,`expectTypeOf`,`assert`,`assertType`,`assert*`,`*Equal`]}],"vitest/hoisted-apis-on-top":`error`,"vitest/max-expects":`error`,"vitest/max-nested-describe":`error`,"vitest/no-alias-methods":`error`,"vitest/no-commented-out-tests":`error`,"vitest/no-conditional-expect":`error`,"vitest/no-conditional-in-test":`error`,"vitest/no-conditional-tests":`error`,"vitest/no-disabled-tests":`error`,"vitest/no-duplicate-hooks":`error`,"vitest/no-focused-tests":`error`,"vitest/no-hooks":void 0,"vitest/no-identical-title":`error`,"vitest/no-import-node-test":`error`,"vitest/no-importing-vitest-globals":void 0,"vitest/no-interpolation-in-snapshots":`error`,"vitest/no-large-snapshots":void 0,"vitest/no-mocks-import":`error`,"vitest/no-restricted-matchers":void 0,"vitest/no-restricted-vi-methods":void 0,"vitest/no-standalone-expect":[`error`,{additionalTestBlockFunctions:[`it`,`it.effect`,`it.scoped`]}],"vitest/no-test-prefixes":`error`,"vitest/no-test-return-statement":`error`,"vitest/no-unneeded-async-expect-function":`error`,"vitest/prefer-called-exactly-once-with":`error`,"vitest/prefer-called-once":`error`,"vitest/prefer-called-times":void 0,"vitest/prefer-called-with":`error`,"vitest/prefer-comparison-matcher":`error`,"vitest/prefer-describe-function-title":`error`,"vitest/prefer-each":`error`,"vitest/prefer-equality-matcher":`error`,"vitest/prefer-expect-assertions":void 0,"vitest/prefer-expect-resolves":`error`,"vitest/prefer-expect-type-of":`error`,"vitest/prefer-hooks-in-order":`error`,"vitest/prefer-hooks-on-top":`error`,"vitest/prefer-import-in-mock":`error`,"vitest/prefer-importing-vitest-globals":void 0,"vitest/prefer-lowercase-title":`error`,"vitest/prefer-mock-promise-shorthand":`error`,"vitest/prefer-mock-return-shorthand":`error`,"vitest/prefer-snapshot-hint":[`error`,`always`],"vitest/prefer-spy-on":`error`,"vitest/prefer-strict-boolean-matchers":void 0,"vitest/prefer-strict-equal":`error`,"vitest/prefer-to-be":`error`,"vitest/prefer-to-be-falsy":`error`,"vitest/prefer-to-be-object":`error`,"vitest/prefer-to-be-truthy":`error`,"vitest/prefer-to-contain":`error`,"vitest/prefer-to-have-been-called-times":`error`,"vitest/prefer-to-have-length":`error`,"vitest/prefer-todo":`error`,"vitest/require-awaited-expect-poll":`error`,"vitest/require-hook":void 0,"vitest/require-local-test-context-for-concurrent-snapshots":`error`,"vitest/require-mock-type-parameters":`error`,"vitest/require-test-timeout":void 0,"vitest/require-to-throw-message":`error`,"vitest/require-top-level-describe":`error`,"vitest/valid-describe-callback":`error`,"vitest/valid-expect":`error`,"vitest/valid-expect-in-promise":`error`,"vitest/valid-title":[`error`,{ignoreTypeOfDescribeName:!0}],"vitest/warn-todo":`error`,"vitest/padding-around-after-all-blocks":void 0,"vitest/padding-around-test-blocks":void 0}}),l=e({options:{denyWarnings:!0,reportUnusedDisableDirectives:`deny`},categories:{nursery:`off`,pedantic:`off`,correctness:`off`,perf:`off`,style:`off`,restriction:`off`,suspicious:`off`},extends:[s,c,o,a],ignorePatterns:t});export{l as t};
2
+ //# sourceMappingURL=typescript-CkY-3Pw0.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"typescript-CkY-3Pw0.mjs","names":[],"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 '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,MAAa,EAAW,CAAC,WAAW,EACvB,EAAY,CAAC,yBAAyB,EACtC,EAAgB,CAAC,UAAW,WAAY,UAAU,ECElD,EAAkB,EAAa,CAC1C,UAAW,CACT,CACE,MAAO,CAAC,GAAG,CAAQ,EACnB,MAAO,CACL,uBAAwB,MACxB,WAAY,MACZ,iBAAkB,MAClB,qBAAsB,KACxB,CACF,EACA,CACE,MAAO,CAAC,GAAG,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,GAAG,CAAa,EACxB,MAAO,CACL,yCAA0C,KAC5C,CACF,CACF,CACF,CAAC,ECxCY,EAAc,EAAa,CACtC,QAAS,CACP,UAAW,EACb,EACA,QAAS,CAAC,QAAS,YAAY,EAC/B,UAAW,CACT,CACE,KAAM,YACN,UAAW,YAAY,QAAQ,0BAA0B,CAC3D,CACF,EACA,MAAO,CACL,wBAAyB,QACzB,wBAAyB,QACzB,sCAAuC,CAAC,QAAS,CAAE,gBAAiB,sBAAuB,CAAC,EAC5F,+BAAgC,QAChC,gBAAiB,QACjB,iCAAkC,OAClC,0CAA2C,QAC3C,0BAA2B,OAC3B,4BAA6B,QAC7B,gCAAiC,MACjC,2BAA4B,OAC5B,yBAA0B,QAC1B,yBAA0B,OAC1B,kBAAmB,OACnB,gCAAiC,QACjC,+BAAgC,OAChC,iCAAkC,QAClC,yBAA0B,QAC1B,qBAAsB,QACtB,6CAA8C,QAC9C,+BAAgC,QAChC,kBAAmB,OACnB,iCAAkC,OAClC,uBAAwB,QACxB,0BAA2B,QAC3B,sCAA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,GACzC,6BAA8B,QAC9B,sBAAuB,QACvB,4BAA6B,QAC7B,6BAA8B,QAC9B,6BAA8B,QAC9B,2BAA4B,QAC5B,0CAA2C,QAC3C,+BAAgC,QAChC,qBAAsB,QACtB,qCAAsC,QACtC,sBAAuB,IAAA,GACvB,6DAA8D,QAC9D,sCAAuC,QACvC,8BAA+B,IAAA,GAC/B,kCAAmC,QACnC,oCAAqC,QACrC,iCAAkC,QAClC,sBAAuB,QACvB,iCAAkC,QAClC,qBAAsB,CAAC,QAAS,CAAE,yBAA0B,EAAK,CAAC,EAClE,mBAAoB,QAEpB,yCAA0C,IAAA,GAC1C,oCAAqC,IAAA,EACvC,CACF,CAAC,ECrFY,EAAmB,EAAa,CAC3C,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,CAAC,EAAuB,EAAc,EAAa,CAAe,EAC3E,gBACF,CAAC"}
@@ -100,7 +100,6 @@ declare const typescriptConfig: {
100
100
  'react/self-closing-comp': "error";
101
101
  'react/void-dom-elements-no-children': "error";
102
102
  'react-perf/jsx-no-jsx-as-prop': "error";
103
- 'react-compiler/react-compiler': "error";
104
103
  'stylistic/jsx-curly-newline': "off";
105
104
  'stylistic/jsx-newline': ["error", {
106
105
  prevent: false;
@@ -138,11 +137,32 @@ declare const typescriptConfig: {
138
137
  'react/only-export-components': undefined;
139
138
  'react/prefer-es6-class': undefined;
140
139
  'react/prefer-function-component': undefined;
141
- 'react/react-compiler': undefined;
142
140
  'react/react-in-jsx-scope': undefined;
143
141
  'react/require-render-return': undefined;
144
142
  'react/state-in-constructor': undefined;
145
143
  'react/style-prop-object': undefined;
144
+ 'react/syntax': "error";
145
+ 'react/todo': "error";
146
+ 'react/unsupported-syntax': "error";
147
+ 'react/use-memo': "error";
148
+ 'react/void-use-memo': "error";
149
+ 'react/capitalized-calls': "error";
150
+ 'react/error-boundaries': "error";
151
+ 'react/exhaustive-effect-dependencies': "error";
152
+ 'react/globals': "error";
153
+ 'react/hooks': "error";
154
+ 'react/immutability': "error";
155
+ 'react/incompatible-library': "error";
156
+ 'react/invariant': "error";
157
+ 'react/memo-dependencies': "error";
158
+ 'react/no-deriving-state-in-effects': "error";
159
+ 'react/preserve-manual-memoization': "error";
160
+ 'react/purity': "error";
161
+ 'react/refs': "error";
162
+ 'react/rule-suppression': "error";
163
+ 'react/set-state-in-effect': "error";
164
+ 'react/set-state-in-render': "error";
165
+ 'react/static-components': "error";
146
166
  'react-perf/jsx-no-new-array-as-prop': undefined;
147
167
  'react-perf/jsx-no-new-function-as-prop': undefined;
148
168
  'react-perf/jsx-no-new-object-as-prop': undefined;
@@ -398,4 +418,5 @@ declare const typescriptConfig: {
398
418
  ignorePatterns: string[];
399
419
  };
400
420
  //#endregion
401
- export { typescriptConfig };
421
+ export { typescriptConfig };
422
+ //# sourceMappingURL=typescript.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"typescript.d.mts","names":[],"sources":["../src/typescript.ts"],"mappings":";cASa"}
@@ -1 +1 @@
1
- import{t as e}from"./typescript-CDMKHDlD.mjs";export{e as typescriptConfig};
1
+ import{t as e}from"./typescript-CkY-3Pw0.mjs";export{e as typescriptConfig};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@2digits/oxlint-config",
3
- "version": "0.8.1",
3
+ "version": "1.0.0",
4
4
  "description": "Minimal Oxlint config for 2digits projects.",
5
5
  "keywords": [
6
6
  "oxlint-config"
@@ -20,7 +20,6 @@
20
20
  "exports": {
21
21
  ".": "./dist/index.mjs",
22
22
  "./base": "./dist/base.mjs",
23
- "./effect": "./dist/effect.mjs",
24
23
  "./typescript": "./dist/typescript.mjs",
25
24
  "./package.json": "./package.json"
26
25
  },
@@ -28,27 +27,26 @@
28
27
  "access": "public"
29
28
  },
30
29
  "dependencies": {
30
+ "@2digits/constants": "1.1.18",
31
31
  "@stylistic/eslint-plugin": "5.10.0",
32
32
  "defu": "6.1.7",
33
- "eslint-plugin-react-compiler": "19.1.0-rc.2",
34
- "eslint-plugin-zod": "4.9.1",
35
- "@2digits/constants": "1.1.18"
33
+ "eslint-plugin-zod": "4.9.1"
36
34
  },
37
35
  "devDependencies": {
36
+ "@2digits/eslint-config": "5.6.3",
37
+ "@2digits/tsconfig": "0.8.7",
38
38
  "@arethetypeswrong/core": "0.18.5",
39
39
  "@types/node": "24.13.3",
40
40
  "@typescript/native-preview": "7.0.0-dev.20260707.2",
41
- "oxlint": "1.78.0",
41
+ "oxlint": "1.79.0",
42
42
  "oxlint-tsgolint": "7.0.2001",
43
- "publint": "0.3.23",
43
+ "publint": "0.3.24",
44
44
  "typescript": "6.0.3",
45
- "vite-plus": "0.2.9",
46
- "zod": "4.4.3",
47
- "@2digits/tsconfig": "0.8.7",
48
- "@2digits/eslint-config": "5.6.2"
45
+ "vite-plus": "0.3.0",
46
+ "zod": "4.4.3"
49
47
  },
50
48
  "peerDependencies": {
51
- "oxlint": "1.78.0",
49
+ "oxlint": "1.79.0",
52
50
  "oxlint-tsgolint": "7.0.2001"
53
51
  },
54
52
  "public": true,
@@ -1 +0,0 @@
1
- import{defineConfig as e}from"oxlint";import{ignorePatterns as t}from"@2digits/constants";const n=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}}),r=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":[`error`,{builtinGlobals:!1}],"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":[`error`,{array:!0,object:!0},{enforceForRenamedProperties:!0}],"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`]}}),i=e({plugins:[`jsdoc`],rules:{"jsdoc/check-access":`error`,"jsdoc/check-property-names":`error`,"jsdoc/check-tag-names":[`error`,{typed:!0}],"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`,"jsdoc/require-param-description":void 0,"jsdoc/require-param-type":void 0,"jsdoc/require-property-type":void 0,"jsdoc/require-returns":void 0,"jsdoc/require-returns-type":void 0,"jsdoc/require-throws-description":void 0,"jsdoc/require-throws-type":void 0,"jsdoc/require-yields-description":void 0,"jsdoc/require-yields-type":void 0}}),a=e({plugins:[`node`],rules:{"node/handle-callback-err":[`error`,`^(err|error)$`],"node/no-exports-assign":`error`,"node/no-new-require":`error`,"node/no-path-concat":`error`,"node/callback-return":void 0,"node/global-require":void 0,"node/no-mixed-requires":void 0,"node/no-process-env":void 0,"node/no-sync":void 0,"node/no-top-level-await":void 0}}),o=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`}}),s=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`}}),c=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-empty-custom-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-meta":`error`,"zod/prefer-meta-last":`error`,"zod/prefer-strict-object":`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/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}}),l=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:[r,s,n,a,o,i,c],ignorePatterns:t});export{l as t};