@eslinted/core 5.0.0-rc.2 → 5.0.0-rc.4
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/factory/options/index.d.ts +0 -2
- package/dist/factory/options/index.d.ts.map +1 -1
- package/dist/factory/options/index.js +0 -2
- package/dist/factory/options/index.js.map +1 -1
- package/dist/factory/options/option/index.d.ts +2 -2
- package/dist/factory/options/option/index.d.ts.map +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +0 -2
- package/dist/index.js.map +1 -1
- package/dist/input/imports/parsers.d.ts +1 -1
- package/dist/input/imports/parsers.d.ts.map +1 -1
- package/dist/input/imports/plugins.d.ts +1 -1
- package/dist/input/imports/plugins.d.ts.map +1 -1
- package/dist/output.d.ts +1 -1
- package/dist/output.d.ts.map +1 -1
- package/dist/scopes.d.ts +1 -1
- package/dist/scopes.d.ts.map +1 -1
- package/dist/scopes.js +0 -1
- package/dist/scopes.js.map +1 -1
- package/package.json +1 -1
- package/src/factory/options/index.ts +0 -2
- package/src/factory/options/option/index.ts +1 -1
- package/src/index.ts +0 -7
- package/src/input/imports/parsers.ts +0 -1
- package/src/input/imports/plugins.ts +0 -1
- package/src/output.ts +1 -1
- package/src/scopes.ts +0 -1
- package/typings/{typioca → common}/utility/interface/build/properties/property/index.d.ts +1 -1
- package/typings/common/utility/iterable/build/arrays/array/index.d.ts +11 -0
- package/typings/common/utility/iterable/build/arrays/index.d.ts +2 -0
- package/typings/common/utility/iterable/build/tuples/index.d.ts +10 -0
- package/typings/common/utility/iterable/build/tuples/tuple/index.d.ts +26 -0
- package/typings/{typioca → common}/utility/iterable/identity/array/length/index.d.ts +2 -2
- package/typings/{typioca → common}/utility/iterable/identity/monad.d.ts +5 -5
- package/typings/common/utility/iterable/transform/string/stringify/index.d.ts +27 -0
- package/typings/common/utility/nullable/index.spec.d.ts +13 -0
- package/typings/common/utility/nullable/null/index.spec.d.ts +13 -0
- package/typings/common/utility/test.d.ts +2 -0
- package/typings/common/valid/index.d.ts +7 -0
- package/typings/common/valid/string/index.d.ts +1 -0
- package/dist/factory/options/md.d.ts +0 -9
- package/dist/factory/options/md.d.ts.map +0 -1
- package/dist/factory/options/md.js +0 -10
- package/dist/factory/options/md.js.map +0 -1
- package/src/factory/options/md.ts +0 -18
- package/typings/typioca/utility/iterable/build/arrays/array/index.d.ts +0 -12
- package/typings/typioca/utility/iterable/build/arrays/index.d.ts +0 -1
- package/typings/typioca/utility/iterable/build/tuples/index.d.ts +0 -9
- package/typings/typioca/utility/iterable/build/tuples/tuple/index.d.ts +0 -27
- package/typings/typioca/utility/iterable/transform/string/stringify/index.d.ts +0 -13
- /package/typings/{typioca → common}/literals/number/bases/base32.d.ts +0 -0
- /package/typings/{typioca → common}/literals/number/bases/base64.d.ts +0 -0
- /package/typings/{typioca → common}/literals/number/bases/binary.d.ts +0 -0
- /package/typings/{typioca → common}/literals/number/bases/decimal.d.ts +0 -0
- /package/typings/{typioca → common}/literals/number/bases/hex.d.ts +0 -0
- /package/typings/{typioca → common}/literals/number/bases/octal.d.ts +0 -0
- /package/typings/{typioca → common}/literals/number/bases/quatral.d.ts +0 -0
- /package/typings/{typioca → common}/literals/number/bases/ternary.d.ts +0 -0
- /package/typings/{typioca → common}/literals/string/letter/digit/extended/base64/index.d.ts +0 -0
- /package/typings/{typioca → common}/literals/string/letter/digit/extended/hex/index.d.ts +0 -0
- /package/typings/{typioca → common}/literals/string/letter/digit/index.d.ts +0 -0
- /package/typings/{typioca → common}/literals/string/letter/index.d.ts +0 -0
- /package/typings/{typioca → common}/primitive/index.d.ts +0 -0
- /package/typings/{typioca → common}/safe/index.d.ts +0 -0
- /package/typings/{typioca → common}/safe/numbers/finite/index.d.ts +0 -0
- /package/typings/{typioca → common}/safe/numbers/fint.d.ts +0 -0
- /package/typings/{typioca → common}/safe/numbers/integer/index.d.ts +0 -0
- /package/typings/{typioca → common}/safe/numbers/integer/numberful/index.d.ts +0 -0
- /package/typings/{typioca/safe/numbers/polarity/Negative.d.ts → common/safe/numbers/polarity/negative.d.ts} +0 -0
- /package/typings/{typioca → common}/safe/numbers/polarity/pole/index.d.ts +0 -0
- /package/typings/{typioca/safe/numbers/polarity/Positive.d.ts → common/safe/numbers/polarity/positive.d.ts} +0 -0
- /package/typings/{typioca → common}/safe/strings/char.d.ts +0 -0
- /package/typings/{typioca → common}/safe/strings/stringful/index.d.ts +0 -0
- /package/typings/{typioca → common}/safe/strings/stringful/length/index.d.ts +0 -0
- /package/typings/{typioca → common}/utility/interface/build/particord/index.d.ts +0 -0
- /package/typings/{typioca → common}/utility/interface/build/properties/Field.d.ts +0 -0
- /package/typings/{typioca → common}/utility/interface/build/properties/Flag.d.ts +0 -0
- /package/typings/{typioca → common}/utility/interface/build/properties/Limit.d.ts +0 -0
- /package/typings/{typioca → common}/utility/interface/build/properties/List.d.ts +0 -0
- /package/typings/{typioca → common}/utility/interface/build/properties/Listish.d.ts +0 -0
- /package/typings/{typioca → common}/utility/interface/build/properties/Scalar.d.ts +0 -0
- /package/typings/{typioca → common}/utility/interface/build/recordful/index.d.ts +0 -0
- /package/typings/{typioca → common}/utility/interface/build/tables/FieldTable.d.ts +0 -0
- /package/typings/{typioca → common}/utility/interface/build/tables/FlagTable.d.ts +0 -0
- /package/typings/{typioca → common}/utility/interface/build/tables/ListTable.d.ts +0 -0
- /package/typings/{typioca → common}/utility/interface/build/tables/ListishTable.d.ts +0 -0
- /package/typings/{typioca → common}/utility/interface/build/tables/ScalarTable.d.ts +0 -0
- /package/typings/{typioca → common}/utility/interface/build/tables/table/index.d.ts +0 -0
- /package/typings/{typioca → common}/utility/interface/identity/interface/index.d.ts +0 -0
- /package/typings/{typioca → common}/utility/interface/identity/keys/index.d.ts +0 -0
- /package/typings/{typioca → common}/utility/interface/transform/partial/unrequire/index.d.ts +0 -0
- /package/typings/{typioca → common}/utility/iterable/identity/array/index.d.ts +0 -0
- /package/typings/{typioca → common}/utility/iterable/identity/dyad.d.ts +0 -0
- /package/typings/{typioca → common}/utility/iterable/identity/triad.d.ts +0 -0
- /package/typings/{typioca → common}/utility/iterable/transform/flat/index.d.ts +0 -0
- /package/typings/{typioca → common}/utility/iterable/transform/flat/unflat/index.d.ts +0 -0
- /package/typings/{typioca → common}/utility/iterable/transform/string/index.d.ts +0 -0
- /package/typings/{typioca → common}/utility/nullable/index.d.ts +0 -0
- /package/typings/{typioca → common}/utility/nullable/null/index.d.ts +0 -0
- /package/typings/{typioca → common}/utility/object/build/index.d.ts +0 -0
- /package/typings/{typioca → common}/utility/primitive/boolean/true/index.d.ts +0 -0
- /package/typings/{typioca → common}/utility/primitive/index.d.ts +0 -0
- /package/typings/{typioca → common}/utility/primitive/number/length/index.d.ts +0 -0
- /package/typings/{typioca → common}/utility/primitive/number/length/numbered/index.d.ts +0 -0
- /package/typings/{typioca → common}/utility/primitive/string/fake/index.d.ts +0 -0
- /package/typings/{typioca → common}/utility/primitive/string/literalful/index.d.ts +0 -0
- /package/typings/{typioca → common}/utility/primitive/string/literalful/literal/index.d.ts +0 -0
@@ -7,7 +7,6 @@ import html from "./html.js";
|
|
7
7
|
import json from "./json.js";
|
8
8
|
import jsonc from "./jsonc.js";
|
9
9
|
import yml from "./yml.js";
|
10
|
-
import md from "./md.js";
|
11
10
|
declare const _default: {
|
12
11
|
readonly js: typeof js;
|
13
12
|
readonly ts: typeof ts;
|
@@ -17,7 +16,6 @@ declare const _default: {
|
|
17
16
|
readonly json: typeof json;
|
18
17
|
readonly jsonc: typeof jsonc;
|
19
18
|
readonly yml: typeof yml;
|
20
|
-
readonly md: typeof md;
|
21
19
|
};
|
22
20
|
export default _default;
|
23
21
|
//# sourceMappingURL=index.d.ts.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/factory/options/index.ts"],"names":[],"mappings":"AAAA,YAAY,EAAE,KAAK,EAAE,KAAK,EAAE,MAAM,EAAE,MAAM,IAAI,CAAC;AAE/C,OAAO,EAAE,MAAM,MAAM,CAAC;AACtB,OAAO,EAAE,MAAM,MAAM,CAAC;AACtB,OAAO,MAAM,MAAM,UAAU,CAAC;AAC9B,OAAO,KAAK,MAAM,SAAS,CAAC;AAC5B,OAAO,IAAI,MAAM,QAAQ,CAAC;AAC1B,OAAO,IAAI,MAAM,QAAQ,CAAC;AAC1B,OAAO,KAAK,MAAM,SAAS,CAAC;AAC5B,OAAO,GAAG,MAAM,OAAO,CAAC
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/factory/options/index.ts"],"names":[],"mappings":"AAAA,YAAY,EAAE,KAAK,EAAE,KAAK,EAAE,MAAM,EAAE,MAAM,IAAI,CAAC;AAE/C,OAAO,EAAE,MAAM,MAAM,CAAC;AACtB,OAAO,EAAE,MAAM,MAAM,CAAC;AACtB,OAAO,MAAM,MAAM,UAAU,CAAC;AAC9B,OAAO,KAAK,MAAM,SAAS,CAAC;AAC5B,OAAO,IAAI,MAAM,QAAQ,CAAC;AAC1B,OAAO,IAAI,MAAM,QAAQ,CAAC;AAC1B,OAAO,KAAK,MAAM,SAAS,CAAC;AAC5B,OAAO,GAAG,MAAM,OAAO,CAAC;;;;;;;;;;;AAExB,wBASW"}
|
@@ -6,7 +6,6 @@ import html from "./html.js";
|
|
6
6
|
import json from "./json.js";
|
7
7
|
import jsonc from "./jsonc.js";
|
8
8
|
import yml from "./yml.js";
|
9
|
-
import md from "./md.js";
|
10
9
|
export default {
|
11
10
|
js,
|
12
11
|
ts,
|
@@ -16,6 +15,5 @@ export default {
|
|
16
15
|
json,
|
17
16
|
jsonc,
|
18
17
|
yml,
|
19
|
-
md,
|
20
18
|
};
|
21
19
|
//# sourceMappingURL=index.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/factory/options/index.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,MAAM,MAAM,CAAC;AACtB,OAAO,EAAE,MAAM,MAAM,CAAC;AACtB,OAAO,MAAM,MAAM,UAAU,CAAC;AAC9B,OAAO,KAAK,MAAM,SAAS,CAAC;AAC5B,OAAO,IAAI,MAAM,QAAQ,CAAC;AAC1B,OAAO,IAAI,MAAM,QAAQ,CAAC;AAC1B,OAAO,KAAK,MAAM,SAAS,CAAC;AAC5B,OAAO,GAAG,MAAM,OAAO,CAAC;
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/factory/options/index.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,MAAM,MAAM,CAAC;AACtB,OAAO,EAAE,MAAM,MAAM,CAAC;AACtB,OAAO,MAAM,MAAM,UAAU,CAAC;AAC9B,OAAO,KAAK,MAAM,SAAS,CAAC;AAC5B,OAAO,IAAI,MAAM,QAAQ,CAAC;AAC1B,OAAO,IAAI,MAAM,QAAQ,CAAC;AAC1B,OAAO,KAAK,MAAM,SAAS,CAAC;AAC5B,OAAO,GAAG,MAAM,OAAO,CAAC;AAExB,eAAe;IACb,EAAE;IACF,EAAE;IACF,MAAM;IACN,KAAK;IACL,IAAI;IACJ,IAAI;IACJ,KAAK;IACL,GAAG;CACK,CAAC"}
|
@@ -2,13 +2,13 @@ import type { Ruleset } from "../../rulesets/ruleset.js";
|
|
2
2
|
import type { Scope, Input, Output, LanguageOptions, Plugins, Globals } from "./template/index.js";
|
3
3
|
export default abstract class Option<S extends Scope, Plugin extends keyof Input["plugins"], IsEcma extends boolean = true, ParserOptions extends object | boolean = false, ParserCount extends 0 | 1 | 2 = 0, Global extends Globals = never, Processor extends object = never> {
|
4
4
|
readonly plugins: Plugins<Plugin>;
|
5
|
-
readonly parser: Tuple<
|
5
|
+
readonly parser: Tuple<ParserCount, unknown>;
|
6
6
|
readonly files: string[];
|
7
7
|
readonly ruleset: Ruleset;
|
8
8
|
private readonly linterOptions;
|
9
9
|
abstract readonly scope: literalful<S>;
|
10
10
|
abstract readonly processor: Interface<Processor> extends never ? object : Interface<Processor> extends Readonly<Record<"processor", string>> ? Interface<Processor> : object;
|
11
|
-
constructor(plugins: Plugins<Plugin>, parser: Tuple<
|
11
|
+
constructor(plugins: Plugins<Plugin>, parser: Tuple<ParserCount, unknown>, files: string[], ruleset: Ruleset);
|
12
12
|
get configs(): Output;
|
13
13
|
private get option();
|
14
14
|
protected abstract get languageOptions(): LanguageOptions<IsEcma, ParserOptions, Global>;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/factory/options/option/index.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,wBAAwB,CAAC;AACtD,OAAO,KAAK,EACV,KAAK,EACL,KAAK,EACL,MAAM,EAEN,eAAe,EACf,OAAO,EACP,OAAO,EACR,MAAM,YAAY,CAAC;AAEpB,MAAM,CAAC,OAAO,CAAC,QAAQ,OAAO,MAAM,CAClC,CAAC,SAAS,KAAK,EACf,MAAM,SAAS,MAAM,KAAK,CAAC,SAAS,CAAC,EACrC,MAAM,SAAS,OAAO,GAAG,IAAI,EAC7B,aAAa,SAAS,MAAM,GAAG,OAAO,GAAG,KAAK,EAC9C,WAAW,SAAS,CAAC,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,EACjC,MAAM,SAAS,OAAO,GAAG,KAAK,EAC9B,SAAS,SAAS,MAAM,GAAG,KAAK;aAYd,OAAO,EAAE,OAAO,CAAC,MAAM,CAAC;aACxB,MAAM,EAAE,KAAK,CAAC,
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/factory/options/option/index.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,wBAAwB,CAAC;AACtD,OAAO,KAAK,EACV,KAAK,EACL,KAAK,EACL,MAAM,EAEN,eAAe,EACf,OAAO,EACP,OAAO,EACR,MAAM,YAAY,CAAC;AAEpB,MAAM,CAAC,OAAO,CAAC,QAAQ,OAAO,MAAM,CAClC,CAAC,SAAS,KAAK,EACf,MAAM,SAAS,MAAM,KAAK,CAAC,SAAS,CAAC,EACrC,MAAM,SAAS,OAAO,GA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KAAK,CAAC,OAAO,CAAC,CAAC;QACnC,UAAiB,KAAK,CAAC;YACrB,KAAY,IAAI,GAAG,KAAK,CAAC,OAAO,CAAC,CAAC;YAClC,KAAY,SAAS,GAAG,KAAK,CAAC,WAAW,CAAC,CAAC;SAC5C;KACF;IACD,KAAY,MAAM,GAAG,MAAM,EAAE,CAAC;CAC/B;AAED,YAAY,EAAE,IAAI,EAAE,CAAC"}
|
package/dist/index.js
CHANGED
@@ -19,8 +19,6 @@ export default function (plugins, parsers, files, rules) {
|
|
19
19
|
.jsonc({ jsonc: plugins.jsonc }, [parsers.jsonc], F.files("jsonc"), R.ruleset("jsonc")).configs,
|
20
20
|
yml: new Options
|
21
21
|
.yml({ yml: plugins.yml }, [parsers.yml], F.files("yml"), R.ruleset("yml")).configs,
|
22
|
-
md: new Options
|
23
|
-
.md({ markdownlint: plugins.markdownlint }, [parsers.md], F.files("md"), R.ruleset("md")).configs,
|
24
22
|
};
|
25
23
|
return scopes.flatMap(scope => options[scope]);
|
26
24
|
}
|
package/dist/index.js.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAOA,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAClC,OAAO,EACL,KAAK,EACL,QAAQ,EACR,OAAO,GACR,MAAM,WAAW,CAAC;AAEnB,MAAM,CAAC,OAAO,WACZ,OAAyB,EACzB,OAAyB,EACzB,KAAqB,EACrB,KAAqB;IAErB,IAAI,CAAC;QACH,MAAM,CAAC,GAAG,IAAI,KAAK,CAAC,KAAK,CAAC,EAC1B,CAAC,GAAG,IAAI,QAAQ,CAAC,KAAK,CAAC,EACvB,OAAO,GAAiF;YACtF,EAAE,EAAE,IAAI,OAAO;iBACZ,EAAE,CACD,EAAE,YAAY,EAAE,OAAO,CAAC,YAAY,CAAC,EAAE,EACvC,EAAE,EACF,CAAC,CAAC,KAAK,CAAC,IAAI,CAAC,EACb,CA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,IAAI,OAAO;iBACd,IAAI,CACH,EAAE,KAAK,EAAE,OAAO,CAAC,KAAK,EAAE,EACxB,CAAC,OAAO,CAAC,KAAK,CAAC,EACf,CAAC,CAAC,KAAK,CAAC,MAAM,CAAC,EACf,CAAC,CAAC,OAAO,CAAC,MAAM,CAAC,CAClB,CAAC,OAAO;YACX,KAAK,EAAE,IAAI,OAAO;iBACf,KAAK,CACJ,EAAE,KAAK,EAAE,OAAO,CAAC,KAAK,EAAE,EACxB,CAAC,OAAO,CAAC,KAAK,CAAC,EACf,CAAC,CAAC,KAAK,CAAC,OAAO,CAAC,EAChB,CAAC,CAAC,OAAO,CAAC,OAAO,CAAC,CACnB,CAAC,OAAO;YACX,GAAG,EAAE,IAAI,OAAO;iBACb,GAAG,CACF,EAAE,GAAG,EAAE,OAAO,CAAC,GAAG,EAAE,EACpB,CAAC,OAAO,CAAC,GAAG,CAAC,EACb,CAAC,CAAC,KAAK,CAAC,KAAK,CAAC,EACd,CAAC,CAAC,OAAO,CAAC,KAAK,CAAC,CACjB,CAAC,OAAO;SACZ,CAAC;QAEF,OAAO,MAAM,CAAC,OAAO,CAAC,KAAK,CAAC,EAAE,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC,CAAC;IACjD,CAAC;IACD,OAAO,CAAC,EAAE,CAAC;QAAC,MAAM,IAAI,KAAK,CAAC,aAAa,EAAE,EAAE,KAAK,EAAE,CAAC,EAAE,CAAC,CAAC;IAAC,CAAC;AAC7D,CAAC"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"parsers.d.ts","sourceRoot":"","sources":["../../../src/input/imports/parsers.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,IAAI,CAAC;AAEhC,MAAM,MAAM,OAAO,GAAG,KAAK,GACvB,CACE,IAAI,GACJ,QAAQ,GACR,MAAM,GACN,OAAO,GACP,KAAK,
|
1
|
+
{"version":3,"file":"parsers.d.ts","sourceRoot":"","sources":["../../../src/input/imports/parsers.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,IAAI,CAAC;AAEhC,MAAM,MAAM,OAAO,GAAG,KAAK,GACvB,CACE,IAAI,GACJ,QAAQ,GACR,MAAM,GACN,OAAO,GACP,KAAK,CACV,CAAC"}
|
@@ -1,2 +1,2 @@
|
|
1
|
-
export type Plugins = ("@stylistic" | "@typescript-eslint" | "svelte" | "mocha" | "@html-eslint" | "jsonc" | "yml"
|
1
|
+
export type Plugins = ("@stylistic" | "@typescript-eslint" | "svelte" | "mocha" | "@html-eslint" | "jsonc" | "yml");
|
2
2
|
//# sourceMappingURL=plugins.d.ts.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"plugins.d.ts","sourceRoot":"","sources":["../../../src/input/imports/plugins.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,OAAO,GAAG,CAClB,YAAY,GACZ,oBAAoB,GACpB,QAAQ,GACR,OAAO,GACP,cAAc,GACd,OAAO,GACP,KAAK,
|
1
|
+
{"version":3,"file":"plugins.d.ts","sourceRoot":"","sources":["../../../src/input/imports/plugins.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,OAAO,GAAG,CAClB,YAAY,GACZ,oBAAoB,GACpB,QAAQ,GACR,OAAO,GACP,cAAc,GACd,OAAO,GACP,KAAK,CACR,CAAC"}
|
package/dist/output.d.ts
CHANGED
package/dist/output.d.ts.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"output.d.ts","sourceRoot":"","sources":["../src/output.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,GAAG,CAAC;AAE/B,MAAM,MAAM,MAAM,GAAG,CACnB;IACE,IAAI,EAAE,UAAU,MAAM,EAAE,CAAC;IACzB,KAAK,EAAE,KAAK,CAAC,OAAO,CAAC,CAAC,OAAO,CAAC,CAAC,MAAM,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,CAAC;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scope = typeof scopes[number];
|
2
|
-
export declare const scopes: readonly ["js", "ts", "svelte", "mocha", "html", "json", "jsonc", "yml"
|
2
|
+
export declare const scopes: readonly ["js", "ts", "svelte", "mocha", "html", "json", "jsonc", "yml"];
|
3
3
|
//# sourceMappingURL=scopes.d.ts.map
|
package/dist/scopes.d.ts.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"scopes.d.ts","sourceRoot":"","sources":["../src/scopes.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,KAAK,GAAG,OAAO,MAAM,CAAC,MAAM,CAAC,CAAC;AAC1C,eAAO,MAAM,MAAM,
|
1
|
+
{"version":3,"file":"scopes.d.ts","sourceRoot":"","sources":["../src/scopes.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,KAAK,GAAG,OAAO,MAAM,CAAC,MAAM,CAAC,CAAC;AAC1C,eAAO,MAAM,MAAM,0EAST,CAAC"}
|
package/dist/scopes.js
CHANGED
package/dist/scopes.js.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"scopes.js","sourceRoot":"","sources":["../src/scopes.ts"],"names":[],"mappings":"AACA,MAAM,CAAC,MAAM,MAAM,GAAG;IACpB,IAAI;IACJ,IAAI;IACJ,QAAQ;IACR,OAAO;IACP,MAAM;IACN,MAAM;IACN,OAAO;IACP,KAAK;
|
1
|
+
{"version":3,"file":"scopes.js","sourceRoot":"","sources":["../src/scopes.ts"],"names":[],"mappings":"AACA,MAAM,CAAC,MAAM,MAAM,GAAG;IACpB,IAAI;IACJ,IAAI;IACJ,QAAQ;IACR,OAAO;IACP,MAAM;IACN,MAAM;IACN,OAAO;IACP,KAAK;CACG,CAAC"}
|
package/package.json
CHANGED
@@ -8,7 +8,6 @@ import html from "./html";
|
|
8
8
|
import json from "./json";
|
9
9
|
import jsonc from "./jsonc";
|
10
10
|
import yml from "./yml";
|
11
|
-
import md from "./md";
|
12
11
|
|
13
12
|
export default {
|
14
13
|
js,
|
@@ -19,5 +18,4 @@ export default {
|
|
19
18
|
json,
|
20
19
|
jsonc,
|
21
20
|
yml,
|
22
|
-
md,
|
23
21
|
} as const;
|
@@ -30,7 +30,7 @@ export default abstract class Option<
|
|
30
30
|
|
31
31
|
constructor(
|
32
32
|
public readonly plugins: Plugins<Plugin>,
|
33
|
-
public readonly parser: Tuple<
|
33
|
+
public readonly parser: Tuple<ParserCount, unknown>,
|
34
34
|
public readonly files: string[],
|
35
35
|
public readonly ruleset: Ruleset,
|
36
36
|
) {}
|
package/src/index.ts
CHANGED
@@ -78,13 +78,6 @@ export default function (
|
|
78
78
|
F.files("yml"),
|
79
79
|
R.ruleset("yml"),
|
80
80
|
).configs,
|
81
|
-
md: new Options
|
82
|
-
.md(
|
83
|
-
{ markdownlint: plugins.markdownlint },
|
84
|
-
[parsers.md],
|
85
|
-
F.files("md"),
|
86
|
-
R.ruleset("md"),
|
87
|
-
).configs,
|
88
81
|
};
|
89
82
|
|
90
83
|
return scopes.flatMap(scope => options[scope]);
|
package/src/output.ts
CHANGED
@@ -16,7 +16,7 @@ export type Output = (
|
|
16
16
|
ecmaVersion?: "latest";
|
17
17
|
globals?: Table<true>;
|
18
18
|
parser?: unknown;
|
19
|
-
parserOptions?:
|
19
|
+
parserOptions?: Table;
|
20
20
|
};
|
21
21
|
plugins: Table<Record<"configs", unknown>>;
|
22
22
|
processor?: string;
|
package/src/scopes.ts
CHANGED
@@ -0,0 +1,11 @@
|
|
1
|
+
declare type ArrayN<N extends number = 0, I = string> = [I] extends [never]
|
2
|
+
? never
|
3
|
+
: N extends number
|
4
|
+
? N extends 0 /* TODO: constrain posint */
|
5
|
+
? [...I[]]
|
6
|
+
: ArrayBuilder<N, I>
|
7
|
+
: never;
|
8
|
+
|
9
|
+
type ArrayBuilder<N extends number, I, H extends I[] = []> = H["length"] extends N
|
10
|
+
? [...H, ...I[]]
|
11
|
+
: ArrayBuilder<N, I, [...H, I]>;
|
@@ -0,0 +1,10 @@
|
|
1
|
+
declare type Monad<I = string> = Tuple<1, I>;
|
2
|
+
declare type Dyad<I = string> = Tuple<2, I>;
|
3
|
+
declare type Triad<I = string> = Tuple<3, I>;
|
4
|
+
declare type Quad<I = string> = Tuple<4, I>;
|
5
|
+
declare type Pentad<I = string> = Tuple<5, I>;
|
6
|
+
declare type Hexad<I = string> = Tuple<6, I>;
|
7
|
+
declare type Heptad<I = string> = Tuple<7, I>;
|
8
|
+
declare type Octad<I = string> = Tuple<8, I>;
|
9
|
+
declare type Nonad<I = string> = Tuple<9, I>;
|
10
|
+
declare type Decad<I = string> = Tuple<10, I>;
|
@@ -0,0 +1,26 @@
|
|
1
|
+
declare type Tuple<N extends number = 2, I = string> = [I] extends [never]
|
2
|
+
? never
|
3
|
+
: N extends number
|
4
|
+
? N extends 0 /* TODO: constrain posint */
|
5
|
+
? readonly []
|
6
|
+
: TupleBuilder<N, I>
|
7
|
+
: never;
|
8
|
+
|
9
|
+
type TupleBuilder<N extends number, I, H extends readonly I[] = readonly []> = H["length"] extends N
|
10
|
+
? H
|
11
|
+
: TupleBuilder<N, I, readonly [...H, I]>;
|
12
|
+
|
13
|
+
declare namespace Tuple {
|
14
|
+
export type T = Tuple;
|
15
|
+
export type T0 = Tuple<0>;
|
16
|
+
export type T0a = Tuple<1>;
|
17
|
+
export type T0b = Tuple<3>;
|
18
|
+
export type T1 = Tuple<2, string | number>;
|
19
|
+
export type T2 = Tuple<2 | 3>;
|
20
|
+
export type T3 = Tuple<2 | 3, string | number>;
|
21
|
+
export type T4 = Tuple<never>;
|
22
|
+
export type T4a = Tuple<0>;
|
23
|
+
export type T4b = Tuple<0 | 1>;
|
24
|
+
export type T4c = Tuple<1, never>;
|
25
|
+
export type T4d = Tuple<never, never>;
|
26
|
+
}
|
@@ -7,8 +7,8 @@ declare namespace ArrayLength {
|
|
7
7
|
export type T0d = ArrayLength<readonly string[]>;
|
8
8
|
export type T0c = ArrayLength<[string?, string?]>;
|
9
9
|
export type T1 = ArrayLength<[string] | [string, string?, string?]>;
|
10
|
-
export type T1b = ArrayLength<[string] | [string?, string?, string?]>; // 0 | 1 | 2 | 3 -- empty
|
11
|
-
export type T1c = ArrayLength<string[] | [string, string, string]>; // 0 --
|
10
|
+
export type T1b = ArrayLength<[string] | [string?, string?, string?]>; // 0 | 1 | 2 | 3 -- empty tuple -> length: 0 is just 0, so does not consume other possible lengths
|
11
|
+
export type T1c = ArrayLength<string[] | [string, string, string]>; // 0 -- array -> length: number coerced to length 0 but consumes all other possible lengths
|
12
12
|
}
|
13
13
|
|
14
14
|
declare namespace NotArrayLength {
|
@@ -12,11 +12,11 @@ declare namespace MonadType {
|
|
12
12
|
export type T6 = MonadType<string[] | int[]>;
|
13
13
|
export type T7 = MonadType<(string | int)[]>;
|
14
14
|
export type T18 = MonadType<[string] | [5, 10]>;
|
15
|
-
export type T8a = MonadType<Tuple
|
16
|
-
export type T8b = MonadType<ArrayN<
|
15
|
+
export type T8a = MonadType<Tuple>;
|
16
|
+
export type T8b = MonadType<ArrayN<3>>;
|
17
17
|
export type T8c = MonadType<
|
18
|
-
| ArrayN<
|
19
|
-
| Tuple
|
18
|
+
| ArrayN<3>
|
19
|
+
| Tuple
|
20
20
|
| [string]
|
21
21
|
| [5, 10]
|
22
22
|
| [5, 13]
|
@@ -42,7 +42,7 @@ declare namespace NotMonadType {
|
|
42
42
|
| readonly [5, 10]
|
43
43
|
| readonly string[]
|
44
44
|
>;
|
45
|
-
export type N31 = MonadType<ArrayN
|
45
|
+
export type N31 = MonadType<ArrayN>;
|
46
46
|
export type N32 = MonadType<[string?]>;
|
47
47
|
export type N33 = MonadType<readonly [string?]>;
|
48
48
|
}
|
@@ -0,0 +1,27 @@
|
|
1
|
+
declare type Stringify<C> = C extends abstract new (...args: infer A) => infer O
|
2
|
+
? O extends { string: infer S extends string }
|
3
|
+
? S
|
4
|
+
: O extends { toString: () => infer S extends string }
|
5
|
+
? S
|
6
|
+
: never
|
7
|
+
: C extends ((...args: infer A) => infer S extends string)
|
8
|
+
? S
|
9
|
+
: C extends { string: infer S extends string }
|
10
|
+
? S
|
11
|
+
: C extends { toString: () => infer S extends string }
|
12
|
+
? S
|
13
|
+
: never;
|
14
|
+
|
15
|
+
declare namespace Stringify {
|
16
|
+
export type T = Stringify<CharString<"OK-Instance">>;
|
17
|
+
export type T0 = Stringify<CharStringCtor>;
|
18
|
+
export type T1 = Stringify<charstringfunc<"OK-Function">>;
|
19
|
+
|
20
|
+
type CharStringCtor = abstract new () => CharString<"OK-Constructor">;
|
21
|
+
|
22
|
+
interface CharString<Validator extends string> {
|
23
|
+
readonly string: valid<stringful, [Validator, "string"]>;
|
24
|
+
}
|
25
|
+
|
26
|
+
type charstringfunc<Validator extends string> = () => valid<stringful, [Validator, "string"]>;
|
27
|
+
}
|
@@ -0,0 +1,13 @@
|
|
1
|
+
declare namespace Nullable {
|
2
|
+
type OK = Test<TF> | 0;
|
3
|
+
type TF = {
|
4
|
+
T: {
|
5
|
+
T0: Nullable<string>;
|
6
|
+
T1: Nullable<string | null>;
|
7
|
+
T2: Nullable<string | undefined>;
|
8
|
+
T3: Nullable<string | null | undefined>;
|
9
|
+
T4: Nullable<string | int | null>;
|
10
|
+
T6: Nullable<NonNullable<undefined | string>>;
|
11
|
+
};
|
12
|
+
};
|
13
|
+
}
|
@@ -0,0 +1,13 @@
|
|
1
|
+
declare namespace _Null {
|
2
|
+
type OK = Test<TF> | 0;
|
3
|
+
type TF = {
|
4
|
+
T: {
|
5
|
+
T0: Null<string>;
|
6
|
+
T1: Null<string | null>;
|
7
|
+
T2: Null<string | undefined>;
|
8
|
+
T3: Null<string | null | undefined>;
|
9
|
+
T4: Null<string | int | null>;
|
10
|
+
T6: Null<NonNullable<undefined | string>>;
|
11
|
+
};
|
12
|
+
};
|
13
|
+
}
|
@@ -0,0 +1,2 @@
|
|
1
|
+
declare type Test<TF extends { T: unknown; F?: unknown }> = (OmitNever<TF["T"]> extends TF["T"] ? true : never) & (object extends OmitNever<TF["F"]> ? true : undefined extends OmitNever<TF["F"]> ? true : never);
|
2
|
+
declare type OmitNever<R> = { [K in keyof R as R[K] extends never ? never : K]: R[K] };
|
@@ -0,0 +1 @@
|
|
1
|
+
declare type vstring<V extends string> = valid<stringful, [V, "string"]>;
|
@@ -1,9 +0,0 @@
|
|
1
|
-
import Option from "./option/index.js";
|
2
|
-
export default class Md extends Option<"md", "markdownlint", false, true, 1> {
|
3
|
-
readonly scope = "md";
|
4
|
-
readonly processor: {};
|
5
|
-
get languageOptions(): {
|
6
|
-
readonly parser: unknown;
|
7
|
-
};
|
8
|
-
}
|
9
|
-
//# sourceMappingURL=md.d.ts.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"md.d.ts","sourceRoot":"","sources":["../../../src/factory/options/md.ts"],"names":[],"mappings":"AAAA,OAAO,MAAM,MAAM,UAAU,CAAC;AAE9B,MAAM,CAAC,OAAO,OAAO,EAAG,SAAQ,MAAM,CACpC,IAAI,EACJ,cAAc,EACd,KAAK,EACL,IAAI,EACJ,CAAC,CACF;IACC,SAAgB,KAAK,QAAQ;IAC7B,SAAgB,SAAS,KAAe;IAExC,IAAW,eAAe;;MAIzB;CACF"}
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"md.js","sourceRoot":"","sources":["../../../src/factory/options/md.ts"],"names":[],"mappings":"AAAA,OAAO,MAAM,MAAM,UAAU,CAAC;AAE9B,MAAM,CAAC,OAAO,OAAO,EAAG,SAAQ,MAM/B;IACiB,KAAK,GAAG,IAAI,CAAC;IACb,SAAS,GAAG,EAAW,CAAC;IAExC,IAAW,eAAe;QACxB,MAAM,CAAC,MAAM,CAAC,GAAG,IAAI,CAAC,MAAM,CAAC;QAE7B,OAAO,EAAE,MAAM,EAAW,CAAC;IAC7B,CAAC;CACF"}
|
@@ -1,18 +0,0 @@
|
|
1
|
-
import Option from "./option";
|
2
|
-
|
3
|
-
export default class Md extends Option<
|
4
|
-
"md",
|
5
|
-
"markdownlint",
|
6
|
-
false,
|
7
|
-
true,
|
8
|
-
1
|
9
|
-
> {
|
10
|
-
public readonly scope = "md";
|
11
|
-
public readonly processor = {} as const;
|
12
|
-
|
13
|
-
public get languageOptions() {
|
14
|
-
const [parser] = this.parser;
|
15
|
-
|
16
|
-
return { parser } as const;
|
17
|
-
}
|
18
|
-
}
|
@@ -1,12 +0,0 @@
|
|
1
|
-
// TODO: constrain to positive integer
|
2
|
-
declare type ArrayN<I, N extends number = 0> = [I] extends [never]
|
3
|
-
? never
|
4
|
-
: N extends number
|
5
|
-
? N extends 0
|
6
|
-
? [...I[]]
|
7
|
-
: ArrayBuilder<I, N>
|
8
|
-
: never;
|
9
|
-
|
10
|
-
type ArrayBuilder<I, N extends number, H extends I[] = []> = H["length"] extends N
|
11
|
-
? [...H, ...I[]]
|
12
|
-
: ArrayBuilder<I, N, [...H, I]>;
|
@@ -1 +0,0 @@
|
|
1
|
-
declare type Arrayful<I> = ArrayN<I, 1>;
|
@@ -1,9 +0,0 @@
|
|
1
|
-
declare type Monad<I> = Tuple<I, 1>;
|
2
|
-
declare type Triad<I> = Tuple<I, 3>;
|
3
|
-
declare type Quad<I> = Tuple<I, 4>;
|
4
|
-
declare type Pentad<I> = Tuple<I, 5>;
|
5
|
-
declare type Hexad<I> = Tuple<I, 6>;
|
6
|
-
declare type Heptad<I> = Tuple<I, 7>;
|
7
|
-
declare type Octad<I> = Tuple<I, 8>;
|
8
|
-
declare type Nonad<I> = Tuple<I, 9>;
|
9
|
-
declare type Decad<I> = Tuple<I, 10>;
|
@@ -1,27 +0,0 @@
|
|
1
|
-
// TODO: constrain to positive integer
|
2
|
-
declare type Tuple<I, N extends number = 2> = [I] extends [never]
|
3
|
-
? never
|
4
|
-
: N extends number
|
5
|
-
? N extends 0
|
6
|
-
? readonly []
|
7
|
-
: TupleBuilder<I, Numbered<N>>
|
8
|
-
: never;
|
9
|
-
|
10
|
-
type TupleBuilder<I, N, H extends readonly I[] = readonly []> = H["length"] extends N
|
11
|
-
? H
|
12
|
-
: TupleBuilder<I, N, readonly [...H, I]>;
|
13
|
-
|
14
|
-
declare namespace Tuple {
|
15
|
-
export type T = Tuple<string>;
|
16
|
-
export type T0 = Tuple<string, 0>;
|
17
|
-
export type T0a = Tuple<string, 1>;
|
18
|
-
export type T0b = Tuple<string, 3>;
|
19
|
-
export type T1 = Tuple<string | number>;
|
20
|
-
export type T2 = Tuple<string, 2 | 3>;
|
21
|
-
export type T3 = Tuple<string | number, 2 | 3>;
|
22
|
-
export type T4 = Tuple<string, never>;
|
23
|
-
export type T4a = Tuple<string, 0>;
|
24
|
-
export type T4b = Tuple<string, 0 | 1>;
|
25
|
-
}
|
26
|
-
|
27
|
-
type NN = Numbered<5 | 10>;
|
@@ -1,13 +0,0 @@
|
|
1
|
-
declare type Stringify<C> = C extends abstract new (...args: infer A) => infer O
|
2
|
-
? O extends { string: infer S extends string }
|
3
|
-
? S
|
4
|
-
: O extends { toString: () => infer S extends string }
|
5
|
-
? S
|
6
|
-
: never
|
7
|
-
: C extends ((...args: infer A) => infer S extends string)
|
8
|
-
? S
|
9
|
-
: C extends { string: infer S extends string }
|
10
|
-
? S
|
11
|
-
: C extends { toString: () => infer S extends string }
|
12
|
-
? S
|
13
|
-
: never;
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
/package/typings/{typioca → common}/utility/interface/transform/partial/unrequire/index.d.ts
RENAMED
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|