@kitschpatrol/eslint-config 5.0.4 → 5.0.6
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/bin/cli.js +17 -12
- package/dist/index.d.ts +1981 -437
- package/dist/index.js +33 -19
- package/package.json +20 -20
package/bin/cli.js
CHANGED
|
@@ -5541,14 +5541,14 @@ var Yargs = YargsFactory(esm_default);
|
|
|
5541
5541
|
var yargs_default = Yargs;
|
|
5542
5542
|
|
|
5543
5543
|
// ../../package.json
|
|
5544
|
-
var version = "5.0.
|
|
5544
|
+
var version = "5.0.6";
|
|
5545
5545
|
|
|
5546
|
-
// ../../src/execa-
|
|
5546
|
+
// ../../src/execa-utilities.ts
|
|
5547
5547
|
function isErrorExecaError(error) {
|
|
5548
5548
|
return error instanceof Error && "exitCode" in error && typeof error.exitCode === "number";
|
|
5549
5549
|
}
|
|
5550
5550
|
|
|
5551
|
-
// ../../src/json-
|
|
5551
|
+
// ../../src/json-utilities.ts
|
|
5552
5552
|
import jsonColorizer from "@pinojs/json-colorizer";
|
|
5553
5553
|
|
|
5554
5554
|
// ../../node_modules/.pnpm/decircular@1.0.0/node_modules/decircular/index.js
|
|
@@ -5573,7 +5573,7 @@ function decircular(object) {
|
|
|
5573
5573
|
return internalDecircular(object);
|
|
5574
5574
|
}
|
|
5575
5575
|
|
|
5576
|
-
// ../../src/json-
|
|
5576
|
+
// ../../src/json-utilities.ts
|
|
5577
5577
|
var import_deepmerge = __toESM(require_cjs(), 1);
|
|
5578
5578
|
|
|
5579
5579
|
// ../../node_modules/.pnpm/json-stringify-pretty-compact@4.0.0/node_modules/json-stringify-pretty-compact/index.js
|
|
@@ -5655,7 +5655,7 @@ ${currentIndent}`
|
|
|
5655
5655
|
}(passedObj, "", 0);
|
|
5656
5656
|
}
|
|
5657
5657
|
|
|
5658
|
-
// ../../src/json-
|
|
5658
|
+
// ../../src/json-utilities.ts
|
|
5659
5659
|
function stringify2(object) {
|
|
5660
5660
|
return jsonColorizer(
|
|
5661
5661
|
stringify(decircular(object), {
|
|
@@ -5692,7 +5692,7 @@ function merge(destination, source, options = { arrayMerge: combineMerge }) {
|
|
|
5692
5692
|
return (0, import_deepmerge.default)(destination, source, options);
|
|
5693
5693
|
}
|
|
5694
5694
|
|
|
5695
|
-
// ../../src/path-
|
|
5695
|
+
// ../../src/path-utilities.ts
|
|
5696
5696
|
import { findWorkspaces, findWorkspacesRoot } from "find-workspaces";
|
|
5697
5697
|
import fse from "fs-extra";
|
|
5698
5698
|
import path2 from "node:path";
|
|
@@ -5726,7 +5726,7 @@ function getCwdOverride(option) {
|
|
|
5726
5726
|
return process.cwd();
|
|
5727
5727
|
}
|
|
5728
5728
|
|
|
5729
|
-
// ../../src/prettier-
|
|
5729
|
+
// ../../src/prettier-utilities.ts
|
|
5730
5730
|
import fs2 from "node:fs/promises";
|
|
5731
5731
|
async function formatTextAndSaveFile(filePath, content) {
|
|
5732
5732
|
try {
|
|
@@ -5749,7 +5749,7 @@ async function formatFileInPlace(filePath) {
|
|
|
5749
5749
|
}
|
|
5750
5750
|
}
|
|
5751
5751
|
|
|
5752
|
-
// ../../src/stream-
|
|
5752
|
+
// ../../src/stream-utilities.ts
|
|
5753
5753
|
import { Transform } from "node:stream";
|
|
5754
5754
|
function createStreamTransform(logPrefix, logColor) {
|
|
5755
5755
|
return new Transform({
|
|
@@ -5777,7 +5777,7 @@ async function streamToString(stream) {
|
|
|
5777
5777
|
});
|
|
5778
5778
|
}
|
|
5779
5779
|
|
|
5780
|
-
// ../../src/string-
|
|
5780
|
+
// ../../src/string-utilities.ts
|
|
5781
5781
|
function pluralize(text, quantity) {
|
|
5782
5782
|
return quantity === 1 ? text : text + "s";
|
|
5783
5783
|
}
|
|
@@ -5840,10 +5840,15 @@ async function executeCliCommand(logStream, positionalArguments, optionFlags, co
|
|
|
5840
5840
|
try {
|
|
5841
5841
|
const subprocess = execa(command2.name, resolvedArguments, {
|
|
5842
5842
|
cwd,
|
|
5843
|
-
env:
|
|
5843
|
+
env: {
|
|
5844
|
+
// Use colorful output unless NO_COLOR is set
|
|
5844
5845
|
// eslint-disable-next-line ts/naming-convention
|
|
5845
|
-
FORCE_COLOR: "true"
|
|
5846
|
-
|
|
5846
|
+
...process.env.NO_COLOR === void 0 ? { FORCE_COLOR: "true" } : {},
|
|
5847
|
+
// Quiet node for when processing *.config.ts files in Node 22
|
|
5848
|
+
// Suppress experimental type stripping warning with --no-warnings
|
|
5849
|
+
// eslint-disable-next-line ts/naming-convention
|
|
5850
|
+
NODE_OPTIONS: "--experimental-strip-types --disable-warning=ExperimentalWarning"
|
|
5851
|
+
},
|
|
5847
5852
|
preferLocal: true,
|
|
5848
5853
|
reject: false,
|
|
5849
5854
|
// Prevents throwing on non-zero exit code
|