@stll/oxlint-config 1.7.0 → 1.8.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +3 -3
- package/dist/dependabot.d.cts +13 -7
- package/dist/dependabot.d.mts +13 -7
- package/dist/engine-support.d.cts +4 -5
- package/dist/engine-support.d.mts +4 -5
- package/dist/index.d.cts +11 -11
- package/dist/index.d.mts +11 -11
- package/dist/publish-build-target-nuxt-helper.d.cts +3 -4
- package/dist/publish-build-target-nuxt-helper.d.mts +3 -4
- package/dist/publish-build-target-vite-dts-helper.d.cts +2 -2
- package/dist/publish-build-target-vite-dts-helper.d.mts +2 -2
- package/dist/publish-build-target-vite-dts-helper2.cjs +47 -4
- package/dist/publish-build-target-vite-dts-helper2.cjs.map +1 -1
- package/dist/publish-build-target-vite-dts-helper2.mjs +47 -4
- package/dist/publish-build-target-vite-dts-helper2.mjs.map +1 -1
- package/dist/publish-contract-cli.cjs +2 -2
- package/dist/publish-contract-cli.cjs.map +1 -1
- package/dist/publish-contract-cli.mjs +2 -2
- package/dist/publish-contract-cli.mjs.map +1 -1
- package/dist/quarantine-policy.d.cts +9 -9
- package/dist/quarantine-policy.d.mts +9 -9
- package/dist/toolchain-dependabot.cjs +6 -3
- package/dist/toolchain-dependabot.cjs.map +1 -1
- package/dist/toolchain-dependabot.mjs +6 -3
- package/dist/toolchain-dependabot.mjs.map +1 -1
- package/dist/toolchain-guard.cjs +1 -1
- package/dist/toolchain-guard.mjs +1 -1
- package/dist/toolchain-inputs.cjs +61 -9
- package/dist/toolchain-inputs.cjs.map +1 -1
- package/dist/toolchain-inputs.mjs +61 -9
- package/dist/toolchain-inputs.mjs.map +1 -1
- package/dist/toolchain-schema.cjs +10 -0
- package/dist/toolchain-schema.cjs.map +1 -1
- package/dist/toolchain-schema.mjs +10 -0
- package/dist/toolchain-schema.mjs.map +1 -1
- package/package.json +5 -5
- package/toolchain.json +12 -7
package/README.md
CHANGED
|
@@ -686,7 +686,7 @@ including `engines`, are rejected. Real npm and pnpm pack tests compare the
|
|
|
686
686
|
modeled contract with each tarball manifest.
|
|
687
687
|
|
|
688
688
|
Build adapters use the installed configuration loaders and bind their behavior to
|
|
689
|
-
tsdown 0.
|
|
689
|
+
tsdown 0.23.1, Vite 8.3.4, or @nuxt/module-builder 1.0.3 (unbuild 3.6.1 and
|
|
690
690
|
mkdist 2.4.1). They record final transform targets, including separate Nuxt module
|
|
691
691
|
and runtime entries. No syntax lowering records `esnext`.
|
|
692
692
|
Only exact single build invocations (`tsdown`, `vite build`, or
|
|
@@ -715,8 +715,8 @@ export default {
|
|
|
715
715
|
};
|
|
716
716
|
```
|
|
717
717
|
|
|
718
|
-
This adapter requires consumer-installed `vite-plugin-dts` 5.
|
|
719
|
-
`unplugin-dts` 1.
|
|
718
|
+
This adapter requires consumer-installed `vite-plugin-dts` 5.1.2 and its
|
|
719
|
+
`unplugin-dts` 1.1.2 implementation. Its dependency scope must provide TypeScript
|
|
720
720
|
6.0.3 as `typescript` or the plugin's `@typescript/typescript6` fallback.
|
|
721
721
|
Unsupported versions fail explicitly.
|
|
722
722
|
The resolver proves a direct helper import and call in a literal plugin array;
|
package/dist/dependabot.d.cts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
//#region src/toolchain-dependabot.d.ts
|
|
2
|
-
declare const supportedDependabotEcosystems: readonly ["bazel", "bun", "bundler", "cargo", "composer", "conda", "deno", "devcontainers", "docker", "docker-compose", "dotnet-sdk", "elm", "gitsubmodule", "github-actions", "gomod", "gradle", "helm", "julia", "maven", "mix", "nix", "npm", "nuget", "opentofu", "pip", "pre-commit", "pub", "rust-toolchain", "sbt", "swift", "terraform", "uv", "vcpkg"];
|
|
2
|
+
export declare const supportedDependabotEcosystems: readonly ["bazel", "bun", "bundler", "cargo", "composer", "conda", "deno", "devcontainers", "docker", "docker-compose", "dotnet-sdk", "elm", "gitsubmodule", "github-actions", "gomod", "gradle", "helm", "julia", "maven", "mix", "nix", "npm", "nuget", "opentofu", "pip", "pre-commit", "pub", "rust-toolchain", "sbt", "swift", "terraform", "uv", "vcpkg"];
|
|
3
3
|
type DependabotEcosystem = (typeof supportedDependabotEcosystems)[number];
|
|
4
4
|
type DependabotPolicy = {
|
|
5
5
|
schedule: {
|
|
@@ -11,6 +11,9 @@ type DependabotPolicy = {
|
|
|
11
11
|
cooldown: {
|
|
12
12
|
defaultDays: number;
|
|
13
13
|
};
|
|
14
|
+
actionGroups: Record<string, {
|
|
15
|
+
patterns: readonly string[];
|
|
16
|
+
}>;
|
|
14
17
|
groups: Record<string, {
|
|
15
18
|
patterns: readonly string[];
|
|
16
19
|
updateTypes: readonly string[];
|
|
@@ -19,7 +22,7 @@ type DependabotPolicy = {
|
|
|
19
22
|
ignoredActions: readonly string[];
|
|
20
23
|
ignoredImages: readonly string[];
|
|
21
24
|
};
|
|
22
|
-
declare const dependabotIgnoreUpdateTypes: readonly ["version-update:semver-major", "version-update:semver-minor", "version-update:semver-patch"];
|
|
25
|
+
export declare const dependabotIgnoreUpdateTypes: readonly ["version-update:semver-major", "version-update:semver-minor", "version-update:semver-patch"];
|
|
23
26
|
type DependabotIgnoreUpdateType = (typeof dependabotIgnoreUpdateTypes)[number];
|
|
24
27
|
/** A reviewed repository decision to skip some version updates of one dependency. */
|
|
25
28
|
type DependabotIgnoreDeclaration = {
|
|
@@ -31,7 +34,7 @@ type DependabotIgnoreDeclaration = {
|
|
|
31
34
|
readonly reason: string;
|
|
32
35
|
};
|
|
33
36
|
/** Parse `dependabotIgnores` from stll-toolchain.json; malformed decisions fail closed. */
|
|
34
|
-
declare const parseDependabotIgnores: (input: unknown) => DependabotIgnoreDeclaration[];
|
|
37
|
+
export declare const parseDependabotIgnores: (input: unknown) => DependabotIgnoreDeclaration[];
|
|
35
38
|
type CheckDependabotOptions = {
|
|
36
39
|
files: Record<string, string>;
|
|
37
40
|
policy: DependabotPolicy;
|
|
@@ -39,7 +42,7 @@ type CheckDependabotOptions = {
|
|
|
39
42
|
ignores?: readonly DependabotIgnoreDeclaration[] | undefined;
|
|
40
43
|
};
|
|
41
44
|
/** Repository declarations own coverage only; shared policy owns every update option. */
|
|
42
|
-
declare const parseDependabotInput: (input: unknown) => {
|
|
45
|
+
export declare const parseDependabotInput: (input: unknown) => {
|
|
43
46
|
ecosystem: "bazel" | "bun" | "bundler" | "cargo" | "composer" | "conda" | "deno" | "devcontainers" | "docker" | "docker-compose" | "dotnet-sdk" | "elm" | "github-actions" | "gitsubmodule" | "gomod" | "gradle" | "helm" | "julia" | "maven" | "mix" | "nix" | "npm" | "nuget" | "opentofu" | "pip" | "pre-commit" | "pub" | "rust-toolchain" | "sbt" | "swift" | "terraform" | "uv" | "vcpkg";
|
|
44
47
|
directories: string[];
|
|
45
48
|
}[];
|
|
@@ -47,7 +50,7 @@ type GenerateDependabotOptions = CheckDependabotOptions & {
|
|
|
47
50
|
updates?: ReturnType<typeof parseDependabotInput> | undefined;
|
|
48
51
|
};
|
|
49
52
|
/** Generate canonical YAML from the same ecosystem enumeration used by the guard. */
|
|
50
|
-
declare const generateDependabotConfig: ({ files, policy, updates: declarations, ignores }: GenerateDependabotOptions) => string;
|
|
53
|
+
export declare const generateDependabotConfig: ({ files, policy, updates: declarations, ignores }: GenerateDependabotOptions) => string;
|
|
51
54
|
//#endregion
|
|
52
55
|
//#region src/toolchain-formatter.d.ts
|
|
53
56
|
type FormatterStyle = Readonly<Record<string, unknown>>;
|
|
@@ -60,7 +63,7 @@ type FormatterPolicy = {
|
|
|
60
63
|
//#endregion
|
|
61
64
|
//#region src/toolchain-schema.d.ts
|
|
62
65
|
/** Reject unsupported or incomplete installed policies before inspecting a consumer. */
|
|
63
|
-
declare const parseToolchainPolicy: (input: unknown) => {
|
|
66
|
+
export declare const parseToolchainPolicy: (input: unknown) => {
|
|
64
67
|
bun: string;
|
|
65
68
|
formatter: FormatterPolicy;
|
|
66
69
|
typescript: string;
|
|
@@ -129,6 +132,9 @@ declare const parseToolchainPolicy: (input: unknown) => {
|
|
|
129
132
|
cooldown: {
|
|
130
133
|
defaultDays: number;
|
|
131
134
|
};
|
|
135
|
+
actionGroups: Record<string, {
|
|
136
|
+
patterns: string[];
|
|
137
|
+
}>;
|
|
132
138
|
groups: Record<string, {
|
|
133
139
|
patterns: string[];
|
|
134
140
|
updateTypes: string[];
|
|
@@ -139,5 +145,5 @@ declare const parseToolchainPolicy: (input: unknown) => {
|
|
|
139
145
|
};
|
|
140
146
|
};
|
|
141
147
|
//#endregion
|
|
142
|
-
export {
|
|
148
|
+
export type { DependabotEcosystem, DependabotIgnoreDeclaration, DependabotIgnoreUpdateType };
|
|
143
149
|
//# sourceMappingURL=dependabot.d.cts.map
|
package/dist/dependabot.d.mts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
//#region src/toolchain-dependabot.d.ts
|
|
2
|
-
declare const supportedDependabotEcosystems: readonly ["bazel", "bun", "bundler", "cargo", "composer", "conda", "deno", "devcontainers", "docker", "docker-compose", "dotnet-sdk", "elm", "gitsubmodule", "github-actions", "gomod", "gradle", "helm", "julia", "maven", "mix", "nix", "npm", "nuget", "opentofu", "pip", "pre-commit", "pub", "rust-toolchain", "sbt", "swift", "terraform", "uv", "vcpkg"];
|
|
2
|
+
export declare const supportedDependabotEcosystems: readonly ["bazel", "bun", "bundler", "cargo", "composer", "conda", "deno", "devcontainers", "docker", "docker-compose", "dotnet-sdk", "elm", "gitsubmodule", "github-actions", "gomod", "gradle", "helm", "julia", "maven", "mix", "nix", "npm", "nuget", "opentofu", "pip", "pre-commit", "pub", "rust-toolchain", "sbt", "swift", "terraform", "uv", "vcpkg"];
|
|
3
3
|
type DependabotEcosystem = (typeof supportedDependabotEcosystems)[number];
|
|
4
4
|
type DependabotPolicy = {
|
|
5
5
|
schedule: {
|
|
@@ -11,6 +11,9 @@ type DependabotPolicy = {
|
|
|
11
11
|
cooldown: {
|
|
12
12
|
defaultDays: number;
|
|
13
13
|
};
|
|
14
|
+
actionGroups: Record<string, {
|
|
15
|
+
patterns: readonly string[];
|
|
16
|
+
}>;
|
|
14
17
|
groups: Record<string, {
|
|
15
18
|
patterns: readonly string[];
|
|
16
19
|
updateTypes: readonly string[];
|
|
@@ -19,7 +22,7 @@ type DependabotPolicy = {
|
|
|
19
22
|
ignoredActions: readonly string[];
|
|
20
23
|
ignoredImages: readonly string[];
|
|
21
24
|
};
|
|
22
|
-
declare const dependabotIgnoreUpdateTypes: readonly ["version-update:semver-major", "version-update:semver-minor", "version-update:semver-patch"];
|
|
25
|
+
export declare const dependabotIgnoreUpdateTypes: readonly ["version-update:semver-major", "version-update:semver-minor", "version-update:semver-patch"];
|
|
23
26
|
type DependabotIgnoreUpdateType = (typeof dependabotIgnoreUpdateTypes)[number];
|
|
24
27
|
/** A reviewed repository decision to skip some version updates of one dependency. */
|
|
25
28
|
type DependabotIgnoreDeclaration = {
|
|
@@ -31,7 +34,7 @@ type DependabotIgnoreDeclaration = {
|
|
|
31
34
|
readonly reason: string;
|
|
32
35
|
};
|
|
33
36
|
/** Parse `dependabotIgnores` from stll-toolchain.json; malformed decisions fail closed. */
|
|
34
|
-
declare const parseDependabotIgnores: (input: unknown) => DependabotIgnoreDeclaration[];
|
|
37
|
+
export declare const parseDependabotIgnores: (input: unknown) => DependabotIgnoreDeclaration[];
|
|
35
38
|
type CheckDependabotOptions = {
|
|
36
39
|
files: Record<string, string>;
|
|
37
40
|
policy: DependabotPolicy;
|
|
@@ -39,7 +42,7 @@ type CheckDependabotOptions = {
|
|
|
39
42
|
ignores?: readonly DependabotIgnoreDeclaration[] | undefined;
|
|
40
43
|
};
|
|
41
44
|
/** Repository declarations own coverage only; shared policy owns every update option. */
|
|
42
|
-
declare const parseDependabotInput: (input: unknown) => {
|
|
45
|
+
export declare const parseDependabotInput: (input: unknown) => {
|
|
43
46
|
ecosystem: "bazel" | "bun" | "bundler" | "cargo" | "composer" | "conda" | "deno" | "devcontainers" | "docker" | "docker-compose" | "dotnet-sdk" | "elm" | "github-actions" | "gitsubmodule" | "gomod" | "gradle" | "helm" | "julia" | "maven" | "mix" | "nix" | "npm" | "nuget" | "opentofu" | "pip" | "pre-commit" | "pub" | "rust-toolchain" | "sbt" | "swift" | "terraform" | "uv" | "vcpkg";
|
|
44
47
|
directories: string[];
|
|
45
48
|
}[];
|
|
@@ -47,7 +50,7 @@ type GenerateDependabotOptions = CheckDependabotOptions & {
|
|
|
47
50
|
updates?: ReturnType<typeof parseDependabotInput> | undefined;
|
|
48
51
|
};
|
|
49
52
|
/** Generate canonical YAML from the same ecosystem enumeration used by the guard. */
|
|
50
|
-
declare const generateDependabotConfig: ({ files, policy, updates: declarations, ignores }: GenerateDependabotOptions) => string;
|
|
53
|
+
export declare const generateDependabotConfig: ({ files, policy, updates: declarations, ignores }: GenerateDependabotOptions) => string;
|
|
51
54
|
//#endregion
|
|
52
55
|
//#region src/toolchain-formatter.d.ts
|
|
53
56
|
type FormatterStyle = Readonly<Record<string, unknown>>;
|
|
@@ -60,7 +63,7 @@ type FormatterPolicy = {
|
|
|
60
63
|
//#endregion
|
|
61
64
|
//#region src/toolchain-schema.d.ts
|
|
62
65
|
/** Reject unsupported or incomplete installed policies before inspecting a consumer. */
|
|
63
|
-
declare const parseToolchainPolicy: (input: unknown) => {
|
|
66
|
+
export declare const parseToolchainPolicy: (input: unknown) => {
|
|
64
67
|
bun: string;
|
|
65
68
|
formatter: FormatterPolicy;
|
|
66
69
|
typescript: string;
|
|
@@ -129,6 +132,9 @@ declare const parseToolchainPolicy: (input: unknown) => {
|
|
|
129
132
|
cooldown: {
|
|
130
133
|
defaultDays: number;
|
|
131
134
|
};
|
|
135
|
+
actionGroups: Record<string, {
|
|
136
|
+
patterns: string[];
|
|
137
|
+
}>;
|
|
132
138
|
groups: Record<string, {
|
|
133
139
|
patterns: string[];
|
|
134
140
|
updateTypes: string[];
|
|
@@ -139,5 +145,5 @@ declare const parseToolchainPolicy: (input: unknown) => {
|
|
|
139
145
|
};
|
|
140
146
|
};
|
|
141
147
|
//#endregion
|
|
142
|
-
export {
|
|
148
|
+
export type { DependabotEcosystem, DependabotIgnoreDeclaration, DependabotIgnoreUpdateType };
|
|
143
149
|
//# sourceMappingURL=dependabot.d.mts.map
|
|
@@ -1,21 +1,20 @@
|
|
|
1
1
|
//#region src/engine-support.d.ts
|
|
2
|
-
type EnginePackage = {
|
|
2
|
+
export type EnginePackage = {
|
|
3
3
|
name: string;
|
|
4
4
|
node?: string;
|
|
5
5
|
changesetsManaged: boolean;
|
|
6
6
|
};
|
|
7
|
-
type EngineSupportInput = {
|
|
7
|
+
export type EngineSupportInput = {
|
|
8
8
|
base: ReadonlyMap<string, EnginePackage>;
|
|
9
9
|
head: ReadonlyMap<string, EnginePackage>;
|
|
10
10
|
majorReleases: ReadonlySet<string>;
|
|
11
11
|
};
|
|
12
|
-
type EngineSupportFailure = {
|
|
12
|
+
export type EngineSupportFailure = {
|
|
13
13
|
packageName: string;
|
|
14
14
|
baseRange: string;
|
|
15
15
|
headRange: string;
|
|
16
16
|
};
|
|
17
17
|
/** Returns engine-support changes that require a pending major release. */
|
|
18
|
-
declare const checkEngineSupport: ({ base, head, majorReleases }: EngineSupportInput) => EngineSupportFailure[];
|
|
18
|
+
export declare const checkEngineSupport: ({ base, head, majorReleases }: EngineSupportInput) => EngineSupportFailure[];
|
|
19
19
|
//#endregion
|
|
20
|
-
export { EnginePackage, EngineSupportFailure, EngineSupportInput, checkEngineSupport };
|
|
21
20
|
//# sourceMappingURL=engine-support.d.cts.map
|
|
@@ -1,21 +1,20 @@
|
|
|
1
1
|
//#region src/engine-support.d.ts
|
|
2
|
-
type EnginePackage = {
|
|
2
|
+
export type EnginePackage = {
|
|
3
3
|
name: string;
|
|
4
4
|
node?: string;
|
|
5
5
|
changesetsManaged: boolean;
|
|
6
6
|
};
|
|
7
|
-
type EngineSupportInput = {
|
|
7
|
+
export type EngineSupportInput = {
|
|
8
8
|
base: ReadonlyMap<string, EnginePackage>;
|
|
9
9
|
head: ReadonlyMap<string, EnginePackage>;
|
|
10
10
|
majorReleases: ReadonlySet<string>;
|
|
11
11
|
};
|
|
12
|
-
type EngineSupportFailure = {
|
|
12
|
+
export type EngineSupportFailure = {
|
|
13
13
|
packageName: string;
|
|
14
14
|
baseRange: string;
|
|
15
15
|
headRange: string;
|
|
16
16
|
};
|
|
17
17
|
/** Returns engine-support changes that require a pending major release. */
|
|
18
|
-
declare const checkEngineSupport: ({ base, head, majorReleases }: EngineSupportInput) => EngineSupportFailure[];
|
|
18
|
+
export declare const checkEngineSupport: ({ base, head, majorReleases }: EngineSupportInput) => EngineSupportFailure[];
|
|
19
19
|
//#endregion
|
|
20
|
-
export { EnginePackage, EngineSupportFailure, EngineSupportInput, checkEngineSupport };
|
|
21
20
|
//# sourceMappingURL=engine-support.d.mts.map
|
package/dist/index.d.cts
CHANGED
|
@@ -4,7 +4,7 @@ type Rules = NonNullable<OxlintConfig["rules"]>;
|
|
|
4
4
|
type JsPlugins = NonNullable<OxlintConfig["jsPlugins"]>;
|
|
5
5
|
type Options = NonNullable<OxlintConfig["options"]>;
|
|
6
6
|
type Plugins = NonNullable<OxlintConfig["plugins"]>;
|
|
7
|
-
type LibraryOptions = {
|
|
7
|
+
export type LibraryOptions = {
|
|
8
8
|
jsPlugins?: JsPlugins;
|
|
9
9
|
ignorePatterns?: string[];
|
|
10
10
|
options?: Options;
|
|
@@ -15,11 +15,11 @@ type LibraryOptions = {
|
|
|
15
15
|
files: [string, ...string[]];
|
|
16
16
|
};
|
|
17
17
|
};
|
|
18
|
-
declare const stellaLowercasePluginSpecifier = "@stll/oxlint-config/plugin";
|
|
19
|
-
declare const noRawColorsPluginSpecifier = "@stll/oxlint-config/no-raw-colors";
|
|
20
|
-
declare const libraryIgnorePatterns: string[];
|
|
21
|
-
declare const libraryPlugins: ("eslint" | "import" | "oxc" | "promise" | "typescript" | "unicorn")[];
|
|
22
|
-
declare const reactCompilerRules: {
|
|
18
|
+
export declare const stellaLowercasePluginSpecifier = "@stll/oxlint-config/plugin";
|
|
19
|
+
export declare const noRawColorsPluginSpecifier = "@stll/oxlint-config/no-raw-colors";
|
|
20
|
+
export declare const libraryIgnorePatterns: string[];
|
|
21
|
+
export declare const libraryPlugins: ("eslint" | "import" | "oxc" | "promise" | "typescript" | "unicorn")[];
|
|
22
|
+
export declare const reactCompilerRules: {
|
|
23
23
|
"react/capitalized-calls": "error";
|
|
24
24
|
"react/error-boundaries": "error";
|
|
25
25
|
"react/exhaustive-effect-dependencies": "error";
|
|
@@ -43,7 +43,7 @@ declare const reactCompilerRules: {
|
|
|
43
43
|
"react/use-memo": "error";
|
|
44
44
|
"react/void-use-memo": "error";
|
|
45
45
|
};
|
|
46
|
-
declare const libraryRules: {
|
|
46
|
+
export declare const libraryRules: {
|
|
47
47
|
"no-console": "off";
|
|
48
48
|
"no-shadow": "error";
|
|
49
49
|
"require-await": "error";
|
|
@@ -132,7 +132,7 @@ declare const libraryRules: {
|
|
|
132
132
|
"func-names": "off";
|
|
133
133
|
"default-case": "off";
|
|
134
134
|
};
|
|
135
|
-
declare const reactRules: {
|
|
135
|
+
export declare const reactRules: {
|
|
136
136
|
"react/capitalized-calls": "error";
|
|
137
137
|
"react/error-boundaries": "error";
|
|
138
138
|
"react/exhaustive-effect-dependencies": "error";
|
|
@@ -175,7 +175,7 @@ declare const reactRules: {
|
|
|
175
175
|
"react/no-will-update-set-state": "off";
|
|
176
176
|
"react/void-dom-elements-no-children": "off";
|
|
177
177
|
};
|
|
178
|
-
declare const libraryOverrides: {
|
|
178
|
+
export declare const libraryOverrides: {
|
|
179
179
|
files: string[];
|
|
180
180
|
rules: {
|
|
181
181
|
"no-console": "off";
|
|
@@ -183,8 +183,8 @@ declare const libraryOverrides: {
|
|
|
183
183
|
"no-non-null-assertion": "off";
|
|
184
184
|
};
|
|
185
185
|
}[];
|
|
186
|
-
declare const library: (options?: LibraryOptions) => OxlintConfig;
|
|
186
|
+
export declare const library: (options?: LibraryOptions) => OxlintConfig;
|
|
187
187
|
declare const _default: OxlintConfig;
|
|
188
188
|
//#endregion
|
|
189
|
-
export {
|
|
189
|
+
export { _default as default };
|
|
190
190
|
//# sourceMappingURL=index.d.cts.map
|
package/dist/index.d.mts
CHANGED
|
@@ -4,7 +4,7 @@ type Rules = NonNullable<OxlintConfig["rules"]>;
|
|
|
4
4
|
type JsPlugins = NonNullable<OxlintConfig["jsPlugins"]>;
|
|
5
5
|
type Options = NonNullable<OxlintConfig["options"]>;
|
|
6
6
|
type Plugins = NonNullable<OxlintConfig["plugins"]>;
|
|
7
|
-
type LibraryOptions = {
|
|
7
|
+
export type LibraryOptions = {
|
|
8
8
|
jsPlugins?: JsPlugins;
|
|
9
9
|
ignorePatterns?: string[];
|
|
10
10
|
options?: Options;
|
|
@@ -15,11 +15,11 @@ type LibraryOptions = {
|
|
|
15
15
|
files: [string, ...string[]];
|
|
16
16
|
};
|
|
17
17
|
};
|
|
18
|
-
declare const stellaLowercasePluginSpecifier = "@stll/oxlint-config/plugin";
|
|
19
|
-
declare const noRawColorsPluginSpecifier = "@stll/oxlint-config/no-raw-colors";
|
|
20
|
-
declare const libraryIgnorePatterns: string[];
|
|
21
|
-
declare const libraryPlugins: ("eslint" | "import" | "oxc" | "promise" | "typescript" | "unicorn")[];
|
|
22
|
-
declare const reactCompilerRules: {
|
|
18
|
+
export declare const stellaLowercasePluginSpecifier = "@stll/oxlint-config/plugin";
|
|
19
|
+
export declare const noRawColorsPluginSpecifier = "@stll/oxlint-config/no-raw-colors";
|
|
20
|
+
export declare const libraryIgnorePatterns: string[];
|
|
21
|
+
export declare const libraryPlugins: ("eslint" | "import" | "oxc" | "promise" | "typescript" | "unicorn")[];
|
|
22
|
+
export declare const reactCompilerRules: {
|
|
23
23
|
"react/capitalized-calls": "error";
|
|
24
24
|
"react/error-boundaries": "error";
|
|
25
25
|
"react/exhaustive-effect-dependencies": "error";
|
|
@@ -43,7 +43,7 @@ declare const reactCompilerRules: {
|
|
|
43
43
|
"react/use-memo": "error";
|
|
44
44
|
"react/void-use-memo": "error";
|
|
45
45
|
};
|
|
46
|
-
declare const libraryRules: {
|
|
46
|
+
export declare const libraryRules: {
|
|
47
47
|
"no-console": "off";
|
|
48
48
|
"no-shadow": "error";
|
|
49
49
|
"require-await": "error";
|
|
@@ -132,7 +132,7 @@ declare const libraryRules: {
|
|
|
132
132
|
"func-names": "off";
|
|
133
133
|
"default-case": "off";
|
|
134
134
|
};
|
|
135
|
-
declare const reactRules: {
|
|
135
|
+
export declare const reactRules: {
|
|
136
136
|
"react/capitalized-calls": "error";
|
|
137
137
|
"react/error-boundaries": "error";
|
|
138
138
|
"react/exhaustive-effect-dependencies": "error";
|
|
@@ -175,7 +175,7 @@ declare const reactRules: {
|
|
|
175
175
|
"react/no-will-update-set-state": "off";
|
|
176
176
|
"react/void-dom-elements-no-children": "off";
|
|
177
177
|
};
|
|
178
|
-
declare const libraryOverrides: {
|
|
178
|
+
export declare const libraryOverrides: {
|
|
179
179
|
files: string[];
|
|
180
180
|
rules: {
|
|
181
181
|
"no-console": "off";
|
|
@@ -183,8 +183,8 @@ declare const libraryOverrides: {
|
|
|
183
183
|
"no-non-null-assertion": "off";
|
|
184
184
|
};
|
|
185
185
|
}[];
|
|
186
|
-
declare const library: (options?: LibraryOptions) => OxlintConfig;
|
|
186
|
+
export declare const library: (options?: LibraryOptions) => OxlintConfig;
|
|
187
187
|
declare const _default: OxlintConfig;
|
|
188
188
|
//#endregion
|
|
189
|
-
export {
|
|
189
|
+
export { _default as default };
|
|
190
190
|
//# sourceMappingURL=index.d.mts.map
|
|
@@ -1,10 +1,9 @@
|
|
|
1
1
|
//#region src/publish-build-target-nuxt-helper.d.ts
|
|
2
2
|
/** Configure both module and runtime JavaScript without replacing Nuxt entries. */
|
|
3
|
-
declare const nuxtModuleTarget: (target: string | string[]) => (context: unknown) => void;
|
|
3
|
+
export declare const nuxtModuleTarget: (target: string | string[]) => (context: unknown) => void;
|
|
4
4
|
/** Read immutable target data across ESM and CommonJS without executing the callback. */
|
|
5
|
-
declare const nuxtModuleTargetTargets: (value: unknown) => string[] | undefined;
|
|
5
|
+
export declare const nuxtModuleTargetTargets: (value: unknown) => string[] | undefined;
|
|
6
6
|
/** Recognize the same declared target data across ESM and CommonJS modules. */
|
|
7
|
-
declare const isNuxtModuleTargetHook: (value: unknown) => boolean;
|
|
7
|
+
export declare const isNuxtModuleTargetHook: (value: unknown) => boolean;
|
|
8
8
|
//#endregion
|
|
9
|
-
export { isNuxtModuleTargetHook, nuxtModuleTarget, nuxtModuleTargetTargets };
|
|
10
9
|
//# sourceMappingURL=publish-build-target-nuxt-helper.d.cts.map
|
|
@@ -1,10 +1,9 @@
|
|
|
1
1
|
//#region src/publish-build-target-nuxt-helper.d.ts
|
|
2
2
|
/** Configure both module and runtime JavaScript without replacing Nuxt entries. */
|
|
3
|
-
declare const nuxtModuleTarget: (target: string | string[]) => (context: unknown) => void;
|
|
3
|
+
export declare const nuxtModuleTarget: (target: string | string[]) => (context: unknown) => void;
|
|
4
4
|
/** Read immutable target data across ESM and CommonJS without executing the callback. */
|
|
5
|
-
declare const nuxtModuleTargetTargets: (value: unknown) => string[] | undefined;
|
|
5
|
+
export declare const nuxtModuleTargetTargets: (value: unknown) => string[] | undefined;
|
|
6
6
|
/** Recognize the same declared target data across ESM and CommonJS modules. */
|
|
7
|
-
declare const isNuxtModuleTargetHook: (value: unknown) => boolean;
|
|
7
|
+
export declare const isNuxtModuleTargetHook: (value: unknown) => boolean;
|
|
8
8
|
//#endregion
|
|
9
|
-
export { isNuxtModuleTargetHook, nuxtModuleTarget, nuxtModuleTargetTargets };
|
|
10
9
|
//# sourceMappingURL=publish-build-target-nuxt-helper.d.mts.map
|
|
@@ -18,7 +18,7 @@ type DeclarationOnlyDtsOptions = {
|
|
|
18
18
|
directory: string;
|
|
19
19
|
} & ReviewedViteDtsOptions;
|
|
20
20
|
/** The actual build uses this closed factory and its guarded declaration hooks. */
|
|
21
|
-
declare const declarationOnlyDts: ({ directory, ...options }: DeclarationOnlyDtsOptions) => Plugin;
|
|
21
|
+
export declare const declarationOnlyDts: ({ directory, ...options }: DeclarationOnlyDtsOptions) => Plugin;
|
|
22
22
|
//#endregion
|
|
23
|
-
export {
|
|
23
|
+
export {};
|
|
24
24
|
//# sourceMappingURL=publish-build-target-vite-dts-helper.d.cts.map
|
|
@@ -18,7 +18,7 @@ type DeclarationOnlyDtsOptions = {
|
|
|
18
18
|
directory: string;
|
|
19
19
|
} & ReviewedViteDtsOptions;
|
|
20
20
|
/** The actual build uses this closed factory and its guarded declaration hooks. */
|
|
21
|
-
declare const declarationOnlyDts: ({ directory, ...options }: DeclarationOnlyDtsOptions) => Plugin;
|
|
21
|
+
export declare const declarationOnlyDts: ({ directory, ...options }: DeclarationOnlyDtsOptions) => Plugin;
|
|
22
22
|
//#endregion
|
|
23
|
-
export {
|
|
23
|
+
export {};
|
|
24
24
|
//# sourceMappingURL=publish-build-target-vite-dts-helper.d.mts.map
|
|
@@ -7,8 +7,8 @@ let node_crypto = require("node:crypto");
|
|
|
7
7
|
let node_module = require("node:module");
|
|
8
8
|
//#region src/publish-build-target-vite-dts.ts
|
|
9
9
|
const reviewedViteDtsVersions = {
|
|
10
|
-
"vite-plugin-dts": "5.
|
|
11
|
-
"unplugin-dts": "1.
|
|
10
|
+
"vite-plugin-dts": "5.1.2",
|
|
11
|
+
"unplugin-dts": "1.1.2"
|
|
12
12
|
};
|
|
13
13
|
const record$1 = (value) => typeof value === "object" && value !== null && !Array.isArray(value);
|
|
14
14
|
const staticEntries = (value) => {
|
|
@@ -108,6 +108,7 @@ const assertDeclarationOnlyOutput = ({ before, after }) => {
|
|
|
108
108
|
if (!declarationPath(file) && before[file] !== after[file]) throw new Error(`Declaration plugin changed non-declaration output: ${file}`);
|
|
109
109
|
}
|
|
110
110
|
};
|
|
111
|
+
const withheldContextCapabilities = /* @__PURE__ */ new Set(["getNativeBuildContext"]);
|
|
111
112
|
const passiveContextMethods = /* @__PURE__ */ new Set([
|
|
112
113
|
"warn",
|
|
113
114
|
"error",
|
|
@@ -195,6 +196,7 @@ const createDeclarationEmissionLedger = () => {
|
|
|
195
196
|
methods.set(key, forwarded);
|
|
196
197
|
return forwarded;
|
|
197
198
|
}
|
|
199
|
+
if (withheldContextCapabilities.has(key)) return void 0;
|
|
198
200
|
const value = receiver[key];
|
|
199
201
|
if (key === "meta") return contextData(value);
|
|
200
202
|
if (value === null || [
|
|
@@ -223,6 +225,42 @@ const createDeclarationEmissionLedger = () => {
|
|
|
223
225
|
audit
|
|
224
226
|
};
|
|
225
227
|
};
|
|
228
|
+
const idPattern = (value) => {
|
|
229
|
+
if (value === void 0 || typeof value === "string") return value;
|
|
230
|
+
if (value instanceof RegExp) return value;
|
|
231
|
+
if (Array.isArray(value) && value.every((entry) => typeof entry === "string" || entry instanceof RegExp)) return value;
|
|
232
|
+
throw new Error("Declaration hook filters may only name static ids");
|
|
233
|
+
};
|
|
234
|
+
const dataEntries = (value, keys) => Reflect.ownKeys(value).map((key) => {
|
|
235
|
+
const descriptor = Object.getOwnPropertyDescriptor(value, key);
|
|
236
|
+
if (typeof key !== "string" || !keys.includes(key) || !descriptor) throw new Error("Invalid reviewed declaration hook");
|
|
237
|
+
if (!("value" in descriptor)) throw new Error("Declaration hooks cannot contain accessors");
|
|
238
|
+
return [key, descriptor.value];
|
|
239
|
+
});
|
|
240
|
+
/**
|
|
241
|
+
* Split a plugin hook into its function and the static id filter of the
|
|
242
|
+
* object form; a filter only narrows which modules reach the handler.
|
|
243
|
+
*/
|
|
244
|
+
const declarationHookParts = (value) => {
|
|
245
|
+
if (typeof value === "function") return { handler: value };
|
|
246
|
+
if (!record$1(value)) throw new Error("Invalid reviewed declaration hook");
|
|
247
|
+
const parts = Object.fromEntries(dataEntries(value, ["handler", "filter"]));
|
|
248
|
+
const filter = parts["filter"];
|
|
249
|
+
if (filter === void 0) return { handler: parts["handler"] };
|
|
250
|
+
if (!record$1(filter)) throw new Error("Invalid reviewed declaration hook");
|
|
251
|
+
const id = Object.fromEntries(dataEntries(filter, ["id"]))["id"];
|
|
252
|
+
if (!record$1(id)) throw new Error("Invalid reviewed declaration hook");
|
|
253
|
+
const idFilter = Object.fromEntries(dataEntries(id, ["include", "exclude"]));
|
|
254
|
+
const ids = {};
|
|
255
|
+
const include = idPattern(idFilter["include"]);
|
|
256
|
+
const exclude = idPattern(idFilter["exclude"]);
|
|
257
|
+
if (include !== void 0) ids.include = include;
|
|
258
|
+
if (exclude !== void 0) ids.exclude = exclude;
|
|
259
|
+
return {
|
|
260
|
+
handler: parts["handler"],
|
|
261
|
+
filter: { id: ids }
|
|
262
|
+
};
|
|
263
|
+
};
|
|
226
264
|
/** Substitute a closed producer context while guarding the actual hook invocation. */
|
|
227
265
|
const guardDeclarationHook = ({ hook, hookName, outputDirectories, ledger = createDeclarationEmissionLedger() }) => {
|
|
228
266
|
if (typeof hook !== "function") throw new Error("Invalid reviewed declaration hook");
|
|
@@ -307,11 +345,13 @@ const declarationOnlyDts = ({ directory, ...options }) => {
|
|
|
307
345
|
const outputDirectories = [];
|
|
308
346
|
const ledger = createDeclarationEmissionLedger();
|
|
309
347
|
const hook = (name) => guardDeclarationHook({
|
|
310
|
-
hook: plugin[name],
|
|
348
|
+
hook: declarationHookParts(plugin[name]).handler,
|
|
311
349
|
hookName: name,
|
|
312
350
|
outputDirectories,
|
|
313
351
|
ledger
|
|
314
352
|
});
|
|
353
|
+
const transformFilter = declarationHookParts(plugin["transform"]).filter;
|
|
354
|
+
const transform = hook("transform");
|
|
315
355
|
const configResolved = hook("configResolved");
|
|
316
356
|
return {
|
|
317
357
|
name: "stll:declaration-only-dts",
|
|
@@ -337,7 +377,10 @@ const declarationOnlyDts = ({ directory, ...options }) => {
|
|
|
337
377
|
await configResolved.call(this, config);
|
|
338
378
|
},
|
|
339
379
|
buildStart: hook("buildStart"),
|
|
340
|
-
transform:
|
|
380
|
+
transform: transformFilter === void 0 ? transform : {
|
|
381
|
+
filter: transformFilter,
|
|
382
|
+
handler: transform
|
|
383
|
+
},
|
|
341
384
|
watchChange: hook("watchChange"),
|
|
342
385
|
generateBundle: {
|
|
343
386
|
order: "post",
|