@2digits/oxlint-config 0.2.0 → 0.4.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1 @@
1
+ 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-unassigned-import":`error`,"import/no-webpack-loader-syntax":`error`,"import/unambiguous":`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-function":[`error`,{allow:[`arrowFunctions`]}],"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-undef":`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};
package/dist/base.d.mts CHANGED
@@ -1,4 +1,4 @@
1
- import { n as TypedOxlintConfig } from "./types-BLNZLukd.mjs";
1
+ import { n as TypedOxlintConfig } from "./types-BYAHPTdW.mjs";
2
2
 
3
3
  //#region src/base.d.ts
4
4
  declare const baseConfig: TypedOxlintConfig;
package/dist/base.mjs CHANGED
@@ -1 +1 @@
1
- import{t as e}from"./base-DMlZWXG4.mjs";export{e as baseConfig};
1
+ import{t as e}from"./base-Dj4ykcw8.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-BLNZLukd.mjs";
1
+ import { a as RuleName, i as defineTypedConfig, n as TypedOxlintConfig, o as RuleOptions, r as TypedOxlintOverride, t as Rules } from "./types-BYAHPTdW.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-DMlZWXG4.mjs";import{t as n}from"./typescript-ln2RdhN7.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};
1
+ import{t as e}from"./types-Bni6efgj.mjs";import{t}from"./base-Dj4ykcw8.mjs";import{t as n}from"./typescript-DTWkDXOd.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};
@@ -5116,7 +5116,7 @@ interface RuleOptions {
5116
5116
  * Prefer find
5117
5117
  *
5118
5118
  * plugin: Typescript
5119
- * category: Nursery
5119
+ * category: Style
5120
5120
  * type-aware: true
5121
5121
  *
5122
5122
  * @see https://oxc.rs/docs/guide/usage/linter/rules/typescript/prefer-find.html
@@ -5206,7 +5206,7 @@ interface RuleOptions {
5206
5206
  * Prefer readonly
5207
5207
  *
5208
5208
  * plugin: Typescript
5209
- * category: Nursery
5209
+ * category: Style
5210
5210
  * type-aware: true
5211
5211
  *
5212
5212
  * @see https://oxc.rs/docs/guide/usage/linter/rules/typescript/prefer-readonly.html
@@ -5236,7 +5236,7 @@ interface RuleOptions {
5236
5236
  * Prefer regexp exec
5237
5237
  *
5238
5238
  * plugin: Typescript
5239
- * category: Nursery
5239
+ * category: Style
5240
5240
  * type-aware: true
5241
5241
  *
5242
5242
  * @see https://oxc.rs/docs/guide/usage/linter/rules/typescript/prefer-regexp-exec.html
@@ -5256,7 +5256,7 @@ interface RuleOptions {
5256
5256
  * Prefer string starts ends with
5257
5257
  *
5258
5258
  * plugin: Typescript
5259
- * category: Nursery
5259
+ * category: Style
5260
5260
  * type-aware: true
5261
5261
  *
5262
5262
  * @see https://oxc.rs/docs/guide/usage/linter/rules/typescript/prefer-string-starts-ends-with.html
@@ -6732,6 +6732,16 @@ interface RuleOptions {
6732
6732
  * @see https://oxc.rs/docs/guide/usage/linter/rules/vitest/no-importing-vitest-globals.html
6733
6733
  */
6734
6734
  'vitest/no-importing-vitest-globals'?: DummyRule;
6735
+ /**
6736
+ * Prefer called exactly once with
6737
+ *
6738
+ * plugin: Vitest
6739
+ * category: Style
6740
+ * type-aware: false
6741
+ *
6742
+ * @see https://oxc.rs/docs/guide/usage/linter/rules/vitest/prefer-called-exactly-once-with.html
6743
+ */
6744
+ 'vitest/prefer-called-exactly-once-with'?: DummyRule;
6735
6745
  /**
6736
6746
  * Prefer called once
6737
6747
  *
@@ -6822,6 +6832,16 @@ interface RuleOptions {
6822
6832
  * @see https://oxc.rs/docs/guide/usage/linter/rules/vitest/prefer-to-be-truthy.html
6823
6833
  */
6824
6834
  'vitest/prefer-to-be-truthy'?: DummyRule;
6835
+ /**
6836
+ * Require awaited expect poll
6837
+ *
6838
+ * plugin: Vitest
6839
+ * category: Correctness
6840
+ * type-aware: false
6841
+ *
6842
+ * @see https://oxc.rs/docs/guide/usage/linter/rules/vitest/require-awaited-expect-poll.html
6843
+ */
6844
+ 'vitest/require-awaited-expect-poll'?: DummyRule;
6825
6845
  /**
6826
6846
  * Require local test context for concurrent snapshots
6827
6847
  *
@@ -6832,6 +6852,26 @@ interface RuleOptions {
6832
6852
  * @see https://oxc.rs/docs/guide/usage/linter/rules/vitest/require-local-test-context-for-concurrent-snapshots.html
6833
6853
  */
6834
6854
  'vitest/require-local-test-context-for-concurrent-snapshots'?: DummyRule;
6855
+ /**
6856
+ * Require mock type parameters
6857
+ *
6858
+ * plugin: Vitest
6859
+ * category: Correctness
6860
+ * type-aware: false
6861
+ *
6862
+ * @see https://oxc.rs/docs/guide/usage/linter/rules/vitest/require-mock-type-parameters.html
6863
+ */
6864
+ 'vitest/require-mock-type-parameters'?: DummyRule;
6865
+ /**
6866
+ * Require test timeout
6867
+ *
6868
+ * plugin: Vitest
6869
+ * category: Restriction
6870
+ * type-aware: false
6871
+ *
6872
+ * @see https://oxc.rs/docs/guide/usage/linter/rules/vitest/require-test-timeout.html
6873
+ */
6874
+ 'vitest/require-test-timeout'?: DummyRule;
6835
6875
  /**
6836
6876
  * Warn todo
6837
6877
  *
@@ -0,0 +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({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:!0}],"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}],"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`,"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/unbound-method":`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`}}),a],ignorePatterns:t});export{o as t};
@@ -1,4 +1,4 @@
1
- import { n as TypedOxlintConfig } from "./types-BLNZLukd.mjs";
1
+ import { n as TypedOxlintConfig } from "./types-BYAHPTdW.mjs";
2
2
 
