@jsse/eslint-config 0.2.29 → 0.2.31
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/CHANGELOG.md +12 -0
- package/dist/cli.cjs +8 -8
- package/dist/cli.js +8 -8
- package/dist/esm/cli.js +3 -3
- package/dist/esm/configs/ts/requires-type-checking.js +1 -0
- package/dist/esm/fixable.js +1 -1
- package/dist/esm/generated/version.d.ts +1 -1
- package/dist/esm/generated/version.js +1 -1
- package/dist/esm/plugins.d.ts +107 -269
- package/dist/esm/plugins.js +1 -4
- package/dist/index.cjs +55 -32
- package/dist/index.d.cts +1087 -632
- package/dist/index.d.ts +1087 -632
- package/dist/index.js +60 -37
- package/package.json +35 -35
package/CHANGELOG.md
CHANGED
package/dist/cli.cjs
CHANGED
|
@@ -280,8 +280,8 @@ var Command = class {
|
|
|
280
280
|
this.config.ignoreOptionDefaultValue = true;
|
|
281
281
|
return this;
|
|
282
282
|
}
|
|
283
|
-
version(
|
|
284
|
-
this.versionNumber =
|
|
283
|
+
version(version, customFlags = "-v, --version") {
|
|
284
|
+
this.versionNumber = version;
|
|
285
285
|
this.option(customFlags, "Display version number");
|
|
286
286
|
return this;
|
|
287
287
|
}
|
|
@@ -453,8 +453,8 @@ var CAC = class extends import_events.EventEmitter {
|
|
|
453
453
|
this.showHelpOnExit = true;
|
|
454
454
|
return this;
|
|
455
455
|
}
|
|
456
|
-
version(
|
|
457
|
-
this.globalCommand.version(
|
|
456
|
+
version(version, customFlags = "-v, --version") {
|
|
457
|
+
this.globalCommand.version(version, customFlags);
|
|
458
458
|
this.showVersionOnExit = true;
|
|
459
459
|
return this;
|
|
460
460
|
}
|
|
@@ -611,8 +611,8 @@ var CAC = class extends import_events.EventEmitter {
|
|
|
611
611
|
};
|
|
612
612
|
var cac = (name = "") => new CAC(name);
|
|
613
613
|
|
|
614
|
-
//
|
|
615
|
-
var
|
|
614
|
+
// src/generated/version.ts
|
|
615
|
+
var VERSION = "0.2.31";
|
|
616
616
|
|
|
617
617
|
// src/cli.ts
|
|
618
618
|
var cli = cac("jsselint");
|
|
@@ -696,9 +696,9 @@ cli.command("init", "create eslint config file").option("--force", "force create
|
|
|
696
696
|
console.log(`made eslint.config.js (type: ${packageJson.type})`);
|
|
697
697
|
});
|
|
698
698
|
cli.command("version", "echo version").action(() => {
|
|
699
|
-
console.log(
|
|
699
|
+
console.log(VERSION);
|
|
700
700
|
});
|
|
701
|
-
cli.version(typeof
|
|
701
|
+
cli.version(typeof VERSION === "string" ? VERSION : "unknown");
|
|
702
702
|
cli.help();
|
|
703
703
|
async function main(args) {
|
|
704
704
|
const argv = args ?? import_node_process.default.argv.slice(2);
|
package/dist/cli.js
CHANGED
|
@@ -256,8 +256,8 @@ var Command = class {
|
|
|
256
256
|
this.config.ignoreOptionDefaultValue = true;
|
|
257
257
|
return this;
|
|
258
258
|
}
|
|
259
|
-
version(
|
|
260
|
-
this.versionNumber =
|
|
259
|
+
version(version, customFlags = "-v, --version") {
|
|
260
|
+
this.versionNumber = version;
|
|
261
261
|
this.option(customFlags, "Display version number");
|
|
262
262
|
return this;
|
|
263
263
|
}
|
|
@@ -429,8 +429,8 @@ var CAC = class extends EventEmitter {
|
|
|
429
429
|
this.showHelpOnExit = true;
|
|
430
430
|
return this;
|
|
431
431
|
}
|
|
432
|
-
version(
|
|
433
|
-
this.globalCommand.version(
|
|
432
|
+
version(version, customFlags = "-v, --version") {
|
|
433
|
+
this.globalCommand.version(version, customFlags);
|
|
434
434
|
this.showVersionOnExit = true;
|
|
435
435
|
return this;
|
|
436
436
|
}
|
|
@@ -587,8 +587,8 @@ var CAC = class extends EventEmitter {
|
|
|
587
587
|
};
|
|
588
588
|
var cac = (name = "") => new CAC(name);
|
|
589
589
|
|
|
590
|
-
//
|
|
591
|
-
var
|
|
590
|
+
// src/generated/version.ts
|
|
591
|
+
var VERSION = "0.2.31";
|
|
592
592
|
|
|
593
593
|
// src/cli.ts
|
|
594
594
|
var cli = cac("jsselint");
|
|
@@ -672,9 +672,9 @@ cli.command("init", "create eslint config file").option("--force", "force create
|
|
|
672
672
|
console.log(`made eslint.config.js (type: ${packageJson.type})`);
|
|
673
673
|
});
|
|
674
674
|
cli.command("version", "echo version").action(() => {
|
|
675
|
-
console.log(
|
|
675
|
+
console.log(VERSION);
|
|
676
676
|
});
|
|
677
|
-
cli.version(typeof
|
|
677
|
+
cli.version(typeof VERSION === "string" ? VERSION : "unknown");
|
|
678
678
|
cli.help();
|
|
679
679
|
async function main(args) {
|
|
680
680
|
const argv = args ?? process2.argv.slice(2);
|
package/dist/esm/cli.js
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import fs from "node:fs";
|
|
3
3
|
import process from "node:process";
|
|
4
4
|
import { cac } from "cac";
|
|
5
|
-
import {
|
|
5
|
+
import { VERSION } from "./generated/version.js";
|
|
6
6
|
const cli = cac("jsselint");
|
|
7
7
|
const CONFIG_OPTIONS_STRING = `
|
|
8
8
|
{
|
|
@@ -92,9 +92,9 @@ cli
|
|
|
92
92
|
console.log(`made eslint.config.js (type: ${packageJson.type})`);
|
|
93
93
|
});
|
|
94
94
|
cli.command("version", "echo version").action(() => {
|
|
95
|
-
console.log(
|
|
95
|
+
console.log(VERSION);
|
|
96
96
|
});
|
|
97
|
-
cli.version(typeof
|
|
97
|
+
cli.version(typeof VERSION === "string" ? VERSION : "unknown");
|
|
98
98
|
cli.help();
|
|
99
99
|
async function main(args) {
|
|
100
100
|
const argv = args ?? process.argv.slice(2);
|
|
@@ -14,6 +14,7 @@ export const requiresTypeChecking = [
|
|
|
14
14
|
"@typescript-eslint/no-implied-eval",
|
|
15
15
|
"@typescript-eslint/no-meaningless-void-operator",
|
|
16
16
|
"@typescript-eslint/no-misused-promises",
|
|
17
|
+
"@typescript-eslint/no-misused-spread",
|
|
17
18
|
"@typescript-eslint/no-mixed-enums",
|
|
18
19
|
"@typescript-eslint/no-redundant-type-constituents",
|
|
19
20
|
"@typescript-eslint/no-unnecessary-boolean-literal-compare",
|
package/dist/esm/fixable.js
CHANGED
|
@@ -259,7 +259,6 @@ export const fixableRules = {
|
|
|
259
259
|
"@typescript-eslint/promise-function-async",
|
|
260
260
|
"@typescript-eslint/return-await",
|
|
261
261
|
"@typescript-eslint/sort-type-constituents",
|
|
262
|
-
"@typescript-eslint/strict-boolean-expressions",
|
|
263
262
|
"@typescript-eslint/use-unknown-in-catch-callback-variable",
|
|
264
263
|
],
|
|
265
264
|
unicorn: [
|
|
@@ -384,6 +383,7 @@ export const fixableRules = {
|
|
|
384
383
|
"vitest/prefer-to-have-length",
|
|
385
384
|
"vitest/prefer-todo",
|
|
386
385
|
"vitest/prefer-vi-mocked",
|
|
386
|
+
"vitest/valid-expect",
|
|
387
387
|
"vitest/valid-title",
|
|
388
388
|
],
|
|
389
389
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const VERSION = "0.2.
|
|
1
|
+
export declare const VERSION = "0.2.31";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export const VERSION = "0.2.
|
|
1
|
+
export const VERSION = "0.2.31";
|