@stll/oxlint-config 1.6.2 → 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 +4 -4
- package/dist/cloud-setup-cli.mjs +1 -1
- package/dist/consumer-compat-cli.cjs.map +1 -1
- package/dist/consumer-compat-cli.mjs.map +1 -1
- package/dist/consumer-node-support.mjs +1 -1
- package/dist/dependabot.d.cts +23 -7
- package/dist/dependabot.d.mts +23 -7
- package/dist/engine-support-cli.cjs.map +1 -1
- package/dist/engine-support-cli.mjs.map +1 -1
- package/dist/engine-support.d.cts +4 -5
- package/dist/engine-support.d.mts +4 -5
- package/dist/git-tracked-output.cjs.map +1 -1
- package/dist/git-tracked-output.mjs.map +1 -1
- package/dist/index.d.cts +11 -11
- package/dist/index.d.mts +11 -11
- package/dist/publish-artifact-syntax.cjs.map +1 -1
- package/dist/publish-artifact-syntax.mjs.map +1 -1
- 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/quarantine-policy2.cjs.map +1 -1
- package/dist/quarantine-policy2.mjs.map +1 -1
- package/dist/toolchain-changed.cjs +1 -3
- package/dist/toolchain-changed.cjs.map +1 -1
- package/dist/toolchain-changed.mjs +2 -4
- package/dist/toolchain-changed.mjs.map +1 -1
- package/dist/toolchain-dependabot.cjs +6 -3
- package/dist/toolchain-dependabot.cjs.map +1 -1
- package/dist/toolchain-dependabot.mjs +7 -4
- package/dist/toolchain-dependabot.mjs.map +1 -1
- package/dist/toolchain-guard.cjs +11 -4
- package/dist/toolchain-guard.cjs.map +1 -1
- package/dist/toolchain-guard.mjs +12 -5
- package/dist/toolchain-guard.mjs.map +1 -1
- package/dist/toolchain-inputs.cjs +159 -17
- package/dist/toolchain-inputs.cjs.map +1 -1
- package/dist/toolchain-inputs.mjs +148 -18
- package/dist/toolchain-inputs.mjs.map +1 -1
- package/dist/toolchain-schema.cjs +189 -1
- package/dist/toolchain-schema.cjs.map +1 -1
- package/dist/toolchain-schema.mjs +177 -3
- package/dist/toolchain-schema.mjs.map +1 -1
- package/dist/typecheck-parity.cjs.map +1 -1
- package/dist/typecheck-parity.mjs.map +1 -1
- package/dist/wasi-loader-normalizer-cli.cjs.map +1 -1
- package/dist/wasi-loader-normalizer-cli.mjs.map +1 -1
- package/package.json +6 -8
- package/toolchain.json +66 -19
|
@@ -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
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"git-tracked-output.cjs","names":["mkdtempSync","path","tmpdir","openSync","readFileSync"],"sources":["../src/git-tracked-output.ts"],"sourcesContent":["import { execFileSync } from \"node:child_process\";\nimport {\n closeSync,\n mkdtempSync,\n openSync,\n readFileSync,\n rmSync,\n} from \"node:fs\";\nimport { tmpdir } from \"node:os\";\nimport path from \"node:path\";\n\n/** Stream Git's file list to disk so consumer size cannot exhaust maxBuffer. */\nexport const readGitTrackedOutput = (root: string
|
|
1
|
+
{"version":3,"file":"git-tracked-output.cjs","names":["mkdtempSync","path","tmpdir","openSync","readFileSync"],"sources":["../src/git-tracked-output.ts"],"sourcesContent":["import { execFileSync } from \"node:child_process\";\nimport {\n closeSync,\n mkdtempSync,\n openSync,\n readFileSync,\n rmSync,\n} from \"node:fs\";\nimport { tmpdir } from \"node:os\";\nimport path from \"node:path\";\n\n/** Stream Git's file list to disk so consumer size cannot exhaust maxBuffer. */\nexport const readGitTrackedOutput = (\n root: string,\n mode: \"paths\" | \"staged\",\n) => {\n const scratch = mkdtempSync(path.join(tmpdir(), \"stll-git-tracked-\"));\n try {\n const output = path.join(scratch, \"tracked\");\n const descriptor = openSync(output, \"w\", 0o600);\n try {\n execFileSync(\n \"git\",\n [\n \"ls-files\",\n \"-z\",\n ...(mode === \"staged\" ? [\"--cached\", \"--stage\"] : []),\n ],\n { cwd: root, stdio: [\"ignore\", descriptor, \"inherit\"] },\n );\n } finally {\n closeSync(descriptor);\n }\n return readFileSync(output, \"utf8\");\n } finally {\n rmSync(scratch, { recursive: true, force: true });\n }\n};\n"],"mappings":";;;;;;;;AAYA,MAAa,wBACX,MACA,SACG;CACH,MAAM,WAAA,GAAUA,QAAAA,YAAAA,CAAYC,UAAAA,QAAK,MAAA,GAAKC,QAAAA,OAAAA,CAAO,GAAG,mBAAmB,CAAC;CACpE,IAAI;EACF,MAAM,SAASD,UAAAA,QAAK,KAAK,SAAS,SAAS;EAC3C,MAAM,cAAA,GAAaE,QAAAA,SAAAA,CAAS,QAAQ,KAAK,GAAK;EAC9C,IAAI;GACF,CAAA,GAAA,mBAAA,aAAA,CACE,OACA;IACE;IACA;IACA,GAAI,SAAS,WAAW,CAAC,YAAY,SAAS,IAAI,CAAC;GACrD,GACA;IAAE,KAAK;IAAM,OAAO;KAAC;KAAU;KAAY;IAAS;GAAE,CACxD;EACF,UAAU;GACR,CAAA,GAAA,QAAA,UAAA,CAAU,UAAU;EACtB;EACA,QAAA,GAAOC,QAAAA,aAAAA,CAAa,QAAQ,MAAM;CACpC,UAAU;EACR,CAAA,GAAA,QAAA,OAAA,CAAO,SAAS;GAAE,WAAW;GAAM,OAAO;EAAK,CAAC;CAClD;AACF"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"git-tracked-output.mjs","names":[],"sources":["../src/git-tracked-output.ts"],"sourcesContent":["import { execFileSync } from \"node:child_process\";\nimport {\n closeSync,\n mkdtempSync,\n openSync,\n readFileSync,\n rmSync,\n} from \"node:fs\";\nimport { tmpdir } from \"node:os\";\nimport path from \"node:path\";\n\n/** Stream Git's file list to disk so consumer size cannot exhaust maxBuffer. */\nexport const readGitTrackedOutput = (root: string
|
|
1
|
+
{"version":3,"file":"git-tracked-output.mjs","names":[],"sources":["../src/git-tracked-output.ts"],"sourcesContent":["import { execFileSync } from \"node:child_process\";\nimport {\n closeSync,\n mkdtempSync,\n openSync,\n readFileSync,\n rmSync,\n} from \"node:fs\";\nimport { tmpdir } from \"node:os\";\nimport path from \"node:path\";\n\n/** Stream Git's file list to disk so consumer size cannot exhaust maxBuffer. */\nexport const readGitTrackedOutput = (\n root: string,\n mode: \"paths\" | \"staged\",\n) => {\n const scratch = mkdtempSync(path.join(tmpdir(), \"stll-git-tracked-\"));\n try {\n const output = path.join(scratch, \"tracked\");\n const descriptor = openSync(output, \"w\", 0o600);\n try {\n execFileSync(\n \"git\",\n [\n \"ls-files\",\n \"-z\",\n ...(mode === \"staged\" ? [\"--cached\", \"--stage\"] : []),\n ],\n { cwd: root, stdio: [\"ignore\", descriptor, \"inherit\"] },\n );\n } finally {\n closeSync(descriptor);\n }\n return readFileSync(output, \"utf8\");\n } finally {\n rmSync(scratch, { recursive: true, force: true });\n }\n};\n"],"mappings":";;;;;;AAYA,MAAa,wBACX,MACA,SACG;CACH,MAAM,UAAU,YAAY,KAAK,KAAK,OAAO,GAAG,mBAAmB,CAAC;CACpE,IAAI;EACF,MAAM,SAAS,KAAK,KAAK,SAAS,SAAS;EAC3C,MAAM,aAAa,SAAS,QAAQ,KAAK,GAAK;EAC9C,IAAI;GACF,aACE,OACA;IACE;IACA;IACA,GAAI,SAAS,WAAW,CAAC,YAAY,SAAS,IAAI,CAAC;GACrD,GACA;IAAE,KAAK;IAAM,OAAO;KAAC;KAAU;KAAY;IAAS;GAAE,CACxD;EACF,UAAU;GACR,UAAU,UAAU;EACtB;EACA,OAAO,aAAa,QAAQ,MAAM;CACpC,UAAU;EACR,OAAO,SAAS;GAAE,WAAW;GAAM,OAAO;EAAK,CAAC;CAClD;AACF"}
|
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
|