@2digits/oxlint-config 0.6.3 → 0.6.5
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/base-vN2IXLZC.mjs +1 -0
- package/dist/base.d.mts +1 -1
- package/dist/base.mjs +1 -1
- package/dist/index.d.mts +1 -1
- package/dist/index.mjs +1 -1
- package/dist/{types-x1WTfGaH.d.mts → types-Dd1tbFEY.d.mts} +313 -3
- package/dist/{typescript-O3-OTkkO.mjs → typescript-JohfbQYF.mjs} +1 -1
- package/dist/typescript.d.mts +1 -1
- package/dist/typescript.mjs +1 -1
- package/package.json +7 -7
- package/dist/base-C5gwW2B4.mjs +0 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{t as e}from"./types-Bni6efgj.mjs";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}}),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/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-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`,{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-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-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`]}}),i=e({plugins:[`jsdoc`],settings:{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`}}),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`}}),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-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":`error`}}),n,a,o,i],ignorePatterns:t});export{s as t};
|
package/dist/base.d.mts
CHANGED
package/dist/base.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{t as e}from"./base-
|
|
1
|
+
import{t as e}from"./base-vN2IXLZC.mjs";export{e as baseConfig};
|
package/dist/index.d.mts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as RuleName, i as defineTypedConfig, n as TypedOxlintConfig, o as RuleOptions, r as TypedOxlintOverride, t as Rules } from "./types-
|
|
1
|
+
import { a as RuleName, i as defineTypedConfig, n as TypedOxlintConfig, o as RuleOptions, r as TypedOxlintOverride, t as Rules } from "./types-Dd1tbFEY.mjs";
|
|
2
2
|
import { OxlintConfig } from "oxlint";
|
|
3
3
|
|
|
4
4
|
//#region src/config.d.ts
|
package/dist/index.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{t as e}from"./types-Bni6efgj.mjs";import{t}from"./base-
|
|
1
|
+
import{t as e}from"./types-Bni6efgj.mjs";import{t}from"./base-vN2IXLZC.mjs";import{t as n}from"./typescript-JohfbQYF.mjs";import{defu as r}from"defu";const i=e(r(t,n));function a(...t){let[n,...a]=t;return e(r(n,...a,i))}export{a as default,a as withTwoDigits,i as twoDigits};
|
|
@@ -142,6 +142,16 @@ interface RuleOptions {
|
|
|
142
142
|
* @see https://oxc.rs/docs/guide/usage/linter/rules/eslint/for-direction.html
|
|
143
143
|
*/
|
|
144
144
|
'eslint/for-direction'?: DummyRule;
|
|
145
|
+
/**
|
|
146
|
+
* Func name matching
|
|
147
|
+
*
|
|
148
|
+
* plugin: Eslint
|
|
149
|
+
* category: Style
|
|
150
|
+
* type-aware: false
|
|
151
|
+
*
|
|
152
|
+
* @see https://oxc.rs/docs/guide/usage/linter/rules/eslint/func-name-matching.html
|
|
153
|
+
*/
|
|
154
|
+
'eslint/func-name-matching'?: DummyRule;
|
|
145
155
|
/**
|
|
146
156
|
* Func names
|
|
147
157
|
*
|
|
@@ -166,7 +176,7 @@ interface RuleOptions {
|
|
|
166
176
|
* Getter return
|
|
167
177
|
*
|
|
168
178
|
* plugin: Eslint
|
|
169
|
-
* category:
|
|
179
|
+
* category: Correctness
|
|
170
180
|
* type-aware: false
|
|
171
181
|
*
|
|
172
182
|
* @see https://oxc.rs/docs/guide/usage/linter/rules/eslint/getter-return.html
|
|
@@ -1222,6 +1232,16 @@ interface RuleOptions {
|
|
|
1222
1232
|
* @see https://oxc.rs/docs/guide/usage/linter/rules/eslint/no-undefined.html
|
|
1223
1233
|
*/
|
|
1224
1234
|
'eslint/no-undefined'?: DummyRule;
|
|
1235
|
+
/**
|
|
1236
|
+
* No underscore dangle
|
|
1237
|
+
*
|
|
1238
|
+
* plugin: Eslint
|
|
1239
|
+
* category: Suspicious
|
|
1240
|
+
* type-aware: false
|
|
1241
|
+
*
|
|
1242
|
+
* @see https://oxc.rs/docs/guide/usage/linter/rules/eslint/no-underscore-dangle.html
|
|
1243
|
+
*/
|
|
1244
|
+
'eslint/no-underscore-dangle'?: DummyRule;
|
|
1225
1245
|
/**
|
|
1226
1246
|
* No unexpected multiline
|
|
1227
1247
|
*
|
|
@@ -1256,7 +1276,7 @@ interface RuleOptions {
|
|
|
1256
1276
|
* No unreachable
|
|
1257
1277
|
*
|
|
1258
1278
|
* plugin: Eslint
|
|
1259
|
-
* category:
|
|
1279
|
+
* category: Correctness
|
|
1260
1280
|
* type-aware: false
|
|
1261
1281
|
*
|
|
1262
1282
|
* @see https://oxc.rs/docs/guide/usage/linter/rules/eslint/no-unreachable.html
|
|
@@ -2402,6 +2422,16 @@ interface RuleOptions {
|
|
|
2402
2422
|
* @see https://oxc.rs/docs/guide/usage/linter/rules/jest/prefer-equality-matcher.html
|
|
2403
2423
|
*/
|
|
2404
2424
|
'jest/prefer-equality-matcher'?: DummyRule;
|
|
2425
|
+
/**
|
|
2426
|
+
* Prefer expect assertions
|
|
2427
|
+
*
|
|
2428
|
+
* plugin: Jest
|
|
2429
|
+
* category: Style
|
|
2430
|
+
* type-aware: false
|
|
2431
|
+
*
|
|
2432
|
+
* @see https://oxc.rs/docs/guide/usage/linter/rules/jest/prefer-expect-assertions.html
|
|
2433
|
+
*/
|
|
2434
|
+
'jest/prefer-expect-assertions'?: DummyRule;
|
|
2405
2435
|
/**
|
|
2406
2436
|
* Prefer expect resolves
|
|
2407
2437
|
*
|
|
@@ -3486,7 +3516,7 @@ interface RuleOptions {
|
|
|
3486
3516
|
* Branches sharing code
|
|
3487
3517
|
*
|
|
3488
3518
|
* plugin: Oxc
|
|
3489
|
-
* category:
|
|
3519
|
+
* category: Pedantic
|
|
3490
3520
|
* type-aware: false
|
|
3491
3521
|
*
|
|
3492
3522
|
* @see https://oxc.rs/docs/guide/usage/linter/rules/oxc/branches-sharing-code.html
|
|
@@ -3862,6 +3892,16 @@ interface RuleOptions {
|
|
|
3862
3892
|
* @see https://oxc.rs/docs/guide/usage/linter/rules/react/exhaustive-deps.html
|
|
3863
3893
|
*/
|
|
3864
3894
|
'react/exhaustive-deps'?: DummyRule;
|
|
3895
|
+
/**
|
|
3896
|
+
* Forbid component props
|
|
3897
|
+
*
|
|
3898
|
+
* plugin: React
|
|
3899
|
+
* category: Restriction
|
|
3900
|
+
* type-aware: false
|
|
3901
|
+
*
|
|
3902
|
+
* @see https://oxc.rs/docs/guide/usage/linter/rules/react/forbid-component-props.html
|
|
3903
|
+
*/
|
|
3904
|
+
'react/forbid-component-props'?: DummyRule;
|
|
3865
3905
|
/**
|
|
3866
3906
|
* Forbid dom props
|
|
3867
3907
|
*
|
|
@@ -4142,6 +4182,16 @@ interface RuleOptions {
|
|
|
4142
4182
|
* @see https://oxc.rs/docs/guide/usage/linter/rules/react/no-did-mount-set-state.html
|
|
4143
4183
|
*/
|
|
4144
4184
|
'react/no-did-mount-set-state'?: DummyRule;
|
|
4185
|
+
/**
|
|
4186
|
+
* No did update set state
|
|
4187
|
+
*
|
|
4188
|
+
* plugin: React
|
|
4189
|
+
* category: Correctness
|
|
4190
|
+
* type-aware: false
|
|
4191
|
+
*
|
|
4192
|
+
* @see https://oxc.rs/docs/guide/usage/linter/rules/react/no-did-update-set-state.html
|
|
4193
|
+
*/
|
|
4194
|
+
'react/no-did-update-set-state'?: DummyRule;
|
|
4145
4195
|
/**
|
|
4146
4196
|
* No direct mutation state
|
|
4147
4197
|
*
|
|
@@ -6832,6 +6882,16 @@ interface RuleOptions {
|
|
|
6832
6882
|
* @see https://oxc.rs/docs/guide/usage/linter/rules/vitest/consistent-test-filename.html
|
|
6833
6883
|
*/
|
|
6834
6884
|
'vitest/consistent-test-filename'?: DummyRule;
|
|
6885
|
+
/**
|
|
6886
|
+
* Consistent test it
|
|
6887
|
+
*
|
|
6888
|
+
* plugin: Vitest
|
|
6889
|
+
* category: Style
|
|
6890
|
+
* type-aware: false
|
|
6891
|
+
*
|
|
6892
|
+
* @see https://oxc.rs/docs/guide/usage/linter/rules/vitest/consistent-test-it.html
|
|
6893
|
+
*/
|
|
6894
|
+
'vitest/consistent-test-it'?: DummyRule;
|
|
6835
6895
|
/**
|
|
6836
6896
|
* Consistent vitest vi
|
|
6837
6897
|
*
|
|
@@ -6842,6 +6902,16 @@ interface RuleOptions {
|
|
|
6842
6902
|
* @see https://oxc.rs/docs/guide/usage/linter/rules/vitest/consistent-vitest-vi.html
|
|
6843
6903
|
*/
|
|
6844
6904
|
'vitest/consistent-vitest-vi'?: DummyRule;
|
|
6905
|
+
/**
|
|
6906
|
+
* Expect expect
|
|
6907
|
+
*
|
|
6908
|
+
* plugin: Vitest
|
|
6909
|
+
* category: Correctness
|
|
6910
|
+
* type-aware: false
|
|
6911
|
+
*
|
|
6912
|
+
* @see https://oxc.rs/docs/guide/usage/linter/rules/vitest/expect-expect.html
|
|
6913
|
+
*/
|
|
6914
|
+
'vitest/expect-expect'?: DummyRule;
|
|
6845
6915
|
/**
|
|
6846
6916
|
* Hoisted apis on top
|
|
6847
6917
|
*
|
|
@@ -6852,6 +6922,66 @@ interface RuleOptions {
|
|
|
6852
6922
|
* @see https://oxc.rs/docs/guide/usage/linter/rules/vitest/hoisted-apis-on-top.html
|
|
6853
6923
|
*/
|
|
6854
6924
|
'vitest/hoisted-apis-on-top'?: DummyRule;
|
|
6925
|
+
/**
|
|
6926
|
+
* Max expects
|
|
6927
|
+
*
|
|
6928
|
+
* plugin: Vitest
|
|
6929
|
+
* category: Style
|
|
6930
|
+
* type-aware: false
|
|
6931
|
+
*
|
|
6932
|
+
* @see https://oxc.rs/docs/guide/usage/linter/rules/vitest/max-expects.html
|
|
6933
|
+
*/
|
|
6934
|
+
'vitest/max-expects'?: DummyRule;
|
|
6935
|
+
/**
|
|
6936
|
+
* Max nested describe
|
|
6937
|
+
*
|
|
6938
|
+
* plugin: Vitest
|
|
6939
|
+
* category: Style
|
|
6940
|
+
* type-aware: false
|
|
6941
|
+
*
|
|
6942
|
+
* @see https://oxc.rs/docs/guide/usage/linter/rules/vitest/max-nested-describe.html
|
|
6943
|
+
*/
|
|
6944
|
+
'vitest/max-nested-describe'?: DummyRule;
|
|
6945
|
+
/**
|
|
6946
|
+
* No alias methods
|
|
6947
|
+
*
|
|
6948
|
+
* plugin: Vitest
|
|
6949
|
+
* category: Style
|
|
6950
|
+
* type-aware: false
|
|
6951
|
+
*
|
|
6952
|
+
* @see https://oxc.rs/docs/guide/usage/linter/rules/vitest/no-alias-methods.html
|
|
6953
|
+
*/
|
|
6954
|
+
'vitest/no-alias-methods'?: DummyRule;
|
|
6955
|
+
/**
|
|
6956
|
+
* No commented out tests
|
|
6957
|
+
*
|
|
6958
|
+
* plugin: Vitest
|
|
6959
|
+
* category: Suspicious
|
|
6960
|
+
* type-aware: false
|
|
6961
|
+
*
|
|
6962
|
+
* @see https://oxc.rs/docs/guide/usage/linter/rules/vitest/no-commented-out-tests.html
|
|
6963
|
+
*/
|
|
6964
|
+
'vitest/no-commented-out-tests'?: DummyRule;
|
|
6965
|
+
/**
|
|
6966
|
+
* No conditional expect
|
|
6967
|
+
*
|
|
6968
|
+
* plugin: Vitest
|
|
6969
|
+
* category: Correctness
|
|
6970
|
+
* type-aware: false
|
|
6971
|
+
*
|
|
6972
|
+
* @see https://oxc.rs/docs/guide/usage/linter/rules/vitest/no-conditional-expect.html
|
|
6973
|
+
*/
|
|
6974
|
+
'vitest/no-conditional-expect'?: DummyRule;
|
|
6975
|
+
/**
|
|
6976
|
+
* No conditional in test
|
|
6977
|
+
*
|
|
6978
|
+
* plugin: Vitest
|
|
6979
|
+
* category: Pedantic
|
|
6980
|
+
* type-aware: false
|
|
6981
|
+
*
|
|
6982
|
+
* @see https://oxc.rs/docs/guide/usage/linter/rules/vitest/no-conditional-in-test.html
|
|
6983
|
+
*/
|
|
6984
|
+
'vitest/no-conditional-in-test'?: DummyRule;
|
|
6855
6985
|
/**
|
|
6856
6986
|
* No conditional tests
|
|
6857
6987
|
*
|
|
@@ -6862,6 +6992,56 @@ interface RuleOptions {
|
|
|
6862
6992
|
* @see https://oxc.rs/docs/guide/usage/linter/rules/vitest/no-conditional-tests.html
|
|
6863
6993
|
*/
|
|
6864
6994
|
'vitest/no-conditional-tests'?: DummyRule;
|
|
6995
|
+
/**
|
|
6996
|
+
* No disabled tests
|
|
6997
|
+
*
|
|
6998
|
+
* plugin: Vitest
|
|
6999
|
+
* category: Correctness
|
|
7000
|
+
* type-aware: false
|
|
7001
|
+
*
|
|
7002
|
+
* @see https://oxc.rs/docs/guide/usage/linter/rules/vitest/no-disabled-tests.html
|
|
7003
|
+
*/
|
|
7004
|
+
'vitest/no-disabled-tests'?: DummyRule;
|
|
7005
|
+
/**
|
|
7006
|
+
* No duplicate hooks
|
|
7007
|
+
*
|
|
7008
|
+
* plugin: Vitest
|
|
7009
|
+
* category: Style
|
|
7010
|
+
* type-aware: false
|
|
7011
|
+
*
|
|
7012
|
+
* @see https://oxc.rs/docs/guide/usage/linter/rules/vitest/no-duplicate-hooks.html
|
|
7013
|
+
*/
|
|
7014
|
+
'vitest/no-duplicate-hooks'?: DummyRule;
|
|
7015
|
+
/**
|
|
7016
|
+
* No focused tests
|
|
7017
|
+
*
|
|
7018
|
+
* plugin: Vitest
|
|
7019
|
+
* category: Correctness
|
|
7020
|
+
* type-aware: false
|
|
7021
|
+
*
|
|
7022
|
+
* @see https://oxc.rs/docs/guide/usage/linter/rules/vitest/no-focused-tests.html
|
|
7023
|
+
*/
|
|
7024
|
+
'vitest/no-focused-tests'?: DummyRule;
|
|
7025
|
+
/**
|
|
7026
|
+
* No hooks
|
|
7027
|
+
*
|
|
7028
|
+
* plugin: Vitest
|
|
7029
|
+
* category: Style
|
|
7030
|
+
* type-aware: false
|
|
7031
|
+
*
|
|
7032
|
+
* @see https://oxc.rs/docs/guide/usage/linter/rules/vitest/no-hooks.html
|
|
7033
|
+
*/
|
|
7034
|
+
'vitest/no-hooks'?: DummyRule;
|
|
7035
|
+
/**
|
|
7036
|
+
* No identical title
|
|
7037
|
+
*
|
|
7038
|
+
* plugin: Vitest
|
|
7039
|
+
* category: Style
|
|
7040
|
+
* type-aware: false
|
|
7041
|
+
*
|
|
7042
|
+
* @see https://oxc.rs/docs/guide/usage/linter/rules/vitest/no-identical-title.html
|
|
7043
|
+
*/
|
|
7044
|
+
'vitest/no-identical-title'?: DummyRule;
|
|
6865
7045
|
/**
|
|
6866
7046
|
* No import node test
|
|
6867
7047
|
*
|
|
@@ -6882,6 +7062,36 @@ interface RuleOptions {
|
|
|
6882
7062
|
* @see https://oxc.rs/docs/guide/usage/linter/rules/vitest/no-importing-vitest-globals.html
|
|
6883
7063
|
*/
|
|
6884
7064
|
'vitest/no-importing-vitest-globals'?: DummyRule;
|
|
7065
|
+
/**
|
|
7066
|
+
* No interpolation in snapshots
|
|
7067
|
+
*
|
|
7068
|
+
* plugin: Vitest
|
|
7069
|
+
* category: Style
|
|
7070
|
+
* type-aware: false
|
|
7071
|
+
*
|
|
7072
|
+
* @see https://oxc.rs/docs/guide/usage/linter/rules/vitest/no-interpolation-in-snapshots.html
|
|
7073
|
+
*/
|
|
7074
|
+
'vitest/no-interpolation-in-snapshots'?: DummyRule;
|
|
7075
|
+
/**
|
|
7076
|
+
* No large snapshots
|
|
7077
|
+
*
|
|
7078
|
+
* plugin: Vitest
|
|
7079
|
+
* category: Style
|
|
7080
|
+
* type-aware: false
|
|
7081
|
+
*
|
|
7082
|
+
* @see https://oxc.rs/docs/guide/usage/linter/rules/vitest/no-large-snapshots.html
|
|
7083
|
+
*/
|
|
7084
|
+
'vitest/no-large-snapshots'?: DummyRule;
|
|
7085
|
+
/**
|
|
7086
|
+
* No mocks import
|
|
7087
|
+
*
|
|
7088
|
+
* plugin: Vitest
|
|
7089
|
+
* category: Style
|
|
7090
|
+
* type-aware: false
|
|
7091
|
+
*
|
|
7092
|
+
* @see https://oxc.rs/docs/guide/usage/linter/rules/vitest/no-mocks-import.html
|
|
7093
|
+
*/
|
|
7094
|
+
'vitest/no-mocks-import'?: DummyRule;
|
|
6885
7095
|
/**
|
|
6886
7096
|
* Prefer called exactly once with
|
|
6887
7097
|
*
|
|
@@ -6922,6 +7132,16 @@ interface RuleOptions {
|
|
|
6922
7132
|
* @see https://oxc.rs/docs/guide/usage/linter/rules/vitest/prefer-describe-function-title.html
|
|
6923
7133
|
*/
|
|
6924
7134
|
'vitest/prefer-describe-function-title'?: DummyRule;
|
|
7135
|
+
/**
|
|
7136
|
+
* Prefer expect assertions
|
|
7137
|
+
*
|
|
7138
|
+
* plugin: Vitest
|
|
7139
|
+
* category: Style
|
|
7140
|
+
* type-aware: false
|
|
7141
|
+
*
|
|
7142
|
+
* @see https://oxc.rs/docs/guide/usage/linter/rules/vitest/prefer-expect-assertions.html
|
|
7143
|
+
*/
|
|
7144
|
+
'vitest/prefer-expect-assertions'?: DummyRule;
|
|
6925
7145
|
/**
|
|
6926
7146
|
* Prefer expect type of
|
|
6927
7147
|
*
|
|
@@ -6992,6 +7212,26 @@ interface RuleOptions {
|
|
|
6992
7212
|
* @see https://oxc.rs/docs/guide/usage/linter/rules/vitest/prefer-to-be-truthy.html
|
|
6993
7213
|
*/
|
|
6994
7214
|
'vitest/prefer-to-be-truthy'?: DummyRule;
|
|
7215
|
+
/**
|
|
7216
|
+
* Prefer to contain
|
|
7217
|
+
*
|
|
7218
|
+
* plugin: Vitest
|
|
7219
|
+
* category: Style
|
|
7220
|
+
* type-aware: false
|
|
7221
|
+
*
|
|
7222
|
+
* @see https://oxc.rs/docs/guide/usage/linter/rules/vitest/prefer-to-contain.html
|
|
7223
|
+
*/
|
|
7224
|
+
'vitest/prefer-to-contain'?: DummyRule;
|
|
7225
|
+
/**
|
|
7226
|
+
* Prefer todo
|
|
7227
|
+
*
|
|
7228
|
+
* plugin: Vitest
|
|
7229
|
+
* category: Style
|
|
7230
|
+
* type-aware: false
|
|
7231
|
+
*
|
|
7232
|
+
* @see https://oxc.rs/docs/guide/usage/linter/rules/vitest/prefer-todo.html
|
|
7233
|
+
*/
|
|
7234
|
+
'vitest/prefer-todo'?: DummyRule;
|
|
6995
7235
|
/**
|
|
6996
7236
|
* Require awaited expect poll
|
|
6997
7237
|
*
|
|
@@ -7032,6 +7272,36 @@ interface RuleOptions {
|
|
|
7032
7272
|
* @see https://oxc.rs/docs/guide/usage/linter/rules/vitest/require-test-timeout.html
|
|
7033
7273
|
*/
|
|
7034
7274
|
'vitest/require-test-timeout'?: DummyRule;
|
|
7275
|
+
/**
|
|
7276
|
+
* Require top level describe
|
|
7277
|
+
*
|
|
7278
|
+
* plugin: Vitest
|
|
7279
|
+
* category: Style
|
|
7280
|
+
* type-aware: false
|
|
7281
|
+
*
|
|
7282
|
+
* @see https://oxc.rs/docs/guide/usage/linter/rules/vitest/require-top-level-describe.html
|
|
7283
|
+
*/
|
|
7284
|
+
'vitest/require-top-level-describe'?: DummyRule;
|
|
7285
|
+
/**
|
|
7286
|
+
* Valid expect
|
|
7287
|
+
*
|
|
7288
|
+
* plugin: Vitest
|
|
7289
|
+
* category: Correctness
|
|
7290
|
+
* type-aware: false
|
|
7291
|
+
*
|
|
7292
|
+
* @see https://oxc.rs/docs/guide/usage/linter/rules/vitest/valid-expect.html
|
|
7293
|
+
*/
|
|
7294
|
+
'vitest/valid-expect'?: DummyRule;
|
|
7295
|
+
/**
|
|
7296
|
+
* Valid title
|
|
7297
|
+
*
|
|
7298
|
+
* plugin: Vitest
|
|
7299
|
+
* category: Correctness
|
|
7300
|
+
* type-aware: false
|
|
7301
|
+
*
|
|
7302
|
+
* @see https://oxc.rs/docs/guide/usage/linter/rules/vitest/valid-title.html
|
|
7303
|
+
*/
|
|
7304
|
+
'vitest/valid-title'?: DummyRule;
|
|
7035
7305
|
/**
|
|
7036
7306
|
* Warn todo
|
|
7037
7307
|
*
|
|
@@ -7092,6 +7362,26 @@ interface RuleOptions {
|
|
|
7092
7362
|
* @see https://oxc.rs/docs/guide/usage/linter/rules/vue/no-arrow-functions-in-watch.html
|
|
7093
7363
|
*/
|
|
7094
7364
|
'vue/no-arrow-functions-in-watch'?: DummyRule;
|
|
7365
|
+
/**
|
|
7366
|
+
* No deprecated data object declaration
|
|
7367
|
+
*
|
|
7368
|
+
* plugin: Vue
|
|
7369
|
+
* category: Correctness
|
|
7370
|
+
* type-aware: false
|
|
7371
|
+
*
|
|
7372
|
+
* @see https://oxc.rs/docs/guide/usage/linter/rules/vue/no-deprecated-data-object-declaration.html
|
|
7373
|
+
*/
|
|
7374
|
+
'vue/no-deprecated-data-object-declaration'?: DummyRule;
|
|
7375
|
+
/**
|
|
7376
|
+
* No deprecated delete set
|
|
7377
|
+
*
|
|
7378
|
+
* plugin: Vue
|
|
7379
|
+
* category: Correctness
|
|
7380
|
+
* type-aware: false
|
|
7381
|
+
*
|
|
7382
|
+
* @see https://oxc.rs/docs/guide/usage/linter/rules/vue/no-deprecated-delete-set.html
|
|
7383
|
+
*/
|
|
7384
|
+
'vue/no-deprecated-delete-set'?: DummyRule;
|
|
7095
7385
|
/**
|
|
7096
7386
|
* No deprecated destroyed lifecycle
|
|
7097
7387
|
*
|
|
@@ -7102,6 +7392,26 @@ interface RuleOptions {
|
|
|
7102
7392
|
* @see https://oxc.rs/docs/guide/usage/linter/rules/vue/no-deprecated-destroyed-lifecycle.html
|
|
7103
7393
|
*/
|
|
7104
7394
|
'vue/no-deprecated-destroyed-lifecycle'?: DummyRule;
|
|
7395
|
+
/**
|
|
7396
|
+
* No deprecated events api
|
|
7397
|
+
*
|
|
7398
|
+
* plugin: Vue
|
|
7399
|
+
* category: Correctness
|
|
7400
|
+
* type-aware: false
|
|
7401
|
+
*
|
|
7402
|
+
* @see https://oxc.rs/docs/guide/usage/linter/rules/vue/no-deprecated-events-api.html
|
|
7403
|
+
*/
|
|
7404
|
+
'vue/no-deprecated-events-api'?: DummyRule;
|
|
7405
|
+
/**
|
|
7406
|
+
* No deprecated vue config keycodes
|
|
7407
|
+
*
|
|
7408
|
+
* plugin: Vue
|
|
7409
|
+
* category: Correctness
|
|
7410
|
+
* type-aware: false
|
|
7411
|
+
*
|
|
7412
|
+
* @see https://oxc.rs/docs/guide/usage/linter/rules/vue/no-deprecated-vue-config-keycodes.html
|
|
7413
|
+
*/
|
|
7414
|
+
'vue/no-deprecated-vue-config-keycodes'?: DummyRule;
|
|
7105
7415
|
/**
|
|
7106
7416
|
* No export in script setup
|
|
7107
7417
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{t as e}from"./types-Bni6efgj.mjs";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:{"eslint/no-duplicate-imports":`off`,"eslint/no-undef":`off`,"eslint/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:{"eslint/no-unused-expressions":`off`}},{files:[...i],rules:{"typescript/no-import-type-side-effects":`off`}}]}),o=e({settings:{"react-x":{version:`detect`}},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/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}]}}),s=e({options:{denyWarnings:!0,reportUnusedDisableDirectives:`deny`},categories:{nursery:`off`,pedantic:`off`,correctness:`off`,perf:`off`,style:`off`,restriction:`off`,suspicious:`off`},extends:[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/class-literal-property-style":`error`,"typescript/consistent-generic-constructors":[`error`,{option:`constructor`}],"typescript/consistent-indexed-object-style":[`error`,`record`],"typescript/consistent-type-assertions":[`error`,{assertionStyle:`as`}],"typescript/consistent-type-definitions":[`error`,`interface`],"typescript/consistent-type-exports":[`error`,{fixMixedExportsWithInlineTypeSpecifier:!0}],"typescript/consistent-type-imports":[`error`,{fixStyle:`inline-type-imports`,prefer:`type-imports`,disallowTypeAnnotations:!1}],"typescript/dot-notation":[`error`,{allowKeywords:!0}],"typescript/no-array-delete":`error`,"typescript/no-base-to-string":`error`,"typescript/no-confusing-non-null-assertion":`error`,"typescript/no-confusing-void-expression":[`error`,{ignoreArrowShorthand:!0,ignoreVoidOperator:!0}],"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`,{fixToUnknown:!0,ignoreRestArgs:!0}],"typescript/no-extra-non-null-assertion":`error`,"typescript/no-extraneous-class":[`error`,{allowStaticOnly:!0}],"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":[`error`,{checksVoidReturn:!1}],"typescript/no-misused-spread":`error`,"typescript/no-mixed-enums":`error`,"typescript/no-namespace":[`error`,{allowDefinitionFiles:!0}],"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-this-alias":`error`,"typescript/no-unnecessary-boolean-literal-compare":`error`,"typescript/no-unnecessary-condition":[`error`,{allowConstantLoopConditions:`only-allowed-literals`}],"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":`error`,"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-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-reduce-type-parameter":`error`,"typescript/prefer-regexp-exec":`error`,"typescript/prefer-return-this-type":`error`,"typescript/prefer-string-starts-ends-with":`error`,"typescript/related-getter-setter-pairs":`error`,"typescript/require-array-sort-compare":`error`,"typescript/require-await":`error`,"typescript/restrict-plus-operands":`error`,"typescript/restrict-template-expressions":[`error`,{allowNumber:!0}],"typescript/return-await":[`error`,`error-handling-correctness-only`],"typescript/triple-slash-reference":`error`,"typescript/unified-signatures":`error`,"typescript/use-unknown-in-catch-callback-variable":`error`}}),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-vitest-vi":[`error`,{fn:`vi`}],"vitest/hoisted-apis-on-top":`error`,"vitest/no-conditional-tests":`error`,"vitest/no-import-node-test":`error`,"vitest/prefer-called-exactly-once-with":`error`,"vitest/prefer-called-once":`error`,"vitest/prefer-describe-function-title":`error`,"vitest/prefer-expect-type-of":`error`,"vitest/prefer-import-in-mock":`error`,"vitest/prefer-to-be-falsy":`error`,"vitest/prefer-to-be-object":`error`,"vitest/prefer-to-be-truthy":`error`,"vitest/require-awaited-expect-poll":`error`,"vitest/require-local-test-context-for-concurrent-snapshots":`error`,"vitest/require-mock-type-parameters":`error`,"vitest/warn-todo":`error`}}),o,a],ignorePatterns:t});export{s as t};
|
|
1
|
+
import{t as e}from"./types-Bni6efgj.mjs";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:{"eslint/no-duplicate-imports":`off`,"eslint/no-undef":`off`,"eslint/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:{"eslint/no-unused-expressions":`off`}},{files:[...i],rules:{"typescript/no-import-type-side-effects":`off`}}]}),o=e({settings:{"react-x":{version:`detect`}},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/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}]}}),s=e({options:{denyWarnings:!0,reportUnusedDisableDirectives:`deny`},categories:{nursery:`off`,pedantic:`off`,correctness:`off`,perf:`off`,style:`off`,restriction:`off`,suspicious:`off`},extends:[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/class-literal-property-style":`error`,"typescript/consistent-generic-constructors":[`error`,{option:`constructor`}],"typescript/consistent-indexed-object-style":[`error`,`record`],"typescript/consistent-type-assertions":[`error`,{assertionStyle:`as`}],"typescript/consistent-type-definitions":[`error`,`interface`],"typescript/consistent-type-exports":[`error`,{fixMixedExportsWithInlineTypeSpecifier:!0}],"typescript/consistent-type-imports":[`error`,{fixStyle:`inline-type-imports`,prefer:`type-imports`,disallowTypeAnnotations:!1}],"typescript/dot-notation":[`error`,{allowKeywords:!0}],"typescript/no-array-delete":`error`,"typescript/no-base-to-string":`error`,"typescript/no-confusing-non-null-assertion":`error`,"typescript/no-confusing-void-expression":[`error`,{ignoreArrowShorthand:!0,ignoreVoidOperator:!0}],"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`,{fixToUnknown:!0,ignoreRestArgs:!0}],"typescript/no-extra-non-null-assertion":`error`,"typescript/no-extraneous-class":[`error`,{allowStaticOnly:!0}],"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":[`error`,{checksVoidReturn:!1}],"typescript/no-misused-spread":`error`,"typescript/no-mixed-enums":`error`,"typescript/no-namespace":[`error`,{allowDefinitionFiles:!0}],"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-this-alias":`error`,"typescript/no-unnecessary-boolean-literal-compare":`error`,"typescript/no-unnecessary-condition":[`error`,{allowConstantLoopConditions:`only-allowed-literals`}],"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":`error`,"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-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-reduce-type-parameter":`error`,"typescript/prefer-regexp-exec":`error`,"typescript/prefer-return-this-type":`error`,"typescript/prefer-string-starts-ends-with":`error`,"typescript/related-getter-setter-pairs":`error`,"typescript/require-array-sort-compare":`error`,"typescript/require-await":`error`,"typescript/restrict-plus-operands":`error`,"typescript/restrict-template-expressions":[`error`,{allowNumber:!0}],"typescript/return-await":[`error`,`error-handling-correctness-only`],"typescript/triple-slash-reference":`error`,"typescript/unified-signatures":`error`,"typescript/use-unknown-in-catch-callback-variable":`error`}}),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`,"vitest/consistent-vitest-vi":[`error`,{fn:`vi`}],"vitest/expect-expect":`error`,"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/prefer-called-exactly-once-with":`error`,"vitest/prefer-called-once":`error`,"vitest/prefer-called-times":void 0,"vitest/prefer-describe-function-title":`error`,"vitest/prefer-expect-assertions":void 0,"vitest/prefer-expect-type-of":`error`,"vitest/prefer-import-in-mock":`error`,"vitest/prefer-importing-vitest-globals":void 0,"vitest/prefer-strict-boolean-matchers":void 0,"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-todo":`error`,"vitest/require-awaited-expect-poll":`error`,"vitest/require-local-test-context-for-concurrent-snapshots":`error`,"vitest/require-mock-type-parameters":`error`,"vitest/require-test-timeout":void 0,"vitest/require-top-level-describe":`error`,"vitest/valid-expect":`error`,"vitest/valid-title":void 0,"vitest/warn-todo":`error`}}),o,a],ignorePatterns:t});export{s as t};
|
package/dist/typescript.d.mts
CHANGED
package/dist/typescript.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{t as e}from"./typescript-
|
|
1
|
+
import{t as e}from"./typescript-JohfbQYF.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.
|
|
3
|
+
"version": "0.6.5",
|
|
4
4
|
"description": "Minimal Oxlint config for 2digits projects.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"oxlint-config"
|
|
@@ -32,19 +32,19 @@
|
|
|
32
32
|
"devDependencies": {
|
|
33
33
|
"@arethetypeswrong/core": "0.18.2",
|
|
34
34
|
"@types/node": "24.12.2",
|
|
35
|
-
"@typescript/native-preview": "7.0.0-dev.
|
|
35
|
+
"@typescript/native-preview": "7.0.0-dev.20260503.1",
|
|
36
36
|
"dedent": "1.7.2",
|
|
37
|
-
"oxlint": "1.
|
|
38
|
-
"oxlint-tsgolint": "0.
|
|
37
|
+
"oxlint": "1.62.0",
|
|
38
|
+
"oxlint-tsgolint": "0.22.1",
|
|
39
39
|
"publint": "0.3.18",
|
|
40
40
|
"tsx": "4.21.0",
|
|
41
41
|
"typescript": "6.0.3",
|
|
42
|
-
"vite-plus": "0.1.
|
|
42
|
+
"vite-plus": "0.1.20",
|
|
43
43
|
"@2digits/tsconfig": "0.8.7"
|
|
44
44
|
},
|
|
45
45
|
"peerDependencies": {
|
|
46
|
-
"oxlint": "1.
|
|
47
|
-
"oxlint-tsgolint": "0.
|
|
46
|
+
"oxlint": "1.62.0",
|
|
47
|
+
"oxlint-tsgolint": "0.22.1"
|
|
48
48
|
},
|
|
49
49
|
"public": true,
|
|
50
50
|
"scripts": {
|
package/dist/base-C5gwW2B4.mjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{t as e}from"./types-Bni6efgj.mjs";import{ignorePatterns as t}from"@2digits/constants";const n=e({plugins:[`import`],rules:{"import/default":`error`,"import/export":`error`,"import/first":[`error`,`disable-absolute-first`],"import/namespace":`error`,"import/no-amd":`error`,"import/no-anonymous-default-export":`error`,"import/no-cycle":`error`,"import/no-duplicates":`error`,"import/no-dynamic-require":`error`,"import/no-named-as-default":`error`,"import/no-named-as-default-member":`error`,"import/no-self-import":`error`,"import/no-webpack-loader-syntax":`error`}}),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/constructor-super":`error`,"eslint/default-case-last":`error`,"eslint/eqeqeq":[`error`,`smart`],"eslint/for-direction":`error`,"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-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-const-assign":`error`,"eslint/no-constant-binary-expression":`error`,"eslint/no-constant-condition":[`error`,{checkLoops:`allExceptWhileTrue`}],"eslint/no-constructor-return":`error`,"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-pattern":`error`,"eslint/no-empty-static-block":`error`,"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-import-assign":`error`,"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-misleading-character-class":`error`,"eslint/no-multi-assign":`error`,"eslint/no-multi-str":`error`,"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-proto":`error`,"eslint/no-prototype-builtins":`error`,"eslint/no-redeclare":`error`,"eslint/no-regex-spaces":`error`,"eslint/no-restricted-globals":[`error`,{message:"Use `globalThis` instead.",name:`global`},{message:"Use `globalThis` instead.",name:`self`}],"eslint/no-self-assign":[`error`,{props:!0}],"eslint/no-self-compare":`error`,"eslint/no-sequences":`error`,"eslint/no-setter-return":`error`,"eslint/no-shadow-restricted-names":`error`,"eslint/no-sparse-arrays":`error`,"eslint/no-template-curly-in-string":`error`,"eslint/no-this-before-super":`error`,"eslint/no-throw-literal":`off`,"eslint/no-unassigned-vars":`error`,"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-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-with":`error`,"eslint/operator-assignment":[`error`,`always`],"eslint/prefer-const":[`error`,{destructuring:`all`,ignoreReadBeforeAssign:!0}],"eslint/prefer-destructuring":[`error`,{enforceForRenamedProperties:!0}],"eslint/prefer-exponentiation-operator":`error`,"eslint/prefer-numeric-literals":`error`,"eslint/prefer-object-has-own":`error`,"eslint/prefer-promise-reject-errors":`error`,"eslint/prefer-rest-params":`error`,"eslint/prefer-spread":`error`,"eslint/prefer-template":`error`,"eslint/preserve-caught-error":`error`,"eslint/radix":`error`,"eslint/require-yield":`error`,"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`]}}),i=e({plugins:[`jsdoc`],settings:{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`}}),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`}}),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-barrel-file":[`error`,{threshold:1e4}],"oxc/no-const-enum":`error`,"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/error-message":`error`,"unicorn/escape-case":`error`,"unicorn/explicit-length-check":`error`,"unicorn/new-for-builtins":`error`,"unicorn/no-abusive-eslint-disable":`error`,"unicorn/no-accessor-recursion":`error`,"unicorn/no-array-for-each":`error`,"unicorn/no-array-method-this-argument":`error`,"unicorn/no-array-reduce":`error`,"unicorn/no-array-reverse":`error`,"unicorn/no-array-sort":`error`,"unicorn/no-await-expression-member":`error`,"unicorn/no-await-in-promise-methods":`error`,"unicorn/no-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-negation-in-equality-check":`error`,"unicorn/no-new-array":`error`,"unicorn/no-new-buffer":`error`,"unicorn/no-null":`error`,"unicorn/no-object-as-default-parameter":`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-length-check":`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-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-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-type-error":`error`,"unicorn/relative-url-style":`error`,"unicorn/require-array-join-separator":`error`,"unicorn/require-module-attributes":`error`,"unicorn/require-number-to-fixed-digits-argument":`error`,"unicorn/switch-case-braces":[`error`,`always`],"unicorn/text-encoding-identifier-case":`error`}}),n,a,o,i],ignorePatterns:t});export{s as t};
|