@2digits/oxlint-config 1.3.0 → 2.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.mts CHANGED
@@ -1170,7 +1170,9 @@ export declare const twoDigits: Omit<{
1170
1170
  'vitest/require-to-throw-message': "error";
1171
1171
  'vitest/require-top-level-describe': "error";
1172
1172
  'vitest/valid-describe-callback': "error";
1173
- 'vitest/valid-expect': "error";
1173
+ 'vitest/valid-expect': ["error", {
1174
+ maxArgs: number;
1175
+ }];
1174
1176
  'vitest/valid-expect-in-promise': "error";
1175
1177
  'vitest/valid-title': ["error", {
1176
1178
  ignoreTypeOfDescribeName: boolean;
@@ -2242,7 +2244,9 @@ export declare const twoDigits: Omit<{
2242
2244
  'vitest/require-to-throw-message': "error";
2243
2245
  'vitest/require-top-level-describe': "error";
2244
2246
  'vitest/valid-describe-callback': "error";
2245
- 'vitest/valid-expect': "error";
2247
+ 'vitest/valid-expect': ["error", {
2248
+ maxArgs: number;
2249
+ }];
2246
2250
  'vitest/valid-expect-in-promise': "error";
2247
2251
  'vitest/valid-title': ["error", {
2248
2252
  ignoreTypeOfDescribeName: boolean;
@@ -2258,17 +2262,6 @@ export declare const twoDigits: Omit<{
2258
2262
  reportUnusedDisableDirectives: "deny";
2259
2263
  };
2260
2264
  };
2261
- /**
2262
- * An Oxlint configuration that may enable plugins registered by a binary patch.
2263
- *
2264
- * Oxlint's generated `plugins` union only lists the plugins compiled into the published binary. `effect-tsgo patch
2265
- * --oxlint` adds `effecttsgo` to the binary and rewrites those declarations, so this type keeps such configs authorable
2266
- * from packages whose own Oxlint install is unpatched.
2267
- */
2268
- interface TwoDigitsConfig extends Omit<OxlintConfig$1, 'extends' | 'plugins'> {
2269
- extends?: Array<TwoDigitsConfig>;
2270
- plugins?: Array<'effecttsgo' | NonNullable<OxlintConfig$1['plugins']>[number]>;
2271
- }
2272
2265
  /**
2273
2266
  * Extend the 2digits defaults with consumer configuration.
2274
2267
  *
@@ -2276,10 +2269,10 @@ interface TwoDigitsConfig extends Omit<OxlintConfig$1, 'extends' | 'plugins'> {
2276
2269
  *
2277
2270
  * @param configs Consumer configurations to merge into the defaults.
2278
2271
  */
2279
- export declare function withTwoDigits(...configs: Array<TwoDigitsConfig>): TwoDigitsConfig;
2272
+ export declare function withTwoDigits(...configs: Array<OxlintConfig$1>): OxlintConfig$1;
2280
2273
  //#endregion
2281
2274
  //#region src/index.d.ts
2282
2275
  export type RuleName = keyof DummyRuleMap$1;
2283
2276
  //#endregion
2284
- export { type DummyRuleMap, type OxlintConfig, type OxlintOverride, type RuleMap, type TwoDigitsConfig, withTwoDigits as default };
2277
+ export { type DummyRuleMap, type OxlintConfig, type OxlintOverride, type RuleMap, withTwoDigits as default };
2285
2278
  //# sourceMappingURL=index.d.mts.map
@@ -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;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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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;UASL,wBAAwB,KAAKC;EAC5C,UAAU,MAAM;EAChB,UAAU,qBAAqB,YAAYA;;;;;;;;;wBAY7B,iBAAiB,SAAS,MAAM,mBAAmB;;;YC1BvD,iBAAiBC"}
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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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;wBASN,iBAAiB,SAAS,MAAMC,kBAAgBA;;;YCbpD,iBAAiBC"}
package/dist/index.mjs CHANGED
@@ -1,2 +1,2 @@
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};
1
+ import{t as e}from"./base-BzZfZp_U.mjs";import{t}from"./typescript-BkyGrK_9.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
@@ -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\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
+ {"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 * 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<OxlintConfig>): OxlintConfig {\n let config: OxlintConfig = 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 = [];\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,EASxE,SAAgBC,EAAc,GAAGC,EAA4C,CAC3E,IAAIC,EAAuBN,EAMrBO,EAAiB,CAAC,EAExB,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,2 +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
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`,{maxArgs:2}],"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-BkyGrK_9.mjs.map
@@ -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;\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,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AA,GAC1C,oCAAqC,IAAA,EACvC,CACF,CAAC,ECrFYI,EAAmBJ,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,CAACE,EAAuBC,EAAcF,EAAaF,CAAe,EAC3E,gBACF,CAAC"}
1
+ {"version":3,"file":"typescript-BkyGrK_9.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', { maxArgs: 2 }],\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,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,CAAC,EAC/C,iCAAkC,QAClC,qBAAsB,CAAC,QAAS,CAAE,yBAA0B,EAAK,CAAC,EAClE,mBAAoB,QAEpB,yCAA0C,IAAA,GAC1C,oCAAqC,IAAA,EACvC,CACF,CAAC,ECrFYI,EAAmBJ,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,CAACE,EAAuBC,EAAcF,EAAaF,CAAe,EAC3E,gBACF,CAAC"}
@@ -405,7 +405,9 @@ export declare const typescriptConfig: {
405
405
  'vitest/require-to-throw-message': "error";
406
406
  'vitest/require-top-level-describe': "error";
407
407
  'vitest/valid-describe-callback': "error";
408
- 'vitest/valid-expect': "error";
408
+ 'vitest/valid-expect': ["error", {
409
+ maxArgs: number;
410
+ }];
409
411
  'vitest/valid-expect-in-promise': "error";
410
412
  'vitest/valid-title': ["error", {
411
413
  ignoreTypeOfDescribeName: boolean;
@@ -1 +1 @@
1
- import{t as e}from"./typescript-CkY-3Pw0.mjs";export{e as typescriptConfig};
1
+ import{t as e}from"./typescript-BkyGrK_9.mjs";export{e as typescriptConfig};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@2digits/oxlint-config",
3
- "version": "1.3.0",
3
+ "version": "2.0.1",
4
4
  "description": "Minimal Oxlint config for 2digits projects.",
5
5
  "keywords": [
6
6
  "oxlint-config"
@@ -28,27 +28,27 @@
28
28
  },
29
29
  "dependencies": {
30
30
  "@2digits/constants": "1.1.20",
31
- "@2digits/oxlint-plugin": "0.1.0",
31
+ "@2digits/oxlint-plugin": "0.1.2",
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.4",
38
- "@2digits/tsconfig": "0.9.1",
37
+ "@2digits/eslint-config": "5.8.7",
38
+ "@2digits/tsconfig": "0.9.2",
39
39
  "@arethetypeswrong/core": "0.18.5",
40
40
  "@types/node": "24.19.1",
41
41
  "dedent": "1.7.2",
42
- "oxlint": "1.86.0",
42
+ "oxlint": "1.87.0",
43
43
  "oxlint-tsgolint": "7.0.2003",
44
44
  "publint": "0.3.25",
45
45
  "typescript": "7.0.2",
46
- "vite-plus": "1.0.0",
46
+ "vite-plus": "1.1.0",
47
47
  "vitest": "5.0.3",
48
48
  "zod": "4.6.5"
49
49
  },
50
50
  "peerDependencies": {
51
- "oxlint": "1.86.0",
51
+ "oxlint": "1.87.0",
52
52
  "oxlint-tsgolint": "7.0.2003"
53
53
  },
54
54
  "public": true,