@2digits/oxlint-config 0.6.10 → 0.6.12
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-D_QHacx5.mjs → base-DRnTUBjM.mjs} +1 -1
- 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-BaNAZJu_.d.mts → types-uW_X9iJo.d.mts} +191 -1
- package/dist/typescript-BXv5LB73.mjs +1 -0
- package/dist/typescript.d.mts +1 -1
- package/dist/typescript.mjs +1 -1
- package/package.json +7 -7
- package/dist/typescript-NUhH312y.mjs +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
import{t as e}from"./types-Dfvzj6n2.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,"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`,{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}}),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-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":`error`,"unicorn/import-style":void 0}}),n,a,o,i],ignorePatterns:t});export{s as t};
|
|
1
|
+
import{t as e}from"./types-Dfvzj6n2.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,"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`,{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}}),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-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}}),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-DRnTUBjM.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-uW_X9iJo.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-Dfvzj6n2.mjs";import{t}from"./base-
|
|
1
|
+
import{t as e}from"./types-Dfvzj6n2.mjs";import{t}from"./base-DRnTUBjM.mjs";import{t as n}from"./typescript-BXv5LB73.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};
|
|
@@ -3602,6 +3602,16 @@ interface RuleOptions {
|
|
|
3602
3602
|
* @see https://oxc.rs/docs/guide/usage/linter/rules/node/no-exports-assign.html
|
|
3603
3603
|
*/
|
|
3604
3604
|
'node/no-exports-assign'?: DummyRule;
|
|
3605
|
+
/**
|
|
3606
|
+
* No mixed requires
|
|
3607
|
+
*
|
|
3608
|
+
* plugin: Node
|
|
3609
|
+
* category: Style
|
|
3610
|
+
* type-aware: false
|
|
3611
|
+
*
|
|
3612
|
+
* @see https://oxc.rs/docs/guide/usage/linter/rules/node/no-mixed-requires.html
|
|
3613
|
+
*/
|
|
3614
|
+
'node/no-mixed-requires'?: DummyRule;
|
|
3605
3615
|
/**
|
|
3606
3616
|
* No new require
|
|
3607
3617
|
*
|
|
@@ -3632,6 +3642,16 @@ interface RuleOptions {
|
|
|
3632
3642
|
* @see https://oxc.rs/docs/guide/usage/linter/rules/node/no-process-env.html
|
|
3633
3643
|
*/
|
|
3634
3644
|
'node/no-process-env'?: DummyRule;
|
|
3645
|
+
/**
|
|
3646
|
+
* No sync
|
|
3647
|
+
*
|
|
3648
|
+
* plugin: Node
|
|
3649
|
+
* category: Style
|
|
3650
|
+
* type-aware: false
|
|
3651
|
+
*
|
|
3652
|
+
* @see https://oxc.rs/docs/guide/usage/linter/rules/node/no-sync.html
|
|
3653
|
+
*/
|
|
3654
|
+
'node/no-sync'?: DummyRule;
|
|
3635
3655
|
/**
|
|
3636
3656
|
* Approx constant
|
|
3637
3657
|
*
|
|
@@ -4252,6 +4272,16 @@ interface RuleOptions {
|
|
|
4252
4272
|
* @see https://oxc.rs/docs/guide/usage/linter/rules/react/jsx-no-duplicate-props.html
|
|
4253
4273
|
*/
|
|
4254
4274
|
'react/jsx-no-duplicate-props'?: DummyRule;
|
|
4275
|
+
/**
|
|
4276
|
+
* Jsx no literals
|
|
4277
|
+
*
|
|
4278
|
+
* plugin: React
|
|
4279
|
+
* category: Restriction
|
|
4280
|
+
* type-aware: false
|
|
4281
|
+
*
|
|
4282
|
+
* @see https://oxc.rs/docs/guide/usage/linter/rules/react/jsx-no-literals.html
|
|
4283
|
+
*/
|
|
4284
|
+
'react/jsx-no-literals'?: DummyRule;
|
|
4255
4285
|
/**
|
|
4256
4286
|
* Jsx no script url
|
|
4257
4287
|
*
|
|
@@ -4592,6 +4622,16 @@ interface RuleOptions {
|
|
|
4592
4622
|
* @see https://oxc.rs/docs/guide/usage/linter/rules/react/prefer-function-component.html
|
|
4593
4623
|
*/
|
|
4594
4624
|
'react/prefer-function-component'?: DummyRule;
|
|
4625
|
+
/**
|
|
4626
|
+
* React compiler
|
|
4627
|
+
*
|
|
4628
|
+
* plugin: React
|
|
4629
|
+
* category: Nursery
|
|
4630
|
+
* type-aware: false
|
|
4631
|
+
*
|
|
4632
|
+
* @see https://oxc.rs/docs/guide/usage/linter/rules/react/react-compiler.html
|
|
4633
|
+
*/
|
|
4634
|
+
'react/react-compiler'?: DummyRule;
|
|
4595
4635
|
/**
|
|
4596
4636
|
* React in jsx scope
|
|
4597
4637
|
*
|
|
@@ -5942,6 +5982,16 @@ interface RuleOptions {
|
|
|
5942
5982
|
* @see https://oxc.rs/docs/guide/usage/linter/rules/unicorn/import-style.html
|
|
5943
5983
|
*/
|
|
5944
5984
|
'unicorn/import-style'?: DummyRule;
|
|
5985
|
+
/**
|
|
5986
|
+
* Max nested calls
|
|
5987
|
+
*
|
|
5988
|
+
* plugin: Unicorn
|
|
5989
|
+
* category: Style
|
|
5990
|
+
* type-aware: false
|
|
5991
|
+
*
|
|
5992
|
+
* @see https://oxc.rs/docs/guide/usage/linter/rules/unicorn/max-nested-calls.html
|
|
5993
|
+
*/
|
|
5994
|
+
'unicorn/max-nested-calls'?: DummyRule;
|
|
5945
5995
|
/**
|
|
5946
5996
|
* New for builtins
|
|
5947
5997
|
*
|
|
@@ -5992,6 +6042,16 @@ interface RuleOptions {
|
|
|
5992
6042
|
* @see https://oxc.rs/docs/guide/usage/linter/rules/unicorn/no-array-callback-reference.html
|
|
5993
6043
|
*/
|
|
5994
6044
|
'unicorn/no-array-callback-reference'?: DummyRule;
|
|
6045
|
+
/**
|
|
6046
|
+
* No array fill with reference type
|
|
6047
|
+
*
|
|
6048
|
+
* plugin: Unicorn
|
|
6049
|
+
* category: Suspicious
|
|
6050
|
+
* type-aware: false
|
|
6051
|
+
*
|
|
6052
|
+
* @see https://oxc.rs/docs/guide/usage/linter/rules/unicorn/no-array-fill-with-reference-type.html
|
|
6053
|
+
*/
|
|
6054
|
+
'unicorn/no-array-fill-with-reference-type'?: DummyRule;
|
|
5995
6055
|
/**
|
|
5996
6056
|
* No array for each
|
|
5997
6057
|
*
|
|
@@ -6682,6 +6742,16 @@ interface RuleOptions {
|
|
|
6682
6742
|
* @see https://oxc.rs/docs/guide/usage/linter/rules/unicorn/prefer-event-target.html
|
|
6683
6743
|
*/
|
|
6684
6744
|
'unicorn/prefer-event-target'?: DummyRule;
|
|
6745
|
+
/**
|
|
6746
|
+
* Prefer export from
|
|
6747
|
+
*
|
|
6748
|
+
* plugin: Unicorn
|
|
6749
|
+
* category: Style
|
|
6750
|
+
* type-aware: false
|
|
6751
|
+
*
|
|
6752
|
+
* @see https://oxc.rs/docs/guide/usage/linter/rules/unicorn/prefer-export-from.html
|
|
6753
|
+
*/
|
|
6754
|
+
'unicorn/prefer-export-from'?: DummyRule;
|
|
6685
6755
|
/**
|
|
6686
6756
|
* Prefer global this
|
|
6687
6757
|
*
|
|
@@ -6812,6 +6882,16 @@ interface RuleOptions {
|
|
|
6812
6882
|
* @see https://oxc.rs/docs/guide/usage/linter/rules/unicorn/prefer-node-protocol.html
|
|
6813
6883
|
*/
|
|
6814
6884
|
'unicorn/prefer-node-protocol'?: DummyRule;
|
|
6885
|
+
/**
|
|
6886
|
+
* Prefer number coercion
|
|
6887
|
+
*
|
|
6888
|
+
* plugin: Unicorn
|
|
6889
|
+
* category: Pedantic
|
|
6890
|
+
* type-aware: false
|
|
6891
|
+
*
|
|
6892
|
+
* @see https://oxc.rs/docs/guide/usage/linter/rules/unicorn/prefer-number-coercion.html
|
|
6893
|
+
*/
|
|
6894
|
+
'unicorn/prefer-number-coercion'?: DummyRule;
|
|
6815
6895
|
/**
|
|
6816
6896
|
* Prefer number properties
|
|
6817
6897
|
*
|
|
@@ -6912,6 +6992,16 @@ interface RuleOptions {
|
|
|
6912
6992
|
* @see https://oxc.rs/docs/guide/usage/linter/rules/unicorn/prefer-set-size.html
|
|
6913
6993
|
*/
|
|
6914
6994
|
'unicorn/prefer-set-size'?: DummyRule;
|
|
6995
|
+
/**
|
|
6996
|
+
* Prefer single call
|
|
6997
|
+
*
|
|
6998
|
+
* plugin: Unicorn
|
|
6999
|
+
* category: Pedantic
|
|
7000
|
+
* type-aware: false
|
|
7001
|
+
*
|
|
7002
|
+
* @see https://oxc.rs/docs/guide/usage/linter/rules/unicorn/prefer-single-call.html
|
|
7003
|
+
*/
|
|
7004
|
+
'unicorn/prefer-single-call'?: DummyRule;
|
|
6915
7005
|
/**
|
|
6916
7006
|
* Prefer spread
|
|
6917
7007
|
*
|
|
@@ -7116,7 +7206,7 @@ interface RuleOptions {
|
|
|
7116
7206
|
* Consistent each for
|
|
7117
7207
|
*
|
|
7118
7208
|
* plugin: Vitest
|
|
7119
|
-
* category:
|
|
7209
|
+
* category: Style
|
|
7120
7210
|
* type-aware: false
|
|
7121
7211
|
*
|
|
7122
7212
|
* @see https://oxc.rs/docs/guide/usage/linter/rules/vitest/consistent-each-for.html
|
|
@@ -7882,6 +7972,16 @@ interface RuleOptions {
|
|
|
7882
7972
|
* @see https://oxc.rs/docs/guide/usage/linter/rules/vue/max-props.html
|
|
7883
7973
|
*/
|
|
7884
7974
|
'vue/max-props'?: DummyRule;
|
|
7975
|
+
/**
|
|
7976
|
+
* Next tick style
|
|
7977
|
+
*
|
|
7978
|
+
* plugin: Vue
|
|
7979
|
+
* category: Style
|
|
7980
|
+
* type-aware: false
|
|
7981
|
+
*
|
|
7982
|
+
* @see https://oxc.rs/docs/guide/usage/linter/rules/vue/next-tick-style.html
|
|
7983
|
+
*/
|
|
7984
|
+
'vue/next-tick-style'?: DummyRule;
|
|
7885
7985
|
/**
|
|
7886
7986
|
* No arrow functions in watch
|
|
7887
7987
|
*
|
|
@@ -7892,6 +7992,16 @@ interface RuleOptions {
|
|
|
7892
7992
|
* @see https://oxc.rs/docs/guide/usage/linter/rules/vue/no-arrow-functions-in-watch.html
|
|
7893
7993
|
*/
|
|
7894
7994
|
'vue/no-arrow-functions-in-watch'?: DummyRule;
|
|
7995
|
+
/**
|
|
7996
|
+
* No async in computed properties
|
|
7997
|
+
*
|
|
7998
|
+
* plugin: Vue
|
|
7999
|
+
* category: Correctness
|
|
8000
|
+
* type-aware: false
|
|
8001
|
+
*
|
|
8002
|
+
* @see https://oxc.rs/docs/guide/usage/linter/rules/vue/no-async-in-computed-properties.html
|
|
8003
|
+
*/
|
|
8004
|
+
'vue/no-async-in-computed-properties'?: DummyRule;
|
|
7895
8005
|
/**
|
|
7896
8006
|
* No computed properties in data
|
|
7897
8007
|
*
|
|
@@ -7972,6 +8082,16 @@ interface RuleOptions {
|
|
|
7972
8082
|
* @see https://oxc.rs/docs/guide/usage/linter/rules/vue/no-deprecated-vue-config-keycodes.html
|
|
7973
8083
|
*/
|
|
7974
8084
|
'vue/no-deprecated-vue-config-keycodes'?: DummyRule;
|
|
8085
|
+
/**
|
|
8086
|
+
* No dupe keys
|
|
8087
|
+
*
|
|
8088
|
+
* plugin: Vue
|
|
8089
|
+
* category: Correctness
|
|
8090
|
+
* type-aware: false
|
|
8091
|
+
*
|
|
8092
|
+
* @see https://oxc.rs/docs/guide/usage/linter/rules/vue/no-dupe-keys.html
|
|
8093
|
+
*/
|
|
8094
|
+
'vue/no-dupe-keys'?: DummyRule;
|
|
7975
8095
|
/**
|
|
7976
8096
|
* No export in script setup
|
|
7977
8097
|
*
|
|
@@ -8042,6 +8162,26 @@ interface RuleOptions {
|
|
|
8042
8162
|
* @see https://oxc.rs/docs/guide/usage/linter/rules/vue/no-reserved-component-names.html
|
|
8043
8163
|
*/
|
|
8044
8164
|
'vue/no-reserved-component-names'?: DummyRule;
|
|
8165
|
+
/**
|
|
8166
|
+
* No reserved keys
|
|
8167
|
+
*
|
|
8168
|
+
* plugin: Vue
|
|
8169
|
+
* category: Correctness
|
|
8170
|
+
* type-aware: false
|
|
8171
|
+
*
|
|
8172
|
+
* @see https://oxc.rs/docs/guide/usage/linter/rules/vue/no-reserved-keys.html
|
|
8173
|
+
*/
|
|
8174
|
+
'vue/no-reserved-keys'?: DummyRule;
|
|
8175
|
+
/**
|
|
8176
|
+
* No reserved props
|
|
8177
|
+
*
|
|
8178
|
+
* plugin: Vue
|
|
8179
|
+
* category: Correctness
|
|
8180
|
+
* type-aware: false
|
|
8181
|
+
*
|
|
8182
|
+
* @see https://oxc.rs/docs/guide/usage/linter/rules/vue/no-reserved-props.html
|
|
8183
|
+
*/
|
|
8184
|
+
'vue/no-reserved-props'?: DummyRule;
|
|
8045
8185
|
/**
|
|
8046
8186
|
* No shared component data
|
|
8047
8187
|
*
|
|
@@ -8052,6 +8192,16 @@ interface RuleOptions {
|
|
|
8052
8192
|
* @see https://oxc.rs/docs/guide/usage/linter/rules/vue/no-shared-component-data.html
|
|
8053
8193
|
*/
|
|
8054
8194
|
'vue/no-shared-component-data'?: DummyRule;
|
|
8195
|
+
/**
|
|
8196
|
+
* No side effects in computed properties
|
|
8197
|
+
*
|
|
8198
|
+
* plugin: Vue
|
|
8199
|
+
* category: Correctness
|
|
8200
|
+
* type-aware: false
|
|
8201
|
+
*
|
|
8202
|
+
* @see https://oxc.rs/docs/guide/usage/linter/rules/vue/no-side-effects-in-computed-properties.html
|
|
8203
|
+
*/
|
|
8204
|
+
'vue/no-side-effects-in-computed-properties'?: DummyRule;
|
|
8055
8205
|
/**
|
|
8056
8206
|
* No this in before route enter
|
|
8057
8207
|
*
|
|
@@ -8082,6 +8232,16 @@ interface RuleOptions {
|
|
|
8082
8232
|
* @see https://oxc.rs/docs/guide/usage/linter/rules/vue/prefer-import-from-vue.html
|
|
8083
8233
|
*/
|
|
8084
8234
|
'vue/prefer-import-from-vue'?: DummyRule;
|
|
8235
|
+
/**
|
|
8236
|
+
* Prop name casing
|
|
8237
|
+
*
|
|
8238
|
+
* plugin: Vue
|
|
8239
|
+
* category: Style
|
|
8240
|
+
* type-aware: false
|
|
8241
|
+
*
|
|
8242
|
+
* @see https://oxc.rs/docs/guide/usage/linter/rules/vue/prop-name-casing.html
|
|
8243
|
+
*/
|
|
8244
|
+
'vue/prop-name-casing'?: DummyRule;
|
|
8085
8245
|
/**
|
|
8086
8246
|
* Require default export
|
|
8087
8247
|
*
|
|
@@ -8092,6 +8252,26 @@ interface RuleOptions {
|
|
|
8092
8252
|
* @see https://oxc.rs/docs/guide/usage/linter/rules/vue/require-default-export.html
|
|
8093
8253
|
*/
|
|
8094
8254
|
'vue/require-default-export'?: DummyRule;
|
|
8255
|
+
/**
|
|
8256
|
+
* Require default prop
|
|
8257
|
+
*
|
|
8258
|
+
* plugin: Vue
|
|
8259
|
+
* category: Style
|
|
8260
|
+
* type-aware: false
|
|
8261
|
+
*
|
|
8262
|
+
* @see https://oxc.rs/docs/guide/usage/linter/rules/vue/require-default-prop.html
|
|
8263
|
+
*/
|
|
8264
|
+
'vue/require-default-prop'?: DummyRule;
|
|
8265
|
+
/**
|
|
8266
|
+
* Require direct export
|
|
8267
|
+
*
|
|
8268
|
+
* plugin: Vue
|
|
8269
|
+
* category: Style
|
|
8270
|
+
* type-aware: false
|
|
8271
|
+
*
|
|
8272
|
+
* @see https://oxc.rs/docs/guide/usage/linter/rules/vue/require-direct-export.html
|
|
8273
|
+
*/
|
|
8274
|
+
'vue/require-direct-export'?: DummyRule;
|
|
8095
8275
|
/**
|
|
8096
8276
|
* Require prop type constructor
|
|
8097
8277
|
*
|
|
@@ -8102,6 +8282,16 @@ interface RuleOptions {
|
|
|
8102
8282
|
* @see https://oxc.rs/docs/guide/usage/linter/rules/vue/require-prop-type-constructor.html
|
|
8103
8283
|
*/
|
|
8104
8284
|
'vue/require-prop-type-constructor'?: DummyRule;
|
|
8285
|
+
/**
|
|
8286
|
+
* Require prop types
|
|
8287
|
+
*
|
|
8288
|
+
* plugin: Vue
|
|
8289
|
+
* category: Style
|
|
8290
|
+
* type-aware: false
|
|
8291
|
+
*
|
|
8292
|
+
* @see https://oxc.rs/docs/guide/usage/linter/rules/vue/require-prop-types.html
|
|
8293
|
+
*/
|
|
8294
|
+
'vue/require-prop-types'?: DummyRule;
|
|
8105
8295
|
/**
|
|
8106
8296
|
* Require render return
|
|
8107
8297
|
*
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{t as e}from"./types-Dfvzj6n2.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`,`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/no-restricted-matchers":void 0,"vitest/no-restricted-vi-methods":void 0,"vitest/no-standalone-expect":`error`,"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":void 0,"vitest/warn-todo":`error`,"vitest/padding-around-after-all-blocks":void 0}}),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-BXv5LB73.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.12",
|
|
4
4
|
"description": "Minimal Oxlint config for 2digits projects.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"oxlint-config"
|
|
@@ -30,19 +30,19 @@
|
|
|
30
30
|
"@2digits/constants": "1.1.18"
|
|
31
31
|
},
|
|
32
32
|
"devDependencies": {
|
|
33
|
-
"@arethetypeswrong/core": "0.18.
|
|
34
|
-
"@types/node": "24.
|
|
35
|
-
"@typescript/native-preview": "7.0.0-dev.
|
|
33
|
+
"@arethetypeswrong/core": "0.18.4",
|
|
34
|
+
"@types/node": "24.13.2",
|
|
35
|
+
"@typescript/native-preview": "7.0.0-dev.20260628.1",
|
|
36
36
|
"dedent": "1.7.2",
|
|
37
|
-
"oxlint": "1.
|
|
37
|
+
"oxlint": "1.71.0",
|
|
38
38
|
"oxlint-tsgolint": "0.23.0",
|
|
39
39
|
"publint": "0.3.21",
|
|
40
40
|
"typescript": "6.0.3",
|
|
41
|
-
"vite-plus": "0.1
|
|
41
|
+
"vite-plus": "0.2.1",
|
|
42
42
|
"@2digits/tsconfig": "0.8.7"
|
|
43
43
|
},
|
|
44
44
|
"peerDependencies": {
|
|
45
|
-
"oxlint": "1.
|
|
45
|
+
"oxlint": "1.71.0",
|
|
46
46
|
"oxlint-tsgolint": "0.23.0"
|
|
47
47
|
},
|
|
48
48
|
"public": true,
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{t as e}from"./types-Dfvzj6n2.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/no-restricted-matchers":void 0,"vitest/no-restricted-vi-methods":void 0,"vitest/no-standalone-expect":`error`,"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":void 0,"vitest/warn-todo":`error`,"vitest/padding-around-after-all-blocks":void 0}}),o,a],ignorePatterns:t});export{s as t};
|