@2digits/oxlint-config 0.1.0 → 0.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.mts
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import { a as RuleName, i as defineTypedConfig, n as TypedOxlintConfig, o as RuleOptions, r as TypedOxlintOverride, t as Rules } from "./types-BLNZLukd.mjs";
|
|
2
|
+
import { OxlintConfig } from "oxlint";
|
|
2
3
|
|
|
3
4
|
//#region src/config.d.ts
|
|
4
|
-
declare const twoDigits:
|
|
5
|
-
declare function withTwoDigits(...configs: Array<TypedOxlintConfig>):
|
|
5
|
+
declare const twoDigits: OxlintConfig;
|
|
6
|
+
declare function withTwoDigits(...configs: Array<TypedOxlintConfig>): OxlintConfig;
|
|
6
7
|
//#endregion
|
|
7
8
|
export { RuleName, RuleOptions, Rules, TypedOxlintConfig, TypedOxlintOverride, withTwoDigits as default, withTwoDigits, defineTypedConfig, twoDigits };
|
package/dist/index.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as e}from"./globs-DHoOMEyI.mjs";import{t}from"./base-CAFui_Ib.mjs";import{t as n}from"./typescript-
|
|
1
|
+
import{a as e}from"./globs-DHoOMEyI.mjs";import{t}from"./base-CAFui_Ib.mjs";import{t as n}from"./typescript-BGb8cofY.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};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a as e,i as t,n,r,t as i}from"./globs-DHoOMEyI.mjs";const a=e({overrides:[{files:[...n],rules:{"eslint/no-duplicate-imports":`off`,"eslint/no-undef":`off`,"eslint/no-unused-vars":`off`}},{files:[...t],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`}}),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:[...r]});export{s as t};
|
package/dist/typescript.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{t as e}from"./typescript-
|
|
1
|
+
import{t as e}from"./typescript-BGb8cofY.mjs";export{e as typescriptConfig};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@2digits/oxlint-config",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.1",
|
|
4
4
|
"description": "Minimal Oxlint config for 2digits projects.",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -30,25 +30,24 @@
|
|
|
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.
|
|
33
|
+
"@typescript/native-preview": "7.0.0-dev.20260328.1",
|
|
34
34
|
"dedent": "1.7.2",
|
|
35
35
|
"oxlint": "1.57.0",
|
|
36
|
-
"oxlint-tsgolint": "0.
|
|
36
|
+
"oxlint-tsgolint": "0.18.1",
|
|
37
37
|
"publint": "0.3.18",
|
|
38
|
-
"tsdown": "0.21.
|
|
38
|
+
"tsdown": "0.21.6",
|
|
39
39
|
"tsx": "4.21.0",
|
|
40
40
|
"typescript": "6.0.2",
|
|
41
41
|
"@2digits/tsconfig": "0.8.7"
|
|
42
42
|
},
|
|
43
43
|
"peerDependencies": {
|
|
44
44
|
"oxlint": "1.57.0",
|
|
45
|
-
"oxlint-tsgolint": "0.
|
|
45
|
+
"oxlint-tsgolint": "0.18.1"
|
|
46
46
|
},
|
|
47
47
|
"scripts": {
|
|
48
|
-
"build": "tsdown --minify
|
|
49
|
-
"dev": "tsdown --watch
|
|
48
|
+
"build": "tsdown --minify",
|
|
49
|
+
"dev": "tsdown --watch",
|
|
50
50
|
"rules:check": "tsx ./scripts/check-rules.ts",
|
|
51
|
-
"types:generate": "tsx ./scripts/generate-types.ts",
|
|
52
51
|
"types": "tsgo --noEmit"
|
|
53
52
|
}
|
|
54
53
|
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{a as e,i as t,n,r,t as i}from"./globs-DHoOMEyI.mjs";const a=e({overrides:[{files:[...n],rules:{"eslint/no-duplicate-imports":`off`,"eslint/no-undef":`off`,"eslint/no-unused-vars":`off`}},{files:[...t],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/no-base-to-string":`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-non-null-asserted-optional-chain":`error`,"typescript/no-redundant-type-constituents":`error`,"typescript/no-this-alias":`error`,"typescript/no-unnecessary-parameter-property-assignment":`error`,"typescript/no-unsafe-declaration-merging":`error`,"typescript/no-unsafe-unary-minus":`error`,"typescript/no-useless-empty-export":`error`,"typescript/require-array-sort-compare":`error`,"typescript/restrict-template-expressions":[`error`,{allowNumber:!0}],"typescript/triple-slash-reference":`error`,"typescript/unbound-method":`error`}}),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-exports":`error`,"typescript/consistent-type-imports":[`error`,{fixStyle:`inline-type-imports`}],"typescript/no-array-delete":`error`,"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-assertion":`error`,"typescript/no-require-imports":`error`,"typescript/no-var-requires":`error`,"typescript/no-wrapper-object-types":`error`,"typescript/prefer-as-const":`error`,"typescript/prefer-namespace-keyword":`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:[...r]});export{s as t};
|