@jsse/eslint-config 0.1.0 → 0.1.3
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 +1 -1
- package/dist/cli.cjs +8 -3
- package/dist/cli.js +8 -3
- package/dist/index.cjs +940 -826
- package/dist/index.d.cts +68 -43
- package/dist/index.d.ts +68 -43
- package/dist/index.js +931 -820
- package/package.json +47 -39
package/README.md
CHANGED
package/dist/cli.cjs
CHANGED
|
@@ -24,6 +24,7 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
|
|
|
24
24
|
|
|
25
25
|
// src/cli.ts
|
|
26
26
|
var import_node_fs = __toESM(require("fs"), 1);
|
|
27
|
+
var import_node_process = __toESM(require("process"), 1);
|
|
27
28
|
|
|
28
29
|
// node_modules/.pnpm/cac@6.7.14/node_modules/cac/dist/index.mjs
|
|
29
30
|
var import_events = require("events");
|
|
@@ -616,7 +617,7 @@ var CAC = class extends import_events.EventEmitter {
|
|
|
616
617
|
var cac = (name = "") => new CAC(name);
|
|
617
618
|
|
|
618
619
|
// package.json
|
|
619
|
-
var version = "0.1.
|
|
620
|
+
var version = "0.1.3";
|
|
620
621
|
|
|
621
622
|
// src/cli.ts
|
|
622
623
|
var cli = cac("jsselint");
|
|
@@ -671,6 +672,10 @@ cli.command("init", "create eslint config file").option("--force", "force create
|
|
|
671
672
|
import_node_fs.default.writeFileSync(configPath, eslintConfigString.join("\n"));
|
|
672
673
|
console.log(`made eslint.config.js (type: ${packageJson.type})`);
|
|
673
674
|
});
|
|
674
|
-
cli.help();
|
|
675
675
|
cli.version(typeof version === "string" ? version : "unknown");
|
|
676
|
-
cli.
|
|
676
|
+
cli.help();
|
|
677
|
+
var r = cli.parse();
|
|
678
|
+
if (JSON.stringify(r) === JSON.stringify({ args: [], options: { "--": [] } })) {
|
|
679
|
+
cli.outputHelp();
|
|
680
|
+
import_node_process.default.exit(1);
|
|
681
|
+
}
|
package/dist/cli.js
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
// src/cli.ts
|
|
2
2
|
import fs from "fs";
|
|
3
|
+
import process2 from "process";
|
|
3
4
|
|
|
4
5
|
// node_modules/.pnpm/cac@6.7.14/node_modules/cac/dist/index.mjs
|
|
5
6
|
import { EventEmitter } from "events";
|
|
@@ -592,7 +593,7 @@ var CAC = class extends EventEmitter {
|
|
|
592
593
|
var cac = (name = "") => new CAC(name);
|
|
593
594
|
|
|
594
595
|
// package.json
|
|
595
|
-
var version = "0.1.
|
|
596
|
+
var version = "0.1.3";
|
|
596
597
|
|
|
597
598
|
// src/cli.ts
|
|
598
599
|
var cli = cac("jsselint");
|
|
@@ -647,6 +648,10 @@ cli.command("init", "create eslint config file").option("--force", "force create
|
|
|
647
648
|
fs.writeFileSync(configPath, eslintConfigString.join("\n"));
|
|
648
649
|
console.log(`made eslint.config.js (type: ${packageJson.type})`);
|
|
649
650
|
});
|
|
650
|
-
cli.help();
|
|
651
651
|
cli.version(typeof version === "string" ? version : "unknown");
|
|
652
|
-
cli.
|
|
652
|
+
cli.help();
|
|
653
|
+
var r = cli.parse();
|
|
654
|
+
if (JSON.stringify(r) === JSON.stringify({ args: [], options: { "--": [] } })) {
|
|
655
|
+
cli.outputHelp();
|
|
656
|
+
process2.exit(1);
|
|
657
|
+
}
|