@eslinted/core 0.9.0-rc.3 → 0.9.0-rc.4
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/boundary/boundary.d.ts +10 -5
- package/dist/boundary/boundary.d.ts.map +1 -1
- package/dist/boundary/boundary.js +1 -2
- package/dist/boundary/boundary.js.map +1 -1
- package/dist/boundary/input/input.d.ts +7 -4
- package/dist/boundary/input/input.d.ts.map +1 -1
- package/dist/boundary/input/parsers/parsers.d.ts +2 -2
- package/dist/boundary/input/parsers/parsers.d.ts.map +1 -1
- package/dist/boundary/input/plugins/plugins.d.ts +2 -1
- package/dist/boundary/input/plugins/plugins.d.ts.map +1 -1
- package/dist/boundary/output/output.d.ts +2 -2
- package/dist/boundary/output/output.d.ts.map +1 -1
- package/dist/factory/Factory.d.ts +4 -6
- package/dist/factory/Factory.d.ts.map +1 -1
- package/dist/factory/Factory.js +3 -3
- package/dist/factory/Factory.js.map +1 -1
- package/dist/factory/_factory.d.ts +5 -0
- package/dist/factory/_factory.d.ts.map +1 -0
- package/dist/factory/_factory.js +5 -0
- package/dist/factory/_factory.js.map +1 -0
- package/dist/factory/files/Files.d.ts +1 -1
- package/dist/factory/files/Files.d.ts.map +1 -1
- package/dist/factory/options/Options.d.ts +0 -2
- package/dist/factory/options/Options.d.ts.map +1 -1
- package/dist/factory/options/Options.js.map +1 -1
- package/dist/factory/options/option/Option.d.ts +4 -4
- package/dist/factory/options/option/Option.d.ts.map +1 -1
- package/dist/factory/ruleset/Ruleset.d.ts +1 -1
- package/dist/factory/ruleset/Ruleset.d.ts.map +1 -1
- package/dist/factory/ruleset/Ruleset.js.map +1 -1
- package/dist/index.d.ts +6 -5
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +2 -2
- package/dist/index.js.map +1 -1
- package/dist/scopes/scopes.d.ts +4 -0
- package/dist/scopes/scopes.d.ts.map +1 -0
- package/dist/scopes/scopes.js +11 -0
- package/dist/scopes/scopes.js.map +1 -0
- package/package.json +1 -1
- package/src/boundary/boundary.ts +11 -10
- package/src/boundary/input/input.ts +8 -4
- package/src/boundary/input/parsers/parsers.ts +2 -2
- package/src/boundary/input/plugins/plugins.ts +2 -1
- package/src/boundary/output/output.ts +2 -2
- package/src/factory/{Factory.ts → factory.ts} +2 -5
- package/src/factory/files/Files.ts +1 -1
- package/src/factory/options/Options.ts +0 -2
- package/src/factory/options/option/Option.ts +4 -4
- package/src/factory/ruleset/Ruleset.ts +1 -1
- package/src/index.ts +7 -12
- /package/src/{boundary/scopes → scopes}/scopes.ts +0 -0
@@ -1,6 +1,11 @@
|
|
1
|
-
import
|
2
|
-
import type
|
3
|
-
|
4
|
-
|
5
|
-
|
1
|
+
import type input from "./input/input.js";
|
2
|
+
import type output from "./output/output.js";
|
3
|
+
declare namespace Boundary {
|
4
|
+
namespace Input {
|
5
|
+
type Plugins = input.Plugins;
|
6
|
+
type Parsers = input.Parsers;
|
7
|
+
}
|
8
|
+
type Output = output;
|
9
|
+
}
|
10
|
+
export type { Boundary as default };
|
6
11
|
//# sourceMappingURL=boundary.d.ts.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"boundary.d.ts","sourceRoot":"","sources":["../../src/boundary/boundary.ts"],"names":[],"mappings":"AAAA,OAAO,MAAM,
|
1
|
+
{"version":3,"file":"boundary.d.ts","sourceRoot":"","sources":["../../src/boundary/boundary.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,kBAAkB,CAAC;AAC1C,OAAO,KAAK,MAAM,MAAM,oBAAoB,CAAC;AAE7C,kBAAU,QAAQ,CAAC;IACjB,UAAiB,KAAK,CAAC;QACrB,KAAY,OAAO,GAAG,KAAK,CAAC,OAAO,CAAC;QACpC,KAAY,OAAO,GAAG,KAAK,CAAC,OAAO,CAAC;KACrC;IACD,KAAY,MAAM,GAAG,MAAM,CAAC;CAC7B;AAED,YAAY,EAAE,QAAQ,IAAI,OAAO,EAAE,CAAC"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"boundary.js","sourceRoot":"","sources":["../../src/boundary/boundary.ts"],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"boundary.js","sourceRoot":"","sources":["../../src/boundary/boundary.ts"],"names":[],"mappings":""}
|
@@ -1,5 +1,8 @@
|
|
1
|
-
import type
|
2
|
-
import type
|
3
|
-
|
4
|
-
|
1
|
+
import type plugins from "./plugins/plugins.js";
|
2
|
+
import type parsers from "./parsers/parsers.js";
|
3
|
+
declare namespace Input {
|
4
|
+
type Plugins = plugins;
|
5
|
+
type Parsers = parsers;
|
6
|
+
}
|
7
|
+
export type { Input as default };
|
5
8
|
//# sourceMappingURL=input.d.ts.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"input.d.ts","sourceRoot":"","sources":["../../../src/boundary/input/input.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,OAAO,MAAM,sBAAsB,CAAC;AAChD,OAAO,KAAK,OAAO,MAAM,sBAAsB,CAAC;AAEhD,
|
1
|
+
{"version":3,"file":"input.d.ts","sourceRoot":"","sources":["../../../src/boundary/input/input.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,OAAO,MAAM,sBAAsB,CAAC;AAChD,OAAO,KAAK,OAAO,MAAM,sBAAsB,CAAC;AAEhD,kBAAU,KAAK,CAAC;IACd,KAAY,OAAO,GAAG,OAAO,CAAC;IAC9B,KAAY,OAAO,GAAG,OAAO,CAAC;CAC/B;AAED,YAAY,EAAE,KAAK,IAAI,OAAO,EAAE,CAAC"}
|
@@ -1,5 +1,5 @@
|
|
1
|
-
import type { Scope } from "
|
2
|
-
import type { Options } from "../../../factory/
|
1
|
+
import type { Scope } from "../../../scopes/scopes.js";
|
2
|
+
import type { Options } from "../../../factory/factory.js";
|
3
3
|
type Parsers = {
|
4
4
|
readonly [S in Scope]: ConstructorParameters<typeof Options[S]>[2] extends readonly [unknown, ...unknown[]] ? unknown : null;
|
5
5
|
};
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"parsers.d.ts","sourceRoot":"","sources":["../../../../src/boundary/input/parsers/parsers.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,
|
1
|
+
{"version":3,"file":"parsers.d.ts","sourceRoot":"","sources":["../../../../src/boundary/input/parsers/parsers.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,2BAA2B,CAAC;AACvD,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,6BAA6B,CAAC;AAE3D,KAAK,OAAO,GAAG;IACb,QAAQ,EAAE,CAAC,IAAI,KAAK,GAAG,qBAAqB,CAAC,OAAO,OAAO,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,SAAS,SAAS,CAAC,OAAO,EAAE,GAAG,OAAO,EAAE,CAAC,GACvG,OAAO,GACP,IAAI;CACT,CAAC;AAEF,YAAY,EAAE,OAAO,IAAI,OAAO,EAAE,CAAC"}
|
@@ -1,4 +1,5 @@
|
|
1
|
-
import type { Scope
|
1
|
+
import type { Scope } from "../../../scopes/scopes.js";
|
2
|
+
import type { Options } from "../../../factory/factory.js";
|
2
3
|
type Plugins = {
|
3
4
|
readonly [S in Scope]: InstanceType<typeof Options[S]>["plugins"];
|
4
5
|
};
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"plugins.d.ts","sourceRoot":"","sources":["../../../../src/boundary/input/plugins/plugins.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,KAAK,EAAE,OAAO,EAAE,MAAM,6BAA6B,CAAC;
|
1
|
+
{"version":3,"file":"plugins.d.ts","sourceRoot":"","sources":["../../../../src/boundary/input/plugins/plugins.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,2BAA2B,CAAC;AACvD,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,6BAA6B,CAAC;AAE3D,KAAK,OAAO,GAAG;IACb,QAAQ,EAAE,CAAC,IAAI,KAAK,GAAG,YAAY,CAAC,OAAO,OAAO,CAAC,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC;CAClE,CAAC;AAEF,YAAY,EAAE,OAAO,IAAI,OAAO,EAAE,CAAC"}
|
@@ -1,3 +1,3 @@
|
|
1
|
-
import type
|
2
|
-
export type {
|
1
|
+
import type Output from "./config/IConfig.js";
|
2
|
+
export type { Output as default };
|
3
3
|
//# sourceMappingURL=output.d.ts.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"output.d.ts","sourceRoot":"","sources":["../../../src/boundary/output/output.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,
|
1
|
+
{"version":3,"file":"output.d.ts","sourceRoot":"","sources":["../../../src/boundary/output/output.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,MAAM,qBAAqB,CAAC;AAE9C,YAAY,EAAE,MAAM,IAAI,OAAO,EAAE,CAAC"}
|
@@ -1,7 +1,5 @@
|
|
1
|
-
import Options from "./options/Options.js";
|
2
|
-
import Files from "./files/Files.js";
|
3
1
|
import Ruleset, { Rule } from "./ruleset/Ruleset.js";
|
4
|
-
import
|
5
|
-
|
6
|
-
export { Options, Files, Ruleset, Rule,
|
7
|
-
//# sourceMappingURL=
|
2
|
+
import Files from "./files/Files.js";
|
3
|
+
import Options from "./options/Options.js";
|
4
|
+
export { Options, Files, Ruleset, Rule, };
|
5
|
+
//# sourceMappingURL=factory.d.ts.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"
|
1
|
+
{"version":3,"file":"factory.d.ts","sourceRoot":"","sources":["../../src/factory/factory.ts"],"names":[],"mappings":"AAAA,OAAO,OAAO,EAAE,EAAE,IAAI,EAAE,MAAM,sBAAsB,CAAC;AACrD,OAAO,KAAK,MAAM,kBAAkB,CAAC;AACrC,OAAO,OAAO,MAAM,sBAAsB,CAAC;AAE3C,OAAO,EACL,OAAO,EACP,KAAK,EACL,OAAO,EACP,IAAI,GACL,CAAC"}
|
package/dist/factory/Factory.js
CHANGED
@@ -1,5 +1,5 @@
|
|
1
|
-
import Options from "./options/Options.js";
|
2
|
-
import Files from "./files/Files.js";
|
3
1
|
import Ruleset, { Rule } from "./ruleset/Ruleset.js";
|
2
|
+
import Files from "./files/Files.js";
|
3
|
+
import Options from "./options/Options.js";
|
4
4
|
export { Options, Files, Ruleset, Rule, };
|
5
|
-
//# sourceMappingURL=
|
5
|
+
//# sourceMappingURL=factory.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"
|
1
|
+
{"version":3,"file":"factory.js","sourceRoot":"","sources":["../../src/factory/factory.ts"],"names":[],"mappings":"AAAA,OAAO,OAAO,EAAE,EAAE,IAAI,EAAE,MAAM,sBAAsB,CAAC;AACrD,OAAO,KAAK,MAAM,kBAAkB,CAAC;AACrC,OAAO,OAAO,MAAM,sBAAsB,CAAC;AAE3C,OAAO,EACL,OAAO,EACP,KAAK,EACL,OAAO,EACP,IAAI,GACL,CAAC"}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"_factory.d.ts","sourceRoot":"","sources":["../../src/factory/_factory.ts"],"names":[],"mappings":"AAAA,OAAO,OAAO,EAAE,EAAE,IAAI,EAAE,MAAM,sBAAsB,CAAC;AACrD,OAAO,KAAK,MAAM,kBAAkB,CAAC;AACrC,OAAO,OAAO,MAAM,sBAAsB,CAAC;AAE3C,OAAO,EACL,OAAO,EACP,KAAK,EACL,OAAO,EACP,IAAI,GACL,CAAC"}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"_factory.js","sourceRoot":"","sources":["../../src/factory/_factory.ts"],"names":[],"mappings":"AAAA,OAAO,OAAO,EAAE,EAAE,IAAI,EAAE,MAAM,sBAAsB,CAAC;AACrD,OAAO,KAAK,MAAM,kBAAkB,CAAC;AACrC,OAAO,OAAO,MAAM,sBAAsB,CAAC;AAE3C,OAAO,EACL,OAAO,EACP,KAAK,EACL,OAAO,EACP,IAAI,GACL,CAAC"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"Files.d.ts","sourceRoot":"","sources":["../../../src/factory/files/Files.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,
|
1
|
+
{"version":3,"file":"Files.d.ts","sourceRoot":"","sources":["../../../src/factory/files/Files.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,wBAAwB,CAAC;AAEpD,MAAM,CAAC,OAAO,OAAO,KAAK;IAEtB,OAAO,CAAC,QAAQ,CAAC,IAAI;IACrB,OAAO,CAAC,QAAQ,CAAC,QAAQ;gBADR,IAAI,EAAE,MAAM,CAAC,KAAK,EAAE,MAAM,EAAE,CAAC,EAC7B,QAAQ,EAAE,SAAS,CAAC,KAAK,EAAE,MAAM,EAAE,CAAC;IAGhD,KAAK,CAAC,KAAK,EAAE,KAAK,GAAG,SAAS,MAAM,EAAE;CAM9C"}
|
@@ -1,4 +1,3 @@
|
|
1
|
-
import type { Scope } from "../Factory.js";
|
2
1
|
import JsOption from "./option/js/index.js";
|
3
2
|
import TsOption from "./option/ts/index.js";
|
4
3
|
import SvelteOption from "./option/svelte/index.js";
|
@@ -6,7 +5,6 @@ import HtmlOption from "./option/html/index.js";
|
|
6
5
|
import JsonOption from "./option/json/index.js";
|
7
6
|
import JsoncOption from "./option/jsonc/index.js";
|
8
7
|
import YmlOption from "./option/yml/index.js";
|
9
|
-
export type { Scope };
|
10
8
|
declare const _default: {
|
11
9
|
readonly js: typeof JsOption;
|
12
10
|
readonly ts: typeof TsOption;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"Options.d.ts","sourceRoot":"","sources":["../../../src/factory/options/Options.ts"],"names":[],"mappings":"AAAA,OAAO,
|
1
|
+
{"version":3,"file":"Options.d.ts","sourceRoot":"","sources":["../../../src/factory/options/Options.ts"],"names":[],"mappings":"AAAA,OAAO,QAAQ,MAAM,sBAAsB,CAAC;AAC5C,OAAO,QAAQ,MAAM,sBAAsB,CAAC;AAC5C,OAAO,YAAY,MAAM,0BAA0B,CAAC;AACpD,OAAO,UAAU,MAAM,wBAAwB,CAAC;AAChD,OAAO,UAAU,MAAM,wBAAwB,CAAC;AAChD,OAAO,WAAW,MAAM,yBAAyB,CAAC;AAClD,OAAO,SAAS,MAAM,uBAAuB,CAAC;;;;;;;;;;AAE9C,wBAQW"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"Options.js","sourceRoot":"","sources":["../../../src/factory/options/Options.ts"],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"Options.js","sourceRoot":"","sources":["../../../src/factory/options/Options.ts"],"names":[],"mappings":"AAAA,OAAO,QAAQ,MAAM,sBAAsB,CAAC;AAC5C,OAAO,QAAQ,MAAM,sBAAsB,CAAC;AAC5C,OAAO,YAAY,MAAM,0BAA0B,CAAC;AACpD,OAAO,UAAU,MAAM,wBAAwB,CAAC;AAChD,OAAO,UAAU,MAAM,wBAAwB,CAAC;AAChD,OAAO,WAAW,MAAM,yBAAyB,CAAC;AAClD,OAAO,SAAS,MAAM,uBAAuB,CAAC;AAE9C,eAAe;IACb,EAAE,EAAE,QAAQ;IACZ,EAAE,EAAE,QAAQ;IACZ,MAAM,EAAE,YAAY;IACpB,IAAI,EAAE,UAAU;IAChB,IAAI,EAAE,UAAU;IAChB,KAAK,EAAE,WAAW;IAClB,GAAG,EAAE,SAAS;CACN,CAAC"}
|
@@ -1,6 +1,6 @@
|
|
1
|
-
import type { Scope } from "
|
2
|
-
import type
|
3
|
-
import type {
|
1
|
+
import type { Scope } from "../../../scopes/scopes.js";
|
2
|
+
import type Boundary from "../../../boundary/boundary.js";
|
3
|
+
import type { Ruleset } from "../../factory.js";
|
4
4
|
export default abstract class Option<S extends Scope, PluginId extends string, IsEcma extends boolean = true, ParserOptions extends object | boolean = false, ParserCount extends 0 | 1 | 2 = 0, GlobalTypes extends string = never, Processor extends object = never> {
|
5
5
|
readonly files: readonly string[];
|
6
6
|
readonly ruleset: Ruleset<S>;
|
@@ -15,7 +15,7 @@ export default abstract class Option<S extends Scope, PluginId extends string, I
|
|
15
15
|
"interface": string;
|
16
16
|
} ? Interface<Processor> : object);
|
17
17
|
constructor(files: readonly string[], ruleset: Ruleset<S>, plugins: IOPlugins<PluginId>, parser: Tuple<unknown, ParserCount>);
|
18
|
-
get configs():
|
18
|
+
get configs(): Boundary.Output[];
|
19
19
|
get option(): {
|
20
20
|
linterOptions: {
|
21
21
|
readonly noInlineConfig: true;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"Option.d.ts","sourceRoot":"","sources":["../../../../src/factory/options/option/Option.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,
|
1
|
+
{"version":3,"file":"Option.d.ts","sourceRoot":"","sources":["../../../../src/factory/options/option/Option.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,2BAA2B,CAAC;AACvD,OAAO,KAAK,QAAQ,MAAM,+BAA+B,CAAC;AAC1D,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,kBAAkB,CAAC;AAEhD,MAAM,CAAC,OAAO,CAAC,QAAQ,OAAO,MAAM,CAClC,CAAC,SAAS,KAAK,EACf,QAAQ,SAAS,MAAM,EACvB,MAAM,SAAS,OAAO,GAAG,IAAI,EAC7B,aAAa,SAAS,MAAM,GAAG,OAAO,GAAG,KAAK,EAC9C,WAAW,SAAS,CAAC,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,EACjC,WAAW,SAAS,MAAM,GAAG,KAAK,EAClC,SAAS,SAAS,MAAM,GAAG,KAAK;aAWd,KAAK,EAAE,SAAS,MAAM,EAAE;aACxB,OAAO,EAAE,OAAO,CAAC,CAAC,CAAC;aACnB,OAAO,EAAE,SAAS,CAAC,QAAQ,CAAC;aAC5B,MAAM,EAAE,KAAK,CAAC,OAAO,EAAE,WAAW,CAAC;IAZrD,SAAgB,aAAa;;;MAGlB;IAEX,kBAAyB,KAAK,EAAE,UAAU,CAAC,CAAC,CAAC,CAAC;IAC9C,kBAAyB,SAAS,EAAE,CAAC,SAAS,CAAC,SAAS,CAAC,SAAS,KAAK,GAAG,MAAM,GAAG,SAAS,CAAC,SAAS,CAAC,SAAS;QAAE,WAAW,EAAE,MAAM,CAAA;KAAE,GAAG,SAAS,CAAC,SAAS,CAAC,GAAG,MAAM,CAAC,CAAC;gBAGvJ,KAAK,EAAE,SAAS,MAAM,EAAE,EACxB,OAAO,EAAE,OAAO,CAAC,CAAC,CAAC,EACnB,OAAO,EAAE,SAAS,CAAC,QAAQ,CAAC,EAC5B,MAAM,EAAE,KAAK,CAAC,OAAO,EAAE,WAAW,CAAC;IAGrD,IAAW,OAAO,IAAI,QAAQ,CAAC,MAAM,EAAE,CA+BtC;IAED,IAAW,MAAM;;;;;;;;mBA1C8G,MAAM;uCA8DpI;IAED,aAAoB,eAAe,IAAI,UAAU,CAC/C,MAAM,EACN,aAAa,EACb,WAAW,CACZ,CAAC;CACH"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"Ruleset.d.ts","sourceRoot":"","sources":["../../../src/factory/ruleset/Ruleset.ts"],"names":[],"mappings":"AAAA,OAAO,
|
1
|
+
{"version":3,"file":"Ruleset.d.ts","sourceRoot":"","sources":["../../../src/factory/ruleset/Ruleset.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,wBAAwB,CAAC;AACpD,OAAO,IAAI,MAAM,gBAAgB,CAAC;AAElC,OAAO,EAAE,IAAI,EAAE,CAAC;AAChB,MAAM,CAAC,OAAO,OAAO,OAAO,CAAC,CAAC,SAAS,KAAK;IAKxC,OAAO,CAAC,QAAQ,CAAC,KAAK;IAJxB,SAAgB,OAAO,EAAE,SAAS,IAAI,EAAE,CAAC;IAClC,SAAS,EAAE,IAAI,CAAC,IAAI,CAAC,CAAQ;gBAGjB,KAAK,EAAE,UAAU,CAAC,CAAC,CAAC,EACrC,GAAG,OAAO,EAAE,SAAS,IAAI,EAAE;IAK7B,IAAW,EAAE,kBAIZ;IAED,IAAW,OAAO,iCAOjB;IAEM,QAAQ,CAAC,SAAS,EAAE,SAAS,GAAG,KAAK;CAS7C"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"Ruleset.js","sourceRoot":"","sources":["../../../src/factory/ruleset/Ruleset.ts"],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"Ruleset.js","sourceRoot":"","sources":["../../../src/factory/ruleset/Ruleset.ts"],"names":[],"mappings":"AACA,OAAO,IAAI,MAAM,gBAAgB,CAAC;AAElC,OAAO,EAAE,IAAI,EAAE,CAAC;AAChB,MAAM,CAAC,OAAO,OAAO,OAAO;IAKP;IAJH,OAAO,CAAkB;IAClC,SAAS,GAAe,IAAI,CAAC;IAEpC,YACmB,KAAoB,EACrC,GAAG,OAAwB;QADV,UAAK,GAAL,KAAK,CAAe;QAGrC,IAAI,CAAC,OAAO,GAAG,CAAC,GAAG,OAAO,CAAC,CAAC;IAC9B,CAAC;IAED,IAAW,EAAE;QACX,MAAM,EAAE,KAAK,EAAE,GAAG,IAAI,CAAC;QAEvB,OAAO,KAAK,CAAC;IACf,CAAC;IAED,IAAW,OAAO;QAChB,MAAM,EAAE,OAAO,EAAE,SAAS,EAAE,GAAG,IAAI,CAAC;QAEpC,OAAO;YACL,GAAG,OAAO,CAAC,GAAG,CAAC,KAAK,CAAC,EAAE,CAAC,CAAC,KAAK,CAAC,EAAE,EAAE,KAAK,CAAC,KAAK,CAAU,CAAC;YACzD,GAAG,SAAS,KAAK,IAAI,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,EAAE,EAAE,SAAS,CAAC,KAAK,CAAU,CAAU;SACjF,CAAC;IACJ,CAAC;IAEM,QAAQ,CAAC,SAA4B;QAC1C,IAAI,OAAO,SAAS,KAAK,WAAW;YAClC,IAAI,CAAC,SAAS,GAAG,IAAI,IAAI,CACvB,UAAU,EACV,SAAS,CACV,CAAC;QAEJ,OAAO,IAAI,CAAC;IACd,CAAC;CACF"}
|
package/dist/index.d.ts
CHANGED
@@ -1,8 +1,9 @@
|
|
1
|
-
import type
|
2
|
-
import
|
3
|
-
|
1
|
+
import { type Scope } from "./scopes/scopes.js";
|
2
|
+
import type Boundary from "./boundary/boundary.js";
|
3
|
+
import { Ruleset, Rule } from "./factory/factory.js";
|
4
|
+
export type { Scope, Boundary };
|
4
5
|
export { Ruleset, Rule };
|
5
|
-
export default function (plugins: Plugins, parsers: Parsers, base: Record<Scope, string[]>, includes: Particord<Scope, string[]>, rulesets: {
|
6
|
+
export default function (plugins: Boundary.Input.Plugins, parsers: Boundary.Input.Parsers, base: Record<Scope, string[]>, includes: Particord<Scope, string[]>, rulesets: {
|
6
7
|
[S in Scope]: Ruleset<S>;
|
7
|
-
}, overrides: Particord<Scope, IRule>):
|
8
|
+
}, overrides: Particord<Scope, IRule>): Boundary.Output[];
|
8
9
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/index.d.ts.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAe,EAAE,KAAK,KAAK,EAAE,MAAM,oBAAoB,CAAC;AACxD,OAAO,KAAK,QAAQ,MAAM,wBAAwB,CAAC;AACnD,OAAO,EAGL,OAAO,EACP,IAAI,EACL,MAAM,sBAAsB,CAAC;AAE9B,YAAY,EAAE,KAAK,EAAE,QAAQ,EAAE,CAAC;AAChC,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC;AACzB,MAAM,CAAC,OAAO,WACZ,OAAO,EAAE,QAAQ,CAAC,KAAK,CAAC,OAAO,EAC/B,OAAO,EAAE,QAAQ,CAAC,KAAK,CAAC,OAAO,EAC/B,IAAI,EAAE,MAAM,CAAC,KAAK,EAAE,MAAM,EAAE,CAAC,EAC7B,QAAQ,EAAE,SAAS,CAAC,KAAK,EAAE,MAAM,EAAE,CAAC,EACpC,QAAQ,EAAE;KAAG,CAAC,IAAI,KAAK,GAAG,OAAO,CAAC,CAAC,CAAC;CAAE,EACtC,SAAS,EAAE,SAAS,CAAC,KAAK,EAAE,KAAK,CAAC,GACjC,QAAQ,CAAC,MAAM,EAAE,CA0FnB"}
|
package/dist/index.js
CHANGED
@@ -1,5 +1,5 @@
|
|
1
|
-
import scopes from "./
|
2
|
-
import { Options, Files, Ruleset, Rule, } from "./factory/
|
1
|
+
import scopes, {} from "./scopes/scopes.js";
|
2
|
+
import { Options, Files, Ruleset, Rule, } from "./factory/factory.js";
|
3
3
|
export { Ruleset, Rule };
|
4
4
|
export default function (plugins, parsers, base, includes, rulesets, overrides) {
|
5
5
|
try {
|
package/dist/index.js.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,MAAM,MAAM,
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"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"}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"scopes.d.ts","sourceRoot":"","sources":["../../src/scopes/scopes.ts"],"names":[],"mappings":"AAAA,QAAA,MAAM,MAAM,iEAQF,CAAC;AAEX,eAAe,MAAM,CAAC;AACtB,MAAM,MAAM,KAAK,GAAG,OAAO,MAAM,CAAC,MAAM,CAAC,CAAC"}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"scopes.js","sourceRoot":"","sources":["../../src/scopes/scopes.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,GAAG;IACb,IAAI;IACJ,IAAI;IACJ,QAAQ;IACR,MAAM;IACN,MAAM;IACN,OAAO;IACP,KAAK;CACG,CAAC;AAEX,eAAe,MAAM,CAAC"}
|
package/package.json
CHANGED
package/src/boundary/boundary.ts
CHANGED
@@ -1,11 +1,12 @@
|
|
1
|
-
import
|
2
|
-
import type
|
3
|
-
import type IConfig from "./output/output.js";
|
1
|
+
import type input from "./input/input.js";
|
2
|
+
import type output from "./output/output.js";
|
4
3
|
|
5
|
-
|
6
|
-
export
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
}
|
4
|
+
namespace Boundary {
|
5
|
+
export namespace Input {
|
6
|
+
export type Plugins = input.Plugins;
|
7
|
+
export type Parsers = input.Parsers;
|
8
|
+
}
|
9
|
+
export type Output = output;
|
10
|
+
}
|
11
|
+
|
12
|
+
export type { Boundary as default };
|
@@ -1,5 +1,9 @@
|
|
1
|
-
import type
|
2
|
-
import type
|
1
|
+
import type plugins from "./plugins/plugins.js";
|
2
|
+
import type parsers from "./parsers/parsers.js";
|
3
3
|
|
4
|
-
|
5
|
-
export type
|
4
|
+
namespace Input {
|
5
|
+
export type Plugins = plugins;
|
6
|
+
export type Parsers = parsers;
|
7
|
+
}
|
8
|
+
|
9
|
+
export type { Input as default };
|
@@ -1,5 +1,5 @@
|
|
1
|
-
import type { Scope } from "
|
2
|
-
import type { Options } from "../../../factory/
|
1
|
+
import type { Scope } from "../../../scopes/scopes.js";
|
2
|
+
import type { Options } from "../../../factory/factory.js";
|
3
3
|
|
4
4
|
type Parsers = {
|
5
5
|
readonly [S in Scope]: ConstructorParameters<typeof Options[S]>[2] extends readonly [unknown, ...unknown[]]
|
@@ -1,4 +1,5 @@
|
|
1
|
-
import type { Scope
|
1
|
+
import type { Scope } from "../../../scopes/scopes.js";
|
2
|
+
import type { Options } from "../../../factory/factory.js";
|
2
3
|
|
3
4
|
type Plugins = {
|
4
5
|
readonly [S in Scope]: InstanceType<typeof Options[S]>["plugins"];
|
@@ -1,3 +1,3 @@
|
|
1
|
-
import type
|
1
|
+
import type Output from "./config/IConfig.js";
|
2
2
|
|
3
|
-
export type {
|
3
|
+
export type { Output as default };
|
@@ -1,13 +1,10 @@
|
|
1
|
-
import Options from "./options/Options.js";
|
2
|
-
import Files from "./files/Files.js";
|
3
1
|
import Ruleset, { Rule } from "./ruleset/Ruleset.js";
|
4
|
-
import
|
2
|
+
import Files from "./files/Files.js";
|
3
|
+
import Options from "./options/Options.js";
|
5
4
|
|
6
|
-
export type Blanka = ConstructorParameters<typeof Options["js"]>;
|
7
5
|
export {
|
8
6
|
Options,
|
9
7
|
Files,
|
10
8
|
Ruleset,
|
11
9
|
Rule,
|
12
|
-
type Scope,
|
13
10
|
};
|
@@ -1,4 +1,3 @@
|
|
1
|
-
import type { Scope } from "../Factory.js";
|
2
1
|
import JsOption from "./option/js/index.js";
|
3
2
|
import TsOption from "./option/ts/index.js";
|
4
3
|
import SvelteOption from "./option/svelte/index.js";
|
@@ -7,7 +6,6 @@ import JsonOption from "./option/json/index.js";
|
|
7
6
|
import JsoncOption from "./option/jsonc/index.js";
|
8
7
|
import YmlOption from "./option/yml/index.js";
|
9
8
|
|
10
|
-
export type { Scope };
|
11
9
|
export default {
|
12
10
|
js: JsOption,
|
13
11
|
ts: TsOption,
|
@@ -1,6 +1,6 @@
|
|
1
|
-
import type { Scope } from "
|
2
|
-
import type
|
3
|
-
import type {
|
1
|
+
import type { Scope } from "../../../scopes/scopes.js";
|
2
|
+
import type Boundary from "../../../boundary/boundary.js";
|
3
|
+
import type { Ruleset } from "../../factory.js";
|
4
4
|
|
5
5
|
export default abstract class Option<
|
6
6
|
S extends Scope,
|
@@ -26,7 +26,7 @@ export default abstract class Option<
|
|
26
26
|
public readonly parser: Tuple<unknown, ParserCount>,
|
27
27
|
) {}
|
28
28
|
|
29
|
-
public get configs():
|
29
|
+
public get configs(): Boundary.Output[] {
|
30
30
|
const {
|
31
31
|
scope,
|
32
32
|
ruleset,
|
package/src/index.ts
CHANGED
@@ -1,27 +1,22 @@
|
|
1
|
-
import scopes from "./
|
2
|
-
import type
|
3
|
-
Scope,
|
4
|
-
Plugins,
|
5
|
-
Parsers,
|
6
|
-
IConfig,
|
7
|
-
} from "./boundary/boundary.js";
|
1
|
+
import scopes, { type Scope } from "./scopes/scopes.js";
|
2
|
+
import type Boundary from "./boundary/boundary.js";
|
8
3
|
import {
|
9
4
|
Options,
|
10
5
|
Files,
|
11
6
|
Ruleset,
|
12
7
|
Rule,
|
13
|
-
} from "./factory/
|
8
|
+
} from "./factory/factory.js";
|
14
9
|
|
15
|
-
export type { Scope };
|
10
|
+
export type { Scope, Boundary };
|
16
11
|
export { Ruleset, Rule };
|
17
12
|
export default function (
|
18
|
-
plugins: Plugins,
|
19
|
-
parsers: Parsers,
|
13
|
+
plugins: Boundary.Input.Plugins,
|
14
|
+
parsers: Boundary.Input.Parsers,
|
20
15
|
base: Record<Scope, string[]>,
|
21
16
|
includes: Particord<Scope, string[]>,
|
22
17
|
rulesets: { [S in Scope]: Ruleset<S> },
|
23
18
|
overrides: Particord<Scope, IRule>,
|
24
|
-
):
|
19
|
+
): Boundary.Output[] {
|
25
20
|
try {
|
26
21
|
const files = new Files(
|
27
22
|
base,
|
File without changes
|