3
3
  //#region src/typescript.d.ts
4
4
  declare const typescriptConfig: TypedOxlintConfig;
@@ -1 +1 @@
1
- import{t as e}from"./typescript-ln2RdhN7.mjs";export{e as typescriptConfig};
1
+ import{t as e}from"./typescript-DTWkDXOd.mjs";export{e as typescriptConfig};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@2digits/oxlint-config",
3
- "version": "0.2.0",
3
+ "version": "0.4.0",
4
4
  "description": "Minimal Oxlint config for 2digits projects.",
5
5
  "keywords": [
6
6
  "oxlint-config"
@@ -30,19 +30,19 @@
30
30
  "devDependencies": {
31
31
  "@arethetypeswrong/core": "0.18.2",
32
32
  "@types/node": "24.12.0",
33
- "@typescript/native-preview": "7.0.0-dev.20260330.1",
33
+ "@typescript/native-preview": "7.0.0-dev.20260401.1",
34
34
  "dedent": "1.7.2",
35
- "oxlint": "1.57.0",
36
- "oxlint-tsgolint": "0.18.1",
35
+ "oxlint": "1.58.0",
36
+ "oxlint-tsgolint": "0.19.0",
37
37
  "publint": "0.3.18",
38
38
  "tsx": "4.21.0",
39
39
  "typescript": "6.0.2",
40
- "vite-plus": "0.1.14",
40
+ "vite-plus": "0.1.15",
41
41
  "@2digits/tsconfig": "0.8.7"
42
42
  },
43
43
  "peerDependencies": {
44
- "oxlint": "1.57.0",
45
- "oxlint-tsgolint": "0.18.1"
44
+ "oxlint": "1.58.0",
45
+ "oxlint-tsgolint": "0.19.0"
46
46
  },
47
47
  "public": true,
48
48
  "scripts": {
@@ -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-unassigned-import":`error`,"import/no-webpack-loader-syntax":`error`,"import/unambiguous":`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-function":[`error`,{allow:[`arrowFunctions`]}],"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-undef":`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:[`node`],rules:{"node/no-exports-assign":`error`,"node/no-new-require":`error`,"node/no-path-concat":`error`}}),a=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/no-abusive-eslint-disable":`error`,"unicorn/error-message":`error`,"unicorn/no-empty-file":`error`,"unicorn/no-invalid-fetch-options":`error`,"unicorn/no-invalid-remove-event-listener":`error`,"unicorn/no-new-array":`error`,"unicorn/no-thenable":`error`,"unicorn/no-unnecessary-await":`error`,"unicorn/no-useless-fallback-in-spread":`error`,"unicorn/no-useless-length-check":`error`,"unicorn/no-useless-spread":`error`,"unicorn/prefer-node-protocol":`error`,"unicorn/prefer-ternary":[`error`,`only-single-line`],"unicorn/prefer-set-size":`error`,"unicorn/prefer-string-starts-ends-with":`error`,"unicorn/prefer-modern-dom-apis":`error`}}),n,i],ignorePatterns:t});export{a as t};
@@ -1 +0,0 @@
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({options:{typeAware:!0},rules:{"typescript/await-thenable":`error`,"typescript/consistent-type-exports":`error`,"typescript/no-array-delete":`error`,"typescript/no-base-to-string":`error`,"typescript/no-deprecated":`error`,"typescript/no-duplicate-type-constituents":`error`,"typescript/no-floating-promises":`error`,"typescript/no-for-in-array":`error`,"typescript/no-implied-eval":`error`,"typescript/no-meaningless-void-operator":`error`,"typescript/no-misused-spread":`error`,"typescript/no-redundant-type-constituents":`error`,"typescript/no-unnecessary-condition":[`error`,{allowConstantLoopConditions:`only-allowed-literals`}],"typescript/no-unsafe-unary-minus":`error`,"typescript/require-array-sort-compare":`error`,"typescript/restrict-template-expressions":[`error`,{allowNumber:!0}],"typescript/unbound-method":`error`,"typescript/dot-notation":[`error`,{allowKeywords:!0}]}}),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`],rules:{"typescript/array-type":[`error`,{default:`generic`,readonly:`generic`}],"typescript/ban-ts-comment":[`error`,{"ts-ignore":`allow-with-description`}],"typescript/consistent-generic-constructors":`error`,"typescript/consistent-type-definitions":`error`,"typescript/consistent-type-imports":[`error`,{fixStyle:`inline-type-imports`}],"typescript/no-duplicate-enum-values":`error`,"typescript/no-empty-object-type":[`error`,{allowInterfaces:`with-single-extends`,allowObjectTypes:`never`}],"typescript/no-explicit-any":`error`,"typescript/no-import-type-side-effects":`error`,"typescript/no-misused-new":`error`,"typescript/no-non-null-asserted-optional-chain":`error`,"typescript/no-non-null-assertion":`error`,"typescript/no-require-imports":`error`,"typescript/no-this-alias":`error`,"typescript/no-unnecessary-parameter-property-assignment":`error`,"typescript/no-unsafe-declaration-merging":`error`,"typescript/no-useless-empty-export":`error`,"typescript/no-var-requires":`error`,"typescript/no-wrapper-object-types":`error`,"typescript/prefer-as-const":`error`,"typescript/prefer-namespace-keyword":`error`,"typescript/triple-slash-reference":`error`}}),o,e({plugins:[`vitest`],settings:{vitest:{typecheck:!0}},rules:{"vitest/consistent-each-for":[`error`,{describe:`each`,suite:`each`,it:`each`,test:`each`}],"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/no-importing-vitest-globals":`off`,"vitest/prefer-called-once":`off`,"vitest/prefer-called-times":`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-local-test-context-for-concurrent-snapshots":`error`,"vitest/warn-todo":`error`}}),a],ignorePatterns:t});export{s as t};