@2digits/oxlint-config 0.6.17 → 0.7.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.mjs CHANGED
@@ -1 +1 @@
1
- import{t as e}from"./base-DDWqp-yG.mjs";import{t}from"./typescript-C5De5VIw.mjs";import{defineConfig as n}from"@oxlint-types/define-config";import{defu as r}from"defu";const i=n(r(e,t));function a(...e){let t=i;for(let n of e)t=r(n,t);return n(t)}export{a as default,a as withTwoDigits,i as twoDigits};
1
+ import{t as e}from"./base-Ddkw7kpS.mjs";import{t}from"./typescript-CDMKHDlD.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;for(let r of e)t=n(r,t);return r(t)}export{a as default,a as withTwoDigits,i as twoDigits};
@@ -0,0 +1 @@
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:`react-compiler`,specifier:import.meta.resolve(`eslint-plugin-react-compiler`)},{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`,"react-compiler/react-compiler":`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-compiler":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-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};
@@ -1,24 +1,158 @@
1
1
  //#region src/typescript.d.ts
2
2
  declare const typescriptConfig: {
3
- readonly options: {
4
- readonly denyWarnings: true;
5
- readonly reportUnusedDisableDirectives: "deny";
3
+ options: {
4
+ denyWarnings: true;
5
+ reportUnusedDisableDirectives: "deny";
6
6
  };
7
- readonly categories: {
8
- readonly nursery: "off";
9
- readonly pedantic: "off";
10
- readonly correctness: "off";
11
- readonly perf: "off";
12
- readonly style: "off";
13
- readonly restriction: "off";
14
- readonly suspicious: "off";
7
+ categories: {
8
+ nursery: "off";
9
+ pedantic: "off";
10
+ correctness: "off";
11
+ perf: "off";
12
+ style: "off";
13
+ restriction: "off";
14
+ suspicious: "off";
15
15
  };
16
- readonly extends: [{
17
- readonly plugins: ["typescript"];
18
- readonly options: {
19
- readonly typeAware: true;
16
+ extends: ({
17
+ overrides: ({
18
+ files: "**/*.d.ts"[];
19
+ rules: {
20
+ 'no-duplicate-imports': "off";
21
+ 'no-undef': "off";
22
+ 'no-unused-vars': "off";
23
+ 'import/unambiguous': "off";
24
+ 'no-unused-expressions'?: undefined;
25
+ 'typescript/no-import-type-side-effects'?: undefined;
26
+ };
27
+ globals?: undefined;
28
+ } | {
29
+ files: "**/*.{test,spec}.ts?(x)"[];
30
+ globals: {
31
+ afterAll: "readonly";
32
+ afterEach: "readonly";
33
+ beforeAll: "readonly";
34
+ beforeEach: "readonly";
35
+ bench: "readonly";
36
+ describe: "readonly";
37
+ expect: "readonly";
38
+ expectTypeOf: "readonly";
39
+ it: "readonly";
40
+ suite: "readonly";
41
+ test: "readonly";
42
+ vi: "readonly";
43
+ };
44
+ rules: {
45
+ 'no-duplicate-imports'?: undefined;
46
+ 'no-undef'?: undefined;
47
+ 'no-unused-vars'?: undefined;
48
+ 'import/unambiguous'?: undefined;
49
+ 'no-unused-expressions': "off";
50
+ 'typescript/no-import-type-side-effects'?: undefined;
51
+ };
52
+ } | {
53
+ globals?: undefined;
54
+ files: ("**/*.cjs" | "**/*.cts" | "**/*.js")[];
55
+ rules: {
56
+ 'no-duplicate-imports'?: undefined;
57
+ 'no-undef'?: undefined;
58
+ 'no-unused-vars'?: undefined;
59
+ 'import/unambiguous'?: undefined;
60
+ 'no-unused-expressions'?: undefined;
61
+ 'typescript/no-import-type-side-effects': "off";
62
+ };
63
+ })[];
64
+ } | {
65
+ options: {
66
+ typeAware: true;
20
67
  };
21
- readonly rules: {
68
+ plugins: ("react" | "react-perf")[];
69
+ jsPlugins: {
70
+ name: string;
71
+ specifier: string;
72
+ }[];
73
+ rules: {
74
+ 'react/button-has-type': "error";
75
+ 'react/exhaustive-deps': "error";
76
+ 'react/function-component-definition': ["error", {
77
+ namedComponents: "function-declaration";
78
+ }];
79
+ 'react/iframe-missing-sandbox': "error";
80
+ 'react/jsx-key': "error";
81
+ 'react/jsx-no-comment-textnodes': "warn";
82
+ 'react/jsx-no-constructed-context-values': "error";
83
+ 'react/jsx-no-script-url': "warn";
84
+ 'react/jsx-no-target-blank': "error";
85
+ 'react/jsx-no-useless-fragment': "off";
86
+ 'react/no-array-index-key': "warn";
87
+ 'react/no-children-prop': "error";
88
+ 'react/no-clone-element': "warn";
89
+ 'react/no-danger': "warn";
90
+ 'react/no-danger-with-children': "error";
91
+ 'react/no-did-mount-set-state': "warn";
92
+ 'react/no-direct-mutation-state': "error";
93
+ 'react/no-find-dom-node': "error";
94
+ 'react/no-namespace': "error";
95
+ 'react/no-redundant-should-component-update': "error";
96
+ 'react/no-render-return-value': "error";
97
+ 'react/no-unsafe': "warn";
98
+ 'react/no-will-update-set-state': "warn";
99
+ 'react/rules-of-hooks': "error";
100
+ 'react/self-closing-comp': "error";
101
+ 'react/void-dom-elements-no-children': "error";
102
+ 'react-perf/jsx-no-jsx-as-prop': "error";
103
+ 'react-compiler/react-compiler': "error";
104
+ 'stylistic/jsx-curly-newline': "off";
105
+ 'stylistic/jsx-newline': ["error", {
106
+ prevent: false;
107
+ }];
108
+ 'react/checked-requires-onchange-or-readonly': undefined;
109
+ 'react/display-name': "off";
110
+ 'react/forbid-component-props': undefined;
111
+ 'react/forbid-dom-props': undefined;
112
+ 'react/forbid-elements': undefined;
113
+ 'react/forward-ref-uses-ref': "off";
114
+ 'react/hook-use-state': "error";
115
+ 'react/jsx-boolean-value': "off";
116
+ 'react/jsx-curly-brace-presence': undefined;
117
+ 'react/jsx-filename-extension': "off";
118
+ 'react/jsx-fragments': "off";
119
+ 'react/jsx-handler-names': undefined;
120
+ 'react/jsx-max-depth': undefined;
121
+ 'react/jsx-no-duplicate-props': undefined;
122
+ 'react/jsx-no-literals': undefined;
123
+ 'react/jsx-no-undef': undefined;
124
+ 'react/jsx-pascal-case': "off";
125
+ 'react/jsx-props-no-spread-multi': undefined;
126
+ 'react/jsx-props-no-spreading': undefined;
127
+ 'react/no-did-update-set-state': "off";
128
+ 'react/no-is-mounted': undefined;
129
+ 'react/no-multi-comp': undefined;
130
+ 'react/no-object-type-as-default-prop': "off";
131
+ 'react/no-react-children': undefined;
132
+ 'react/no-set-state': undefined;
133
+ 'react/no-string-refs': "off";
134
+ 'react/no-this-in-sfc': undefined;
135
+ 'react/no-unescaped-entities': undefined;
136
+ 'react/no-unknown-property': "off";
137
+ 'react/no-unstable-nested-components': "off";
138
+ 'react/only-export-components': undefined;
139
+ 'react/prefer-es6-class': undefined;
140
+ 'react/prefer-function-component': undefined;
141
+ 'react/react-compiler': undefined;
142
+ 'react/react-in-jsx-scope': undefined;
143
+ 'react/require-render-return': undefined;
144
+ 'react/state-in-constructor': undefined;
145
+ 'react/style-prop-object': undefined;
146
+ 'react-perf/jsx-no-new-array-as-prop': undefined;
147
+ 'react-perf/jsx-no-new-function-as-prop': undefined;
148
+ 'react-perf/jsx-no-new-object-as-prop': undefined;
149
+ };
150
+ } | {
151
+ plugins: "typescript"[];
152
+ options: {
153
+ typeAware: true;
154
+ };
155
+ rules: {
22
156
  'typescript/adjacent-overload-signatures': "error";
23
157
  'typescript/array-type': ["error", {
24
158
  default: "generic";
@@ -29,16 +163,16 @@ declare const typescriptConfig: {
29
163
  'ts-ignore': "allow-with-description";
30
164
  }];
31
165
  'typescript/ban-tslint-comment': "error";
166
+ 'typescript/ban-types': undefined;
32
167
  'typescript/class-literal-property-style': "error";
33
168
  'typescript/consistent-generic-constructors': ["error", "constructor"];
34
169
  'typescript/consistent-indexed-object-style': ["error", "record"];
170
+ 'typescript/consistent-return': "off";
35
171
  'typescript/consistent-type-assertions': ["error", {
36
172
  assertionStyle: "as";
37
173
  }];
38
174
  'typescript/consistent-type-definitions': ["error", "interface"];
39
- 'typescript/consistent-type-exports': ["error", {
40
- fixMixedExportsWithInlineTypeSpecifier: true;
41
- }];
175
+ 'typescript/consistent-type-exports': ["error"];
42
176
  'typescript/consistent-type-imports': ["error", {
43
177
  fixStyle: "inline-type-imports";
44
178
  prefer: "type-imports";
@@ -47,13 +181,14 @@ declare const typescriptConfig: {
47
181
  'typescript/dot-notation': ["error", {
48
182
  allowKeywords: true;
49
183
  }];
184
+ 'typescript/explicit-function-return-type': undefined;
185
+ 'typescript/explicit-member-accessibility': undefined;
186
+ 'typescript/explicit-module-boundary-types': undefined;
187
+ 'typescript/method-signature-style': ["error", "property"];
50
188
  'typescript/no-array-delete': "error";
51
189
  'typescript/no-base-to-string': "error";
52
190
  'typescript/no-confusing-non-null-assertion': "error";
53
- 'typescript/no-confusing-void-expression': ["error", {
54
- ignoreArrowShorthand: true;
55
- ignoreVoidOperator: true;
56
- }];
191
+ 'typescript/no-confusing-void-expression': "off";
57
192
  'typescript/no-deprecated': "error";
58
193
  'typescript/no-duplicate-enum-values': "error";
59
194
  'typescript/no-duplicate-type-constituents': "error";
@@ -65,45 +200,35 @@ declare const typescriptConfig: {
65
200
  allowInterfaces: "with-single-extends";
66
201
  allowObjectTypes: "never";
67
202
  }];
68
- 'typescript/no-explicit-any': ["error", {
69
- fixToUnknown: true;
70
- ignoreRestArgs: true;
71
- }];
203
+ 'typescript/no-explicit-any': ["error"];
72
204
  'typescript/no-extra-non-null-assertion': "error";
73
- 'typescript/no-extraneous-class': ["error", {
74
- allowStaticOnly: true;
75
- }];
205
+ 'typescript/no-extraneous-class': "error";
76
206
  'typescript/no-floating-promises': "error";
77
207
  'typescript/no-for-in-array': "error";
78
208
  'typescript/no-implied-eval': "error";
79
- 'typescript/no-import-type-side-effects': "error";
209
+ 'typescript/no-import-type-side-effects': ["error"];
80
210
  'typescript/no-inferrable-types': "error";
81
211
  'typescript/no-invalid-void-type': "error";
82
212
  'typescript/no-meaningless-void-operator': "error";
83
213
  'typescript/no-misused-new': "error";
84
- 'typescript/no-misused-promises': ["error", {
85
- checksVoidReturn: boolean;
86
- }];
214
+ 'typescript/no-misused-promises': "off";
87
215
  'typescript/no-misused-spread': "error";
88
216
  'typescript/no-mixed-enums': "error";
89
- 'typescript/no-namespace': ["error", {
90
- allowDefinitionFiles: true;
91
- }];
217
+ 'typescript/no-namespace': "error";
92
218
  'typescript/no-non-null-asserted-nullish-coalescing': "error";
93
219
  'typescript/no-non-null-asserted-optional-chain': "error";
94
220
  'typescript/no-non-null-assertion': "error";
95
221
  'typescript/no-redundant-type-constituents': "error";
96
222
  'typescript/no-require-imports': "error";
223
+ 'typescript/no-restricted-types': undefined;
97
224
  'typescript/no-this-alias': "error";
98
225
  'typescript/no-unnecessary-boolean-literal-compare': "error";
99
- 'typescript/no-unnecessary-condition': ["error", {
100
- allowConstantLoopConditions: string;
101
- }];
226
+ 'typescript/no-unnecessary-condition': "error";
102
227
  'typescript/no-unnecessary-parameter-property-assignment': "error";
103
228
  'typescript/no-unnecessary-qualifier': "error";
104
229
  'typescript/no-unnecessary-template-expression': "error";
105
230
  'typescript/no-unnecessary-type-arguments': "error";
106
- 'typescript/no-unnecessary-type-assertion': "error";
231
+ 'typescript/no-unnecessary-type-assertion': "off";
107
232
  'typescript/no-unnecessary-type-constraint': "error";
108
233
  'typescript/no-unnecessary-type-conversion': "error";
109
234
  'typescript/no-unnecessary-type-parameters': "error";
@@ -115,6 +240,7 @@ declare const typescriptConfig: {
115
240
  'typescript/no-unsafe-function-type': "error";
116
241
  'typescript/no-unsafe-member-access': "error";
117
242
  'typescript/no-unsafe-return': "error";
243
+ 'typescript/no-unsafe-type-assertion': "off";
118
244
  'typescript/no-unsafe-unary-minus': "error";
119
245
  'typescript/no-useless-default-assignment': "error";
120
246
  'typescript/no-useless-empty-export': "error";
@@ -137,45 +263,43 @@ declare const typescriptConfig: {
137
263
  'typescript/prefer-optional-chain': "error";
138
264
  'typescript/prefer-promise-reject-errors': "error";
139
265
  'typescript/prefer-readonly': "error";
266
+ 'typescript/prefer-readonly-parameter-types': "off";
140
267
  'typescript/prefer-reduce-type-parameter': "error";
141
268
  'typescript/prefer-regexp-exec': "error";
142
269
  'typescript/prefer-return-this-type': "error";
143
270
  'typescript/prefer-string-starts-ends-with': "error";
271
+ 'typescript/prefer-ts-expect-error': undefined;
272
+ 'typescript/promise-function-async': undefined;
144
273
  'typescript/related-getter-setter-pairs': "error";
145
274
  'typescript/require-array-sort-compare': "error";
146
275
  'typescript/require-await': "error";
147
- 'typescript/restrict-plus-operands': "error";
276
+ 'typescript/restrict-plus-operands': ["error", {
277
+ allowAny: false;
278
+ allowBoolean: false;
279
+ allowNullish: false;
280
+ allowNumberAndString: false;
281
+ allowRegExp: false;
282
+ }];
148
283
  'typescript/restrict-template-expressions': ["error", {
149
284
  allowNumber: true;
150
285
  }];
151
286
  'typescript/return-await': ["error", "error-handling-correctness-only"];
287
+ 'typescript/strict-boolean-expressions': undefined;
288
+ 'typescript/strict-void-return': "off";
289
+ 'typescript/switch-exhaustiveness-check': "off";
152
290
  'typescript/triple-slash-reference': "error";
291
+ 'typescript/unbound-method': "off";
153
292
  'typescript/unified-signatures': "error";
154
293
  'typescript/use-unknown-in-catch-callback-variable': "error";
155
- 'typescript/ban-types': undefined;
156
- 'typescript/consistent-return': undefined;
157
- 'typescript/explicit-function-return-type': undefined;
158
- 'typescript/explicit-member-accessibility': undefined;
159
- 'typescript/explicit-module-boundary-types': undefined;
160
- 'typescript/method-signature-style': undefined;
161
- 'typescript/no-restricted-types': undefined;
162
- 'typescript/no-unsafe-type-assertion': undefined;
163
- 'typescript/prefer-readonly-parameter-types': undefined;
164
- 'typescript/prefer-ts-expect-error': undefined;
165
- 'typescript/promise-function-async': undefined;
166
- 'typescript/strict-boolean-expressions': undefined;
167
- 'typescript/strict-void-return': undefined;
168
- 'typescript/switch-exhaustiveness-check': undefined;
169
- 'typescript/unbound-method': "off";
170
294
  };
171
- }, {
172
- readonly plugins: ["vitest"];
173
- readonly settings: {
174
- readonly vitest: {
175
- readonly typecheck: true;
295
+ } | {
296
+ plugins: "vitest"[];
297
+ settings: {
298
+ vitest: {
299
+ typecheck: true;
176
300
  };
177
301
  };
178
- readonly rules: {
302
+ rules: {
179
303
  'vitest/consistent-each-for': ["error", {
180
304
  describe: "for";
181
305
  suite: "for";
@@ -186,7 +310,10 @@ declare const typescriptConfig: {
186
310
  pattern: string;
187
311
  allTestPattern: string;
188
312
  }];
189
- 'vitest/consistent-test-it': "error";
313
+ 'vitest/consistent-test-it': ["error", {
314
+ fn: "it";
315
+ withinDescribe: "it";
316
+ }];
190
317
  'vitest/consistent-vitest-vi': ["error", {
191
318
  fn: "vi";
192
319
  }];
@@ -238,7 +365,7 @@ declare const typescriptConfig: {
238
365
  'vitest/prefer-lowercase-title': "error";
239
366
  'vitest/prefer-mock-promise-shorthand': "error";
240
367
  'vitest/prefer-mock-return-shorthand': "error";
241
- 'vitest/prefer-snapshot-hint': ["error", string];
368
+ 'vitest/prefer-snapshot-hint': ["error", "always"];
242
369
  'vitest/prefer-spy-on': "error";
243
370
  'vitest/prefer-strict-boolean-matchers': undefined;
244
371
  'vitest/prefer-strict-equal': "error";
@@ -260,136 +387,15 @@ declare const typescriptConfig: {
260
387
  'vitest/valid-describe-callback': "error";
261
388
  'vitest/valid-expect': "error";
262
389
  'vitest/valid-expect-in-promise': "error";
263
- 'vitest/valid-title': undefined;
390
+ 'vitest/valid-title': ["error", {
391
+ ignoreTypeOfDescribeName: boolean;
392
+ }];
264
393
  'vitest/warn-todo': "error";
265
394
  'vitest/padding-around-after-all-blocks': undefined;
266
395
  'vitest/padding-around-test-blocks': undefined;
267
396
  };
268
- }, {
269
- readonly options: {
270
- readonly typeAware: true;
271
- };
272
- readonly plugins: ["react", "react-perf"];
273
- readonly jsPlugins: [{
274
- readonly name: "react-compiler";
275
- readonly specifier: string;
276
- }, {
277
- readonly name: "stylistic";
278
- readonly specifier: string;
279
- }];
280
- readonly rules: {
281
- 'react/button-has-type': "error";
282
- 'react/exhaustive-deps': "error";
283
- 'react/function-component-definition': ["error", {
284
- namedComponents: string;
285
- }];
286
- 'react/iframe-missing-sandbox': "error";
287
- 'react/jsx-key': "error";
288
- 'react/jsx-no-comment-textnodes': "warn";
289
- 'react/jsx-no-constructed-context-values': "error";
290
- 'react/jsx-no-script-url': "warn";
291
- 'react/jsx-no-target-blank': "error";
292
- 'react/jsx-no-useless-fragment': "off";
293
- 'react/no-array-index-key': "warn";
294
- 'react/no-children-prop': "error";
295
- 'react/no-clone-element': "warn";
296
- 'react/no-danger': "warn";
297
- 'react/no-danger-with-children': "error";
298
- 'react/no-did-mount-set-state': "warn";
299
- 'react/no-direct-mutation-state': "error";
300
- 'react/no-find-dom-node': "error";
301
- 'react/no-namespace': "error";
302
- 'react/no-redundant-should-component-update': "error";
303
- 'react/no-render-return-value': "error";
304
- 'react/no-unsafe': "warn";
305
- 'react/no-will-update-set-state': "warn";
306
- 'react/rules-of-hooks': "error";
307
- 'react/self-closing-comp': "error";
308
- 'react/void-dom-elements-no-children': "error";
309
- 'react_perf/jsx-no-jsx-as-prop': "error";
310
- 'react-compiler/react-compiler': "error";
311
- 'stylistic/jsx-curly-newline': "off";
312
- 'stylistic/jsx-newline': ["error", {
313
- prevent: false;
314
- }];
315
- 'react/checked-requires-onchange-or-readonly': undefined;
316
- 'react/display-name': "off";
317
- 'react/forbid-component-props': undefined;
318
- 'react/forbid-dom-props': undefined;
319
- 'react/forbid-elements': undefined;
320
- 'react/forward-ref-uses-ref': "off";
321
- 'react/hook-use-state': "off";
322
- 'react/jsx-boolean-value': "off";
323
- 'react/jsx-curly-brace-presence': undefined;
324
- 'react/jsx-filename-extension': "off";
325
- 'react/jsx-fragments': "off";
326
- 'react/jsx-handler-names': undefined;
327
- 'react/jsx-max-depth': undefined;
328
- 'react/jsx-no-duplicate-props': undefined;
329
- 'react/jsx-no-literals': undefined;
330
- 'react/jsx-no-undef': undefined;
331
- 'react/jsx-pascal-case': "off";
332
- 'react/jsx-props-no-spread-multi': undefined;
333
- 'react/jsx-props-no-spreading': undefined;
334
- 'react/no-did-update-set-state': "off";
335
- 'react/no-is-mounted': undefined;
336
- 'react/no-multi-comp': undefined;
337
- 'react/no-object-type-as-default-prop': "off";
338
- 'react/no-react-children': undefined;
339
- 'react/no-set-state': undefined;
340
- 'react/no-string-refs': "off";
341
- 'react/no-this-in-sfc': undefined;
342
- 'react/no-unescaped-entities': undefined;
343
- 'react/no-unknown-property': "off";
344
- 'react/no-unstable-nested-components': "off";
345
- 'react/only-export-components': undefined;
346
- 'react/prefer-es6-class': undefined;
347
- 'react/prefer-function-component': undefined;
348
- 'react/react-compiler': undefined;
349
- 'react/react-in-jsx-scope': undefined;
350
- 'react/require-render-return': undefined;
351
- 'react/state-in-constructor': undefined;
352
- 'react/style-prop-object': undefined;
353
- 'react_perf/jsx-no-new-array-as-prop': undefined;
354
- 'react_perf/jsx-no-new-function-as-prop': undefined;
355
- 'react_perf/jsx-no-new-object-as-prop': undefined;
356
- };
357
- }, {
358
- readonly overrides: [{
359
- readonly files: ["**/*.d.ts"];
360
- readonly rules: {
361
- readonly 'eslint/no-duplicate-imports': "off";
362
- readonly 'eslint/no-undef': "off";
363
- readonly 'eslint/no-unused-vars': "off";
364
- readonly 'import/unambiguous': "off";
365
- };
366
- }, {
367
- readonly files: ["**/*.{test,spec}.ts?(x)"];
368
- readonly globals: {
369
- readonly afterAll: "readonly";
370
- readonly afterEach: "readonly";
371
- readonly beforeAll: "readonly";
372
- readonly beforeEach: "readonly";
373
- readonly bench: "readonly";
374
- readonly describe: "readonly";
375
- readonly expect: "readonly";
376
- readonly expectTypeOf: "readonly";
377
- readonly it: "readonly";
378
- readonly suite: "readonly";
379
- readonly test: "readonly";
380
- readonly vi: "readonly";
381
- };
382
- readonly rules: {
383
- readonly 'eslint/no-unused-expressions': "off";
384
- };
385
- }, {
386
- readonly files: ["**/*.js", "**/*.cjs", "**/*.cts"];
387
- readonly rules: {
388
- readonly 'typescript/no-import-type-side-effects': "off";
389
- };
390
- }];
391
- }];
392
- readonly ignorePatterns: string[];
397
+ })[];
398
+ ignorePatterns: string[];
393
399
  };
394
400
  //#endregion
395
401
  export { typescriptConfig };
@@ -1 +1 @@
1
- import{t as e}from"./typescript-C5De5VIw.mjs";export{e as typescriptConfig};
1
+ import{t as e}from"./typescript-CDMKHDlD.mjs";export{e as typescriptConfig};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@2digits/oxlint-config",
3
- "version": "0.6.17",
3
+ "version": "0.7.0",
4
4
  "description": "Minimal Oxlint config for 2digits projects.",
5
5
  "keywords": [
6
6
  "oxlint-config"
@@ -27,7 +27,6 @@
27
27
  "access": "public"
28
28
  },
29
29
  "dependencies": {
30
- "@oxlint-types/define-config": "0.0.13",
31
30
  "@stylistic/eslint-plugin": "5.10.0",
32
31
  "defu": "6.1.7",
33
32
  "eslint-plugin-react-compiler": "19.1.0-rc.2",
@@ -38,16 +37,17 @@
38
37
  "@arethetypeswrong/core": "0.18.5",
39
38
  "@types/node": "24.13.3",
40
39
  "@typescript/native-preview": "7.0.0-dev.20260707.2",
41
- "oxlint": "1.76.0",
40
+ "oxlint": "1.77.0",
42
41
  "oxlint-tsgolint": "7.0.2001",
43
- "publint": "0.3.22",
42
+ "publint": "0.3.23",
44
43
  "typescript": "6.0.3",
45
- "vite-plus": "0.2.6",
44
+ "vite-plus": "0.2.8",
46
45
  "zod": "4.4.3",
46
+ "@2digits/eslint-config": "5.6.0",
47
47
  "@2digits/tsconfig": "0.8.7"
48
48
  },
49
49
  "peerDependencies": {
50
- "oxlint": "1.76.0",
50
+ "oxlint": "1.77.0",
51
51
  "oxlint-tsgolint": "7.0.2001"
52
52
  },
53
53
  "public": true,
@@ -1 +0,0 @@
1
- import{defineConfig as e}from"@oxlint-types/define-config";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:{"eslint/accessor-pairs":[`error`,{enforceForClassMembers:!0,setWithoutGet:!0}],"eslint/array-callback-return":`error`,"eslint/arrow-body-style":[`error`,`as-needed`,{requireReturnForObjectLiteral:!1}],"eslint/block-scoped-var":`error`,"eslint/capitalized-comments":`error`,"eslint/class-methods-use-this":void 0,"eslint/complexity":[`error`,{variant:`modified`,max:20}],"eslint/constructor-super":`error`,"eslint/curly":`error`,"eslint/default-case":void 0,"eslint/default-case-last":`error`,"eslint/default-param-last":`error`,"eslint/eqeqeq":[`error`,`smart`],"eslint/for-direction":`error`,"eslint/func-name-matching":void 0,"eslint/func-names":[`error`,`always`,{generators:`never`}],"eslint/func-style":[`error`,`declaration`,{allowTypeAnnotation:!0}],"eslint/getter-return":`error`,"eslint/grouped-accessor-pairs":`error`,"eslint/guard-for-in":`error`,"eslint/id-length":void 0,"eslint/init-declarations":void 0,"eslint/logical-assignment-operators":[`error`,`always`],"eslint/max-classes-per-file":void 0,"eslint/max-depth":void 0,"eslint/max-lines":void 0,"eslint/max-lines-per-function":void 0,"eslint/max-nested-callbacks":void 0,"eslint/max-params":void 0,"eslint/max-statements":void 0,"eslint/new-cap":[`error`,{capIsNew:!1,newIsCap:!0,properties:!0}],"eslint/no-alert":`error`,"eslint/no-array-constructor":`error`,"eslint/no-async-promise-executor":`error`,"eslint/no-await-in-loop":`error`,"eslint/no-bitwise":void 0,"eslint/no-caller":`error`,"eslint/no-case-declarations":`error`,"eslint/no-class-assign":`error`,"eslint/no-compare-neg-zero":`error`,"eslint/no-cond-assign":[`error`,`always`],"eslint/no-console":void 0,"eslint/no-const-assign":`error`,"eslint/no-constant-binary-expression":`error`,"eslint/no-constant-condition":[`error`,{checkLoops:`allExceptWhileTrue`}],"eslint/no-constructor-return":`error`,"eslint/no-continue":void 0,"eslint/no-control-regex":`error`,"eslint/no-debugger":`error`,"eslint/no-delete-var":`error`,"eslint/no-div-regex":`error`,"eslint/no-dupe-class-members":`error`,"eslint/no-dupe-else-if":`error`,"eslint/no-dupe-keys":`error`,"eslint/no-duplicate-case":`error`,"eslint/no-duplicate-imports":[`error`,{allowSeparateTypeImports:!1,includeExports:!1}],"eslint/no-else-return":[`error`,{allowElseIf:!1}],"eslint/no-empty":[`error`,{allowEmptyCatch:!0}],"eslint/no-empty-character-class":`error`,"eslint/no-empty-function":void 0,"eslint/no-empty-pattern":`error`,"eslint/no-empty-static-block":`error`,"eslint/no-eq-null":void 0,"eslint/no-eval":`error`,"eslint/no-ex-assign":`error`,"eslint/no-extend-native":`error`,"eslint/no-extra-bind":`error`,"eslint/no-extra-boolean-cast":[`error`,{enforceForInnerExpressions:!0}],"eslint/no-extra-label":`error`,"eslint/no-fallthrough":`error`,"eslint/no-func-assign":`error`,"eslint/no-global-assign":`error`,"eslint/no-implicit-coercion":void 0,"eslint/no-import-assign":`error`,"eslint/no-inline-comments":void 0,"eslint/no-inner-declarations":void 0,"eslint/no-invalid-regexp":`error`,"eslint/no-irregular-whitespace":`error`,"eslint/no-iterator":`error`,"eslint/no-label-var":`error`,"eslint/no-labels":[`error`,{allowLoop:!1,allowSwitch:!1}],"eslint/no-lone-blocks":`error`,"eslint/no-lonely-if":`error`,"eslint/no-loop-func":`error`,"eslint/no-loss-of-precision":`error`,"eslint/no-magic-numbers":void 0,"eslint/no-misleading-character-class":`error`,"eslint/no-multi-assign":`error`,"eslint/no-multi-str":`error`,"eslint/no-negated-condition":`error`,"eslint/no-nested-ternary":void 0,"eslint/no-new":`error`,"eslint/no-new-func":`error`,"eslint/no-new-native-nonconstructor":`error`,"eslint/no-new-wrappers":`error`,"eslint/no-nonoctal-decimal-escape":`error`,"eslint/no-obj-calls":`error`,"eslint/no-object-constructor":`error`,"eslint/no-param-reassign":void 0,"eslint/no-plusplus":void 0,"eslint/no-promise-executor-return":void 0,"eslint/no-proto":`error`,"eslint/no-prototype-builtins":`error`,"eslint/no-redeclare":`error`,"eslint/no-regex-spaces":`error`,"eslint/no-restricted-exports":void 0,"eslint/no-restricted-globals":[`error`,{message:"Use `globalThis` instead.",name:`global`},{message:"Use `globalThis` instead.",name:`self`}],"eslint/no-restricted-imports":void 0,"eslint/no-restricted-properties":void 0,"eslint/no-return-assign":`error`,"eslint/no-script-url":`error`,"eslint/no-self-assign":[`error`,{props:!0}],"eslint/no-self-compare":`error`,"eslint/no-sequences":`error`,"eslint/no-setter-return":`error`,"eslint/no-shadow":void 0,"eslint/no-shadow-restricted-names":`error`,"eslint/no-sparse-arrays":`error`,"eslint/no-template-curly-in-string":`error`,"eslint/no-ternary":void 0,"eslint/no-this-before-super":`error`,"eslint/no-throw-literal":`off`,"eslint/no-unassigned-vars":`error`,"eslint/no-undef":void 0,"eslint/no-undefined":void 0,"eslint/no-underscore-dangle":void 0,"eslint/no-unexpected-multiline":`error`,"eslint/no-unmodified-loop-condition":`error`,"eslint/no-unneeded-ternary":[`error`,{defaultAssignment:!1}],"eslint/no-unreachable":`error`,"eslint/no-unsafe-finally":`error`,"eslint/no-unsafe-negation":`error`,"eslint/no-unsafe-optional-chaining":[`error`,{disallowArithmeticOperators:!0}],"eslint/no-unused-expressions":[`error`,{allowShortCircuit:!0,allowTaggedTemplates:!0,allowTernary:!0}],"eslint/no-unused-labels":`error`,"eslint/no-unused-private-class-members":`error`,"eslint/no-unused-vars":[`error`,{args:`none`,caughtErrors:`none`,vars:`all`,argsIgnorePattern:`^_`,ignoreRestSiblings:!0,varsIgnorePattern:`^_`}],"eslint/no-use-before-define":void 0,"eslint/no-useless-assignment":void 0,"eslint/no-useless-backreference":`error`,"eslint/no-useless-call":`error`,"eslint/no-useless-catch":`error`,"eslint/no-useless-computed-key":`error`,"eslint/no-useless-concat":`error`,"eslint/no-useless-constructor":`error`,"eslint/no-useless-escape":`error`,"eslint/no-useless-rename":`error`,"eslint/no-useless-return":`error`,"eslint/no-var":`error`,"eslint/no-void":void 0,"eslint/no-warning-comments":void 0,"eslint/no-with":`error`,"eslint/object-shorthand":`error`,"eslint/operator-assignment":[`error`,`always`],"eslint/prefer-const":[`error`,{destructuring:`all`,ignoreReadBeforeAssign:!0}],"eslint/prefer-destructuring":[`error`,{array:!0,object:!0},{enforceForRenamedProperties:!0}],"eslint/prefer-exponentiation-operator":`error`,"eslint/prefer-numeric-literals":`error`,"eslint/prefer-object-has-own":`error`,"eslint/prefer-object-spread":`error`,"eslint/prefer-promise-reject-errors":`error`,"eslint/prefer-regex-literals":void 0,"eslint/prefer-rest-params":`error`,"eslint/prefer-spread":`error`,"eslint/prefer-template":`error`,"eslint/preserve-caught-error":`error`,"eslint/radix":`error`,"eslint/require-await":void 0,"eslint/require-unicode-regexp":void 0,"eslint/require-yield":`error`,"eslint/sort-imports":void 0,"eslint/sort-keys":void 0,"eslint/sort-vars":`error`,"eslint/symbol-description":`error`,"eslint/unicode-bom":[`error`,`never`],"eslint/use-isnan":[`error`,{enforceForIndexOf:!0,enforceForSwitchCase:!0}],"eslint/valid-typeof":[`error`,{requireStringLiterals:!0}],"eslint/vars-on-top":`error`,"eslint/yoda":[`error`,`never`],"eslint/no-implicit-globals":void 0,"eslint/prefer-arrow-callback":void 0,"eslint/id-match":void 0,"eslint/no-implied-eval":void 0,"eslint/prefer-named-capture-group":void 0,"eslint/no-unreachable-loop":void 0}}),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`,"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-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({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,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":void 0,"unicorn/error-message":`error`,"unicorn/escape-case":`error`,"unicorn/explicit-length-check":`error`,"unicorn/filename-case":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-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-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`,{checkAllIndexAccess:!1}],"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-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-properties":`error`,"unicorn/prefer-object-from-entries":[`error`,{functions:[]}],"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-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`,{functions:[]}],"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`,`always`],"unicorn/switch-case-break-position":`error`,"unicorn/text-encoding-identifier-case":`error`,"unicorn/throw-new-error":`off`,"unicorn/import-style":void 0,"unicorn/max-nested-calls":void 0,"unicorn/no-array-fill-with-reference-type":void 0,"unicorn/prefer-export-from":void 0,"unicorn/prefer-number-coercion":void 0,"unicorn/prefer-single-call":void 0,"unicorn/explicit-timer-delay":void 0,"unicorn/no-confusing-array-with":void 0}}),n,a,o,i,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}})],ignorePatterns:t});export{s as t};