@zthun/janitor-lint 19.0.0 → 19.1.1
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/dist/cli.cjs +4 -6
- package/dist/cli.cjs.map +1 -1
- package/dist/cli.js +3 -4
- package/dist/cli.js.map +1 -1
- package/dist/config/config-discovery.d.mts +1 -1
- package/dist/config/config-reader-cosmic.d.mts +2 -2
- package/dist/config/config-reader-prettier.d.mts +1 -1
- package/dist/config/config-reader.d.mts +1 -1
- package/dist/content/content-linter.d.mts +1 -1
- package/dist/index.cjs +18 -36
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +34 -33
- package/dist/index.js.map +1 -1
- package/dist/janitor-lint-DDCzTq1u.js +809 -0
- package/dist/janitor-lint-DDCzTq1u.js.map +1 -0
- package/dist/janitor-lint-mpfQFQY6.cjs +809 -0
- package/dist/janitor-lint-mpfQFQY6.cjs.map +1 -0
- package/dist/linter/linter-es.d.mts +1 -1
- package/dist/linter/linter-file.d.mts +1 -1
- package/dist/linter/linter-style.d.mts +1 -1
- package/package.json +6 -6
- package/dist/janitor-lint-CA0qEXKV.cjs +0 -1370
- package/dist/janitor-lint-CA0qEXKV.cjs.map +0 -1
- package/dist/janitor-lint-QMZ00oXe.js +0 -1353
- package/dist/janitor-lint-QMZ00oXe.js.map +0 -1
package/dist/cli.cjs
CHANGED
|
@@ -1,10 +1,8 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
const
|
|
5
|
-
const janitorLint = require('./janitor-lint-CA0qEXKV.cjs');
|
|
6
|
-
|
|
2
|
+
"use strict";
|
|
3
|
+
const usage = require("yargs");
|
|
4
|
+
const janitorLint = require("./janitor-lint-mpfQFQY6.cjs");
|
|
7
5
|
const args = usage("$0 [options]").alias("c", "config").describe("c", "Optional config file to use.").string("c").help().parse();
|
|
8
6
|
const janitor = new janitorLint.ZJanitorLint(console);
|
|
9
|
-
janitor.run(args).then((result)=>process.exitCode = result);
|
|
7
|
+
janitor.run(args).then((result) => process.exitCode = result);
|
|
10
8
|
//# sourceMappingURL=cli.cjs.map
|
package/dist/cli.cjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"cli.cjs","sources":["../src/cli.ts"],"sourcesContent":["#!/usr/bin/env node\n\nimport usage from \"yargs\";\nimport { IZJanitorLintArgs } from \"./app/janitor-lint-args.mjs\";\nimport { ZJanitorLint } from \"./app/janitor-lint.mjs\";\n\nconst args: IZJanitorLintArgs = usage(\"$0 [options]\")\n .alias(\"c\", \"config\")\n .describe(\"c\", \"Optional config file to use.\")\n .string(\"c\")\n .help()\n .parse() as any;\nconst janitor = new ZJanitorLint(console);\njanitor.run(args).then((result) => (process.exitCode = result));\n"],"names":["
|
|
1
|
+
{"version":3,"file":"cli.cjs","sources":["../src/cli.ts"],"sourcesContent":["#!/usr/bin/env node\n\nimport usage from \"yargs\";\nimport type { IZJanitorLintArgs } from \"./app/janitor-lint-args.mjs\";\nimport { ZJanitorLint } from \"./app/janitor-lint.mjs\";\n\nconst args: IZJanitorLintArgs = usage(\"$0 [options]\")\n .alias(\"c\", \"config\")\n .describe(\"c\", \"Optional config file to use.\")\n .string(\"c\")\n .help()\n .parse() as any;\nconst janitor = new ZJanitorLint(console);\njanitor.run(args).then((result) => (process.exitCode = result));\n"],"names":["ZJanitorLint"],"mappings":";;;;AAMA,MAAM,OAA0B,MAAM,cAAc,EACjD,MAAM,KAAK,QAAQ,EACnB,SAAS,KAAK,8BAA8B,EAC5C,OAAO,GAAG,EACV,OACA,MAAM;AACT,MAAM,UAAU,IAAIA,YAAA,aAAa,OAAO;AACxC,QAAQ,IAAI,IAAI,EAAE,KAAK,CAAC,WAAY,QAAQ,WAAW,MAAO;"}
|
package/dist/cli.js
CHANGED
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import usage from
|
|
3
|
-
import { Z as ZJanitorLint } from
|
|
4
|
-
|
|
2
|
+
import usage from "yargs";
|
|
3
|
+
import { Z as ZJanitorLint } from "./janitor-lint-DDCzTq1u.js";
|
|
5
4
|
const args = usage("$0 [options]").alias("c", "config").describe("c", "Optional config file to use.").string("c").help().parse();
|
|
6
5
|
const janitor = new ZJanitorLint(console);
|
|
7
|
-
janitor.run(args).then((result)=>process.exitCode = result);
|
|
6
|
+
janitor.run(args).then((result) => process.exitCode = result);
|
|
8
7
|
//# sourceMappingURL=cli.js.map
|
package/dist/cli.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"cli.js","sources":["../src/cli.ts"],"sourcesContent":["#!/usr/bin/env node\n\nimport usage from \"yargs\";\nimport { IZJanitorLintArgs } from \"./app/janitor-lint-args.mjs\";\nimport { ZJanitorLint } from \"./app/janitor-lint.mjs\";\n\nconst args: IZJanitorLintArgs = usage(\"$0 [options]\")\n .alias(\"c\", \"config\")\n .describe(\"c\", \"Optional config file to use.\")\n .string(\"c\")\n .help()\n .parse() as any;\nconst janitor = new ZJanitorLint(console);\njanitor.run(args).then((result) => (process.exitCode = result));\n"],"names":[
|
|
1
|
+
{"version":3,"file":"cli.js","sources":["../src/cli.ts"],"sourcesContent":["#!/usr/bin/env node\n\nimport usage from \"yargs\";\nimport type { IZJanitorLintArgs } from \"./app/janitor-lint-args.mjs\";\nimport { ZJanitorLint } from \"./app/janitor-lint.mjs\";\n\nconst args: IZJanitorLintArgs = usage(\"$0 [options]\")\n .alias(\"c\", \"config\")\n .describe(\"c\", \"Optional config file to use.\")\n .string(\"c\")\n .help()\n .parse() as any;\nconst janitor = new ZJanitorLint(console);\njanitor.run(args).then((result) => (process.exitCode = result));\n"],"names":[],"mappings":";;;AAMA,MAAM,OAA0B,MAAM,cAAc,EACjD,MAAM,KAAK,QAAQ,EACnB,SAAS,KAAK,8BAA8B,EAC5C,OAAO,GAAG,EACV,OACA,MAAM;AACT,MAAM,UAAU,IAAI,aAAa,OAAO;AACxC,QAAQ,IAAI,IAAI,EAAE,KAAK,CAAC,WAAY,QAAQ,WAAW,MAAO;"}
|
|
@@ -30,7 +30,7 @@ export declare class ZConfigReaderCosmic implements IZConfigReader, IZConfigDisc
|
|
|
30
30
|
* @returns
|
|
31
31
|
* A promise that resolves with the expanded configuration.
|
|
32
32
|
*/
|
|
33
|
-
search(): Promise<
|
|
33
|
+
search(): Promise<string | null>;
|
|
34
34
|
/**
|
|
35
35
|
* Reads the config file.
|
|
36
36
|
*
|
|
@@ -40,5 +40,5 @@ export declare class ZConfigReaderCosmic implements IZConfigReader, IZConfigDisc
|
|
|
40
40
|
* @returns
|
|
41
41
|
* A promise that resolves the json object that represents the config.
|
|
42
42
|
*/
|
|
43
|
-
read(config
|
|
43
|
+
read(config?: string): Promise<any>;
|
|
44
44
|
}
|
|
@@ -17,5 +17,5 @@ export interface IZContentLinter {
|
|
|
17
17
|
* @returns
|
|
18
18
|
* A resolved promise if the lint is successful, a rejected promise if not.
|
|
19
19
|
*/
|
|
20
|
-
lint(content: string, contentPath: string, options
|
|
20
|
+
lint(content: string, contentPath: string, options?: any, optionsPath?: string): Promise<any>;
|
|
21
21
|
}
|
package/dist/index.cjs
CHANGED
|
@@ -1,44 +1,26 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
function _define_property(obj, key, value) {
|
|
8
|
-
if (key in obj) {
|
|
9
|
-
Object.defineProperty(obj, key, {
|
|
10
|
-
value: value,
|
|
11
|
-
enumerable: true,
|
|
12
|
-
configurable: true,
|
|
13
|
-
writable: true
|
|
14
|
-
});
|
|
15
|
-
} else {
|
|
16
|
-
obj[key] = value;
|
|
17
|
-
}
|
|
18
|
-
return obj;
|
|
19
|
-
}
|
|
20
|
-
/**
|
|
21
|
-
* Represents a silent linter that always succeeds.
|
|
22
|
-
*/ class ZLinterSilent {
|
|
23
|
-
/**
|
|
24
|
-
* Returns a promise that resolves the resolved value.
|
|
25
|
-
*
|
|
26
|
-
* @returns
|
|
27
|
-
* A promise that resolves the resolved value.
|
|
28
|
-
*/ lint() {
|
|
29
|
-
return Promise.resolve(this._resolve);
|
|
30
|
-
}
|
|
31
|
-
/**
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
+
const janitorLint = require("./janitor-lint-mpfQFQY6.cjs");
|
|
4
|
+
class ZLinterSilent {
|
|
5
|
+
/**
|
|
32
6
|
* Initializes a new instance of this object.
|
|
33
7
|
*
|
|
34
8
|
* @param _resolve -
|
|
35
9
|
* The value to resolve.
|
|
36
|
-
*/
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
10
|
+
*/
|
|
11
|
+
constructor(_resolve = true) {
|
|
12
|
+
this._resolve = _resolve;
|
|
13
|
+
}
|
|
14
|
+
/**
|
|
15
|
+
* Returns a promise that resolves the resolved value.
|
|
16
|
+
*
|
|
17
|
+
* @returns
|
|
18
|
+
* A promise that resolves the resolved value.
|
|
19
|
+
*/
|
|
20
|
+
lint() {
|
|
21
|
+
return Promise.resolve(this._resolve);
|
|
22
|
+
}
|
|
40
23
|
}
|
|
41
|
-
|
|
42
24
|
exports.ZConfigExtender = janitorLint.ZConfigExtender;
|
|
43
25
|
exports.ZConfigReaderCosmic = janitorLint.ZConfigReaderCosmic;
|
|
44
26
|
exports.ZConfigReaderNull = janitorLint.ZConfigReaderNull;
|
package/dist/index.cjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.cjs","sources":["../src/linter/linter-silent.mts"],"sourcesContent":["import { IZLinter } from \"./linter.mjs\";\n\n/**\n * Represents a silent linter that always succeeds.\n */\nexport class ZLinterSilent implements IZLinter {\n /**\n * Initializes a new instance of this object.\n *\n * @param _resolve -\n * The value to resolve.\n */\n public constructor(private _resolve = true) {}\n\n /**\n * Returns a promise that resolves the resolved value.\n *\n * @returns\n * A promise that resolves the resolved value.\n */\n public lint(): Promise<boolean> {\n return Promise.resolve(this._resolve);\n }\n}\n"],"names":[
|
|
1
|
+
{"version":3,"file":"index.cjs","sources":["../src/linter/linter-silent.mts"],"sourcesContent":["import type { IZLinter } from \"./linter.mjs\";\n\n/**\n * Represents a silent linter that always succeeds.\n */\nexport class ZLinterSilent implements IZLinter {\n /**\n * Initializes a new instance of this object.\n *\n * @param _resolve -\n * The value to resolve.\n */\n public constructor(private _resolve = true) {}\n\n /**\n * Returns a promise that resolves the resolved value.\n *\n * @returns\n * A promise that resolves the resolved value.\n */\n public lint(): Promise<boolean> {\n return Promise.resolve(this._resolve);\n }\n}\n"],"names":[],"mappings":";;;AAKO,MAAM,cAAkC;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAOtC,YAAoB,WAAW,MAAM;AAAjB,SAAA,WAAA;AAAA,EAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAQpB,OAAyB;AACvB,WAAA,QAAQ,QAAQ,KAAK,QAAQ;AAAA,EAAA;AAExC;;;;;;;;;;;;;;;;;"}
|
package/dist/index.js
CHANGED
|
@@ -1,39 +1,40 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
if (key in obj) {
|
|
5
|
-
Object.defineProperty(obj, key, {
|
|
6
|
-
value: value,
|
|
7
|
-
enumerable: true,
|
|
8
|
-
configurable: true,
|
|
9
|
-
writable: true
|
|
10
|
-
});
|
|
11
|
-
} else {
|
|
12
|
-
obj[key] = value;
|
|
13
|
-
}
|
|
14
|
-
return obj;
|
|
15
|
-
}
|
|
16
|
-
/**
|
|
17
|
-
* Represents a silent linter that always succeeds.
|
|
18
|
-
*/ class ZLinterSilent {
|
|
19
|
-
/**
|
|
20
|
-
* Returns a promise that resolves the resolved value.
|
|
21
|
-
*
|
|
22
|
-
* @returns
|
|
23
|
-
* A promise that resolves the resolved value.
|
|
24
|
-
*/ lint() {
|
|
25
|
-
return Promise.resolve(this._resolve);
|
|
26
|
-
}
|
|
27
|
-
/**
|
|
1
|
+
import { a, b, c, d, e, f, g, h, Z, i, j, k, l, m, n } from "./janitor-lint-DDCzTq1u.js";
|
|
2
|
+
class ZLinterSilent {
|
|
3
|
+
/**
|
|
28
4
|
* Initializes a new instance of this object.
|
|
29
5
|
*
|
|
30
6
|
* @param _resolve -
|
|
31
7
|
* The value to resolve.
|
|
32
|
-
*/
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
8
|
+
*/
|
|
9
|
+
constructor(_resolve = true) {
|
|
10
|
+
this._resolve = _resolve;
|
|
11
|
+
}
|
|
12
|
+
/**
|
|
13
|
+
* Returns a promise that resolves the resolved value.
|
|
14
|
+
*
|
|
15
|
+
* @returns
|
|
16
|
+
* A promise that resolves the resolved value.
|
|
17
|
+
*/
|
|
18
|
+
lint() {
|
|
19
|
+
return Promise.resolve(this._resolve);
|
|
20
|
+
}
|
|
36
21
|
}
|
|
37
|
-
|
|
38
|
-
|
|
22
|
+
export {
|
|
23
|
+
a as ZConfigExtender,
|
|
24
|
+
b as ZConfigReaderCosmic,
|
|
25
|
+
c as ZConfigReaderNull,
|
|
26
|
+
d as ZConfigReaderPrettier,
|
|
27
|
+
e as ZContentLinterHtml,
|
|
28
|
+
f as ZContentLinterJson,
|
|
29
|
+
g as ZContentLinterPretty,
|
|
30
|
+
h as ZContentLinterYaml,
|
|
31
|
+
Z as ZJanitorLint,
|
|
32
|
+
i as ZLinterEs,
|
|
33
|
+
j as ZLinterFile,
|
|
34
|
+
k as ZLinterMarkdown,
|
|
35
|
+
l as ZLinterReport,
|
|
36
|
+
ZLinterSilent,
|
|
37
|
+
m as ZLinterSpelling,
|
|
38
|
+
n as ZLinterStyle
|
|
39
|
+
};
|
|
39
40
|
//# sourceMappingURL=index.js.map
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":["../src/linter/linter-silent.mts"],"sourcesContent":["import { IZLinter } from \"./linter.mjs\";\n\n/**\n * Represents a silent linter that always succeeds.\n */\nexport class ZLinterSilent implements IZLinter {\n /**\n * Initializes a new instance of this object.\n *\n * @param _resolve -\n * The value to resolve.\n */\n public constructor(private _resolve = true) {}\n\n /**\n * Returns a promise that resolves the resolved value.\n *\n * @returns\n * A promise that resolves the resolved value.\n */\n public lint(): Promise<boolean> {\n return Promise.resolve(this._resolve);\n }\n}\n"],"names":[
|
|
1
|
+
{"version":3,"file":"index.js","sources":["../src/linter/linter-silent.mts"],"sourcesContent":["import type { IZLinter } from \"./linter.mjs\";\n\n/**\n * Represents a silent linter that always succeeds.\n */\nexport class ZLinterSilent implements IZLinter {\n /**\n * Initializes a new instance of this object.\n *\n * @param _resolve -\n * The value to resolve.\n */\n public constructor(private _resolve = true) {}\n\n /**\n * Returns a promise that resolves the resolved value.\n *\n * @returns\n * A promise that resolves the resolved value.\n */\n public lint(): Promise<boolean> {\n return Promise.resolve(this._resolve);\n }\n}\n"],"names":[],"mappings":";AAKO,MAAM,cAAkC;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAOtC,YAAoB,WAAW,MAAM;AAAjB,SAAA,WAAA;AAAA,EAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAQpB,OAAyB;AACvB,WAAA,QAAQ,QAAQ,KAAK,QAAQ;AAAA,EAAA;AAExC;"}
|