@eslinted/core 0.8.0 → 0.8.1
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/parsers.d.ts +7 -0
- package/dist/boundary/input/parsers.d.ts.map +1 -0
- package/dist/boundary/input/parsers.js +2 -0
- package/dist/boundary/input/parsers.js.map +1 -0
- package/dist/boundary/input/plugins/plugins.d.ts +2 -1
- package/dist/boundary/input/plugins/plugins.d.ts.map +1 -1
- package/dist/boundary/input/plugins.d.ts +7 -0
- package/dist/boundary/input/plugins.d.ts.map +1 -0
- package/dist/boundary/input/plugins.js +2 -0
- package/dist/boundary/input/plugins.js.map +1 -0
- package/dist/boundary/input.d.ts +8 -0
- package/dist/boundary/input.d.ts.map +1 -0
- package/dist/boundary/input.js +2 -0
- package/dist/boundary/input.js.map +1 -0
- package/dist/boundary/output/IConfig.d.ts +19 -0
- package/dist/boundary/output/IConfig.d.ts.map +1 -0
- package/dist/boundary/output/IConfig.js +2 -0
- package/dist/boundary/output/IConfig.js.map +1 -0
- package/dist/boundary/output/output.d.ts +2 -2
- package/dist/boundary/output/output.d.ts.map +1 -1
- package/dist/boundary/output.d.ts +3 -0
- package/dist/boundary/output.d.ts.map +1 -0
- package/dist/boundary/output.js +2 -0
- package/dist/boundary/output.js.map +1 -0
- package/dist/factory/factory.d.ts +5 -0
- package/dist/factory/factory.d.ts.map +1 -0
- package/dist/factory/{Factory.js → factory.js} +3 -3
- 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/files/Files.js +9 -4
- package/dist/factory/files/Files.js.map +1 -1
- package/dist/factory/options/Options.d.ts +1 -3
- package/dist/factory/options/Options.d.ts.map +1 -1
- package/dist/factory/options/Options.js +1 -1
- package/dist/factory/options/Options.js.map +1 -1
- package/dist/factory/options/option/Option.d.ts +8 -22
- package/dist/factory/options/option/Option.d.ts.map +1 -1
- package/dist/factory/options/option/Option.js +33 -23
- package/dist/factory/options/option/Option.js.map +1 -1
- package/dist/factory/options/option/html/index.d.ts.map +1 -1
- package/dist/factory/options/option/html/index.js +7 -2
- package/dist/factory/options/option/html/index.js.map +1 -1
- package/dist/factory/options/option/js/index.d.ts.map +1 -1
- package/dist/factory/options/option/js/index.js +9 -4
- package/dist/factory/options/option/js/index.js.map +1 -1
- package/dist/factory/options/option/json/index.d.ts.map +1 -1
- package/dist/factory/options/option/json/index.js +7 -2
- package/dist/factory/options/option/json/index.js.map +1 -1
- package/dist/factory/options/option/jsonc/index.d.ts.map +1 -1
- package/dist/factory/options/option/jsonc/index.js +7 -2
- package/dist/factory/options/option/jsonc/index.js.map +1 -1
- package/dist/factory/options/option/svelte/index.d.ts.map +1 -1
- package/dist/factory/options/option/svelte/index.js +16 -11
- package/dist/factory/options/option/svelte/index.js.map +1 -1
- package/dist/factory/options/option/ts/index.d.ts.map +1 -1
- package/dist/factory/options/option/ts/index.js +14 -9
- package/dist/factory/options/option/ts/index.js.map +1 -1
- package/dist/factory/options/option/yml/index.d.ts.map +1 -1
- package/dist/factory/options/option/yml/index.js +7 -2
- package/dist/factory/options/option/yml/index.js.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 +31 -11
- package/dist/factory/ruleset/Ruleset.js.map +1 -1
- package/dist/index.d.ts +7 -5
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +3 -3
- package/dist/index.js.map +1 -1
- package/dist/scopes/scopes.d.ts.map +1 -0
- package/dist/scopes/scopes.js.map +1 -0
- package/package.json +14 -22
- package/src/boundary/input/{parsers/parsers.ts → parsers.ts} +2 -2
- package/src/boundary/input/{plugins/plugins.ts → plugins.ts} +2 -1
- package/src/boundary/input.ts +9 -0
- package/src/boundary/output.ts +3 -0
- package/src/factory/factory.ts +10 -0
- package/src/factory/files/Files.ts +13 -5
- package/src/factory/options/option/Option.ts +71 -51
- package/src/factory/options/option/html/index.ts +10 -2
- package/src/factory/options/option/js/index.ts +12 -4
- package/src/factory/options/option/json/index.ts +10 -2
- package/src/factory/options/option/jsonc/index.ts +10 -2
- package/src/factory/options/option/svelte/index.ts +19 -11
- package/src/factory/options/option/ts/index.ts +17 -9
- package/src/factory/options/option/yml/index.ts +10 -2
- package/src/factory/options/{Options.ts → options.ts} +0 -2
- package/src/factory/ruleset/Ruleset.ts +47 -15
- package/src/index.ts +9 -13
- package/dist/boundary/scopes/scopes.d.ts.map +0 -1
- package/dist/boundary/scopes/scopes.js.map +0 -1
- package/dist/factory/Factory.d.ts +0 -7
- package/dist/factory/Factory.d.ts.map +0 -1
- package/dist/factory/Factory.js.map +0 -1
- package/src/boundary/boundary.ts +0 -11
- package/src/boundary/input/input.ts +0 -5
- package/src/boundary/output/output.ts +0 -3
- package/src/factory/Factory.ts +0 -13
- /package/dist/{boundary/scopes → scopes}/scopes.d.ts +0 -0
- /package/dist/{boundary/scopes → scopes}/scopes.js +0 -0
- /package/src/boundary/output/{config/IConfig.ts → IConfig.ts} +0 -0
- /package/src/boundary/output/{config/interface → interface}/option/IOption.d.ts +0 -0
- /package/src/boundary/output/{config/interface → interface}/option/language/IOLanguage.d.ts +0 -0
- /package/src/boundary/output/{config/interface → interface}/option/language/ecma/IOLanguageEcma.d.ts +0 -0
- /package/src/boundary/output/{config/interface → interface}/option/language/globals/IOLanguageGlobals.d.ts +0 -0
- /package/src/boundary/output/{config/interface → interface}/option/language/source/IOLanguageSource.d.ts +0 -0
- /package/src/boundary/output/{config/interface → interface}/option/linter/IOLinter.d.ts +0 -0
- /package/src/boundary/output/{config/interface → interface}/option/plugins/IOPlugins.d.ts +0 -0
- /package/src/boundary/output/{config/interface → interface}/option/processor/IOProcessor.d.ts +0 -0
- /package/src/boundary/output/{config/interface → interface}/rules/IRule.d.ts +0 -0
- /package/src/boundary/output/{config/interface → interface}/rules/state/RuleSeverity.d.ts +0 -0
- /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"}
|
@@ -0,0 +1,7 @@
|
|
1
|
+
import type { Scope } from "../../scopes/scopes.js";
|
2
|
+
import type { Options } from "../../factory/factory.js";
|
3
|
+
type Parsers = {
|
4
|
+
readonly [S in Scope]: ConstructorParameters<typeof Options[S]>[2] extends readonly [unknown, ...unknown[]] ? unknown : null;
|
5
|
+
};
|
6
|
+
export type { Parsers as default };
|
7
|
+
//# sourceMappingURL=parsers.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"parsers.d.ts","sourceRoot":"","sources":["../../../src/boundary/input/parsers.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,wBAAwB,CAAC;AACpD,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,0BAA0B,CAAC;AAExD,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"}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"parsers.js","sourceRoot":"","sources":["../../../src/boundary/input/parsers.ts"],"names":[],"mappings":""}
|
@@ -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"}
|
@@ -0,0 +1,7 @@
|
|
1
|
+
import type { Scope } from "../../scopes/scopes.js";
|
2
|
+
import type { Options } from "../../factory/factory.js";
|
3
|
+
type Plugins = {
|
4
|
+
readonly [S in Scope]: InstanceType<typeof Options[S]>["plugins"];
|
5
|
+
};
|
6
|
+
export type { Plugins as default };
|
7
|
+
//# sourceMappingURL=plugins.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"plugins.d.ts","sourceRoot":"","sources":["../../../src/boundary/input/plugins.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,wBAAwB,CAAC;AACpD,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,0BAA0B,CAAC;AAExD,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"}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"plugins.js","sourceRoot":"","sources":["../../../src/boundary/input/plugins.ts"],"names":[],"mappings":""}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"input.d.ts","sourceRoot":"","sources":["../../src/boundary/input.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,OAAO,MAAM,oBAAoB,CAAC;AAC9C,OAAO,KAAK,OAAO,MAAM,oBAAoB,CAAC;AAE9C,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"}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"input.js","sourceRoot":"","sources":["../../src/boundary/input.ts"],"names":[],"mappings":""}
|
@@ -0,0 +1,19 @@
|
|
1
|
+
export default interface IConfig {
|
2
|
+
name: `scope:${string}/rule:${string}+${string}`;
|
3
|
+
rules: IRule;
|
4
|
+
files: readonly string[];
|
5
|
+
linterOptions: {
|
6
|
+
noInlineConfig: true;
|
7
|
+
reportUnusedDisableDirectives: "error";
|
8
|
+
};
|
9
|
+
languageOptions: {
|
10
|
+
sourceType?: "module" | "script";
|
11
|
+
ecmaVersion?: "latest";
|
12
|
+
globals?: Record<string, true>;
|
13
|
+
parser?: unknown;
|
14
|
+
parserOptions?: Record<string, unknown>;
|
15
|
+
};
|
16
|
+
plugins: Record<string, Record<"configs", unknown>>;
|
17
|
+
processor?: string;
|
18
|
+
}
|
19
|
+
//# sourceMappingURL=IConfig.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"IConfig.d.ts","sourceRoot":"","sources":["../../../src/boundary/output/IConfig.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,OAAO,WAAW,OAAO;IAC9B,IAAI,EAAE,SAAS,MAAM,SAAS,MAAM,IAAI,MAAM,EAAE,CAAC;IACjD,KAAK,EAAE,KAAK,CAAC;IACb,KAAK,EAAE,SAAS,MAAM,EAAE,CAAC;IACzB,aAAa,EAAE;QACb,cAAc,EAAE,IAAI,CAAC;QACrB,6BAA6B,EAAE,OAAO,CAAC;KACxC,CAAC;IACF,eAAe,EAAE;QACf,UAAU,CAAC,EACP,QAAQ,GACR,QAAQ,CAAC;QACb,WAAW,CAAC,EAAE,QAAQ,CAAC;QACvB,OAAO,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,IAAI,CAAC,CAAC;QAC/B,MAAM,CAAC,EAAE,OAAO,CAAC;QACjB,aAAa,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;KACzC,CAAC;IACF,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,SAAS,EAAE,OAAO,CAAC,CAAC,CAAC;IACpD,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB"}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"IConfig.js","sourceRoot":"","sources":["../../../src/boundary/output/IConfig.ts"],"names":[],"mappings":""}
|
@@ -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"}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"output.d.ts","sourceRoot":"","sources":["../../src/boundary/output.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,MAAM,qBAAqB,CAAC;AAE9C,YAAY,EAAE,MAAM,IAAI,OAAO,EAAE,CAAC"}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"output.js","sourceRoot":"","sources":["../../src/boundary/output.ts"],"names":[],"mappings":""}
|
@@ -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"}
|
@@ -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
|
@@ -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;CAc9C"}
|
@@ -6,10 +6,15 @@ export default class Files {
|
|
6
6
|
this.includes = includes;
|
7
7
|
}
|
8
8
|
files(scope) {
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
9
|
+
try {
|
10
|
+
return [
|
11
|
+
...this.base[scope],
|
12
|
+
...this.includes[scope] ?? [],
|
13
|
+
];
|
14
|
+
}
|
15
|
+
catch (e) {
|
16
|
+
throw new Error(`linted.factory.Files/scope:${scope}`, { cause: e });
|
17
|
+
}
|
13
18
|
}
|
14
19
|
}
|
15
20
|
//# sourceMappingURL=Files.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"Files.js","sourceRoot":"","sources":["../../../src/factory/files/Files.ts"],"names":[],"mappings":"AAEA,MAAM,CAAC,OAAO,OAAO,KAAK;IAEL;IACA;IAFnB,YACmB,IAA6B,EAC7B,QAAoC;QADpC,SAAI,GAAJ,IAAI,CAAyB;QAC7B,aAAQ,GAAR,QAAQ,CAA4B;IACpD,CAAC;IAEG,KAAK,CAAC,KAAY;QACvB,OAAO;
|
1
|
+
{"version":3,"file":"Files.js","sourceRoot":"","sources":["../../../src/factory/files/Files.ts"],"names":[],"mappings":"AAEA,MAAM,CAAC,OAAO,OAAO,KAAK;IAEL;IACA;IAFnB,YACmB,IAA6B,EAC7B,QAAoC;QADpC,SAAI,GAAJ,IAAI,CAAyB;QAC7B,aAAQ,GAAR,QAAQ,CAA4B;IACpD,CAAC;IAEG,KAAK,CAAC,KAAY;QACvB,IAAI,CAAC;YACH,OAAO;gBACL,GAAG,IAAI,CAAC,IAAI,CAAC,KAAK,CAAC;gBACnB,GAAG,IAAI,CAAC,QAAQ,CAAC,KAAK,CAAC,IAAI,EAAE;aAC9B,CAAC;QACJ,CAAC;QACD,OAAO,CAAC,EAAE,CAAC;YACT,MAAM,IAAI,KAAK,CACb,8BAA8B,KAAK,EAAE,EACrC,EAAE,KAAK,EAAE,CAAC,EAAE,CACb,CAAC;QACJ,CAAC;IACH,CAAC;CACF"}
|
@@ -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;
|
@@ -17,4 +15,4 @@ declare const _default: {
|
|
17
15
|
readonly yml: typeof YmlOption;
|
18
16
|
};
|
19
17
|
export default _default;
|
20
|
-
//# sourceMappingURL=
|
18
|
+
//# sourceMappingURL=options.d.ts.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"
|
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":"
|
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,31 +1,17 @@
|
|
1
|
-
import type { Scope } from "
|
2
|
-
import type { Ruleset } from "../../
|
3
|
-
import type
|
1
|
+
import type { Scope } from "../../../scopes/scopes.js";
|
2
|
+
import type { Ruleset } from "../../factory.js";
|
3
|
+
import type Output from "../../../boundary/output.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>;
|
7
7
|
readonly plugins: IOPlugins<PluginId>;
|
8
8
|
readonly parser: Tuple<unknown, ParserCount>;
|
9
|
-
readonly linterOptions
|
10
|
-
readonly noInlineConfig: true;
|
11
|
-
readonly reportUnusedDisableDirectives: "error";
|
12
|
-
};
|
9
|
+
private readonly linterOptions;
|
13
10
|
abstract readonly scope: literalful<S>;
|
14
|
-
abstract readonly processor:
|
15
|
-
"interface": string;
|
16
|
-
} ? Interface<Processor> : object);
|
11
|
+
abstract readonly processor: Interface<Processor> extends never ? object : Interface<Processor> extends Readonly<Record<"processor", string>> ? Interface<Processor> : object;
|
17
12
|
constructor(files: readonly string[], ruleset: Ruleset<S>, plugins: IOPlugins<PluginId>, parser: Tuple<unknown, ParserCount>);
|
18
|
-
get configs():
|
19
|
-
get option()
|
20
|
-
|
21
|
-
readonly noInlineConfig: true;
|
22
|
-
readonly reportUnusedDisableDirectives: "error";
|
23
|
-
};
|
24
|
-
languageOptions: IOLanguage<IsEcma, ParserOptions, GlobalTypes>;
|
25
|
-
plugins: IOPlugins<PluginId>;
|
26
|
-
} & (Interface<Processor> extends never ? object : Interface<Processor> extends {
|
27
|
-
interface: string;
|
28
|
-
} ? Interface<Processor> : object);
|
29
|
-
abstract get languageOptions(): IOLanguage<IsEcma, ParserOptions, GlobalTypes>;
|
13
|
+
get configs(): Output[];
|
14
|
+
private get option();
|
15
|
+
protected abstract get languageOptions(): IOLanguage<IsEcma, ParserOptions, GlobalTypes>;
|
30
16
|
}
|
31
17
|
//# sourceMappingURL=Option.d.ts.map
|
@@ -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,EAAE,OAAO,EAAE,MAAM,kBAAkB,CAAC;AAChD,OAAO,KAAK,MAAM,MAAM,6BAA6B,CAAC;AAEtD,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;aAed,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;IAhBrD,OAAO,CAAC,QAAQ,CAAC,aAAa,CAGnB;IAEX,kBAAyB,KAAK,EAAE,UAAU,CAAC,CAAC,CAAC,CAAC;IAC9C,kBAAyB,SAAS,EAAE,SAAS,CAAC,SAAS,CAAC,SAAS,KAAK,GAClE,MAAM,GACN,SAAS,CAAC,SAAS,CAAC,SAAS,QAAQ,CAAC,MAAM,CAAC,WAAW,EAAE,MAAM,CAAC,CAAC,GAChE,SAAS,CAAC,SAAS,CAAC,GACpB,MAAM,CAAC;gBAGK,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,MAAM,EAAE,CAuC7B;IAED,OAAO,KAAK,MAAM,GA4BjB;IAED,SAAS,CAAC,QAAQ,KAAK,eAAe,IAAI,UAAU,CAClD,MAAM,EACN,aAAa,EACb,WAAW,CACZ,CAAC;CACH"}
|
@@ -14,32 +14,42 @@ export default class Option {
|
|
14
14
|
this.parser = parser;
|
15
15
|
}
|
16
16
|
get configs() {
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
17
|
+
try {
|
18
|
+
const { scope, ruleset, files, option, } = this;
|
19
|
+
if (ruleset.id !== scope)
|
20
|
+
throw new TypeError(`Option and Ruleset scope mismatch`, { cause: { option: scope, ruleset: ruleset.id } });
|
21
|
+
else if (files.length < 1)
|
22
|
+
return [];
|
23
|
+
else {
|
24
|
+
const baseName = `scope:${scope}/rule:${ruleset.id}`;
|
25
|
+
return ruleset.records.map(([ruleId, rules]) => {
|
26
|
+
const name = `${baseName}+${ruleId}`;
|
27
|
+
return {
|
28
|
+
name,
|
29
|
+
files,
|
30
|
+
rules,
|
31
|
+
...option,
|
32
|
+
};
|
33
|
+
});
|
34
|
+
}
|
35
|
+
}
|
36
|
+
catch (e) {
|
37
|
+
throw new Error(`linted.factory.Option/scope:${this.scope}: configs`, { cause: e });
|
33
38
|
}
|
34
39
|
}
|
35
40
|
get option() {
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
41
|
+
try {
|
42
|
+
const { plugins, linterOptions, languageOptions, processor, } = this;
|
43
|
+
return {
|
44
|
+
linterOptions,
|
45
|
+
languageOptions,
|
46
|
+
plugins,
|
47
|
+
...processor,
|
48
|
+
};
|
49
|
+
}
|
50
|
+
catch (e) {
|
51
|
+
throw new Error(`linted.factory.Option/scope:${this.scope}: option`, { cause: e });
|
52
|
+
}
|
43
53
|
}
|
44
54
|
}
|
45
55
|
//# sourceMappingURL=Option.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"Option.js","sourceRoot":"","sources":["../../../../src/factory/options/option/Option.ts"],"names":[],"mappings":"AAIA,MAAM,CAAC,OAAO,OAAgB,MAAM;
|
1
|
+
{"version":3,"file":"Option.js","sourceRoot":"","sources":["../../../../src/factory/options/option/Option.ts"],"names":[],"mappings":"AAIA,MAAM,CAAC,OAAO,OAAgB,MAAM;IAsBhB;IACA;IACA;IACA;IAhBD,aAAa,GAAG;QAC/B,cAAc,EAAE,IAAI;QACpB,6BAA6B,EAAE,OAAO;KAC9B,CAAC;IASX,YACkB,KAAwB,EACxB,OAAmB,EACnB,OAA4B,EAC5B,MAAmC;QAHnC,UAAK,GAAL,KAAK,CAAmB;QACxB,YAAO,GAAP,OAAO,CAAY;QACnB,YAAO,GAAP,OAAO,CAAqB;QAC5B,WAAM,GAAN,MAAM,CAA6B;IAClD,CAAC;IAEJ,IAAW,OAAO;QAChB,IAAI,CAAC;YACH,MAAM,EACJ,KAAK,EACL,OAAO,EACP,KAAK,EACL,MAAM,GACP,GAAG,IAAI,CAAC;YAET,IAAI,OAAO,CAAC,EAAE,KAAK,KAAK;gBACtB,MAAM,IAAI,SAAS,CACjB,mCAAmC,EACnC,EAAE,KAAK,EAAE,EAAE,MAAM,EAAE,KAAK,EAAE,OAAO,EAAE,OAAO,CAAC,EAAE,EAAE,EAAE,CAClD,CAAC;iBACC,IAAI,KAAK,CAAC,MAAM,GAAG,CAAC;gBACvB,OAAO,EAAE,CAAC;iBACP,CAAC;gBACJ,MAAM,QAAQ,GAAG,SAAS,KAAK,SAAS,OAAO,CAAC,EAAE,EAAW,CAAC;gBAE9D,OAAO,OAAO,CAAC,OAAO,CAAC,GAAG,CACxB,CAAC,CAAC,MAAM,EAAE,KAAK,CAAC,EAAE,EAAE;oBAClB,MAAM,IAAI,GAAG,GAAG,QAAQ,IAAI,MAAM,EAAW,CAAC;oBAE9C,OAAO;wBACL,IAAI;wBACJ,KAAK;wBACL,KAAK;wBACL,GAAG,MAAM;qBACV,CAAC;gBACJ,CAAC,CACF,CAAC;YACJ,CAAC;QACH,CAAC;QACD,OAAO,CAAC,EAAE,CAAC;YACT,MAAM,IAAI,KAAK,CACb,+BAA+B,IAAI,CAAC,KAAK,WAAW,EACpD,EAAE,KAAK,EAAE,CAAC,EAAE,CACb,CAAC;QACJ,CAAC;IACH,CAAC;IAED,IAAY,MAAM;QAChB,IAAI,CAAC;YACH,MAAM,EACJ,OAAO,EACP,aAAa,EACb,eAAe,EACf,SAAS,GACV,GAAG,IAAI,CAAC;YAET,OAAO;gBACL,aAAa;gBACb,eAAe;gBACf,OAAO;gBACP,GAAG,SAAS;aAOb,CAAC;QACJ,CAAC;QACD,OAAO,CAAC,EAAE,CAAC;YACT,MAAM,IAAI,KAAK,CACb,+BAA+B,IAAI,CAAC,KAAK,UAAU,EACnD,EAAE,KAAK,EAAE,CAAC,EAAE,CACb,CAAC;QACJ,CAAC;IACH,CAAC;CAOF"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/factory/options/option/html/index.ts"],"names":[],"mappings":"AAAA,OAAO,MAAM,MAAM,cAAc,CAAC;AAElC,MAAM,CAAC,OAAO,OAAO,UAAW,SAAQ,MAAM,CAC5C,MAAM,EACN,cAAc,EACd,KAAK,EACL,IAAI,EACJ,CAAC,CACF;IACC,SAAgB,KAAK,UAAU;IAC/B,SAAgB,SAAS,KAAe;IAExC,IAAW,eAAe;;
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/factory/options/option/html/index.ts"],"names":[],"mappings":"AAAA,OAAO,MAAM,MAAM,cAAc,CAAC;AAElC,MAAM,CAAC,OAAO,OAAO,UAAW,SAAQ,MAAM,CAC5C,MAAM,EACN,cAAc,EACd,KAAK,EACL,IAAI,EACJ,CAAC,CACF;IACC,SAAgB,KAAK,UAAU;IAC/B,SAAgB,SAAS,KAAe;IAExC,IAAW,eAAe;;MAYzB;CACF"}
|
@@ -3,8 +3,13 @@ export default class HtmlOption extends Option {
|
|
3
3
|
scope = "html";
|
4
4
|
processor = {};
|
5
5
|
get languageOptions() {
|
6
|
-
|
7
|
-
|
6
|
+
try {
|
7
|
+
const [parser] = this.parser;
|
8
|
+
return { parser };
|
9
|
+
}
|
10
|
+
catch (e) {
|
11
|
+
throw new Error(`linted.factory.options.html: languageOptions`, { cause: e });
|
12
|
+
}
|
8
13
|
}
|
9
14
|
}
|
10
15
|
//# sourceMappingURL=index.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/factory/options/option/html/index.ts"],"names":[],"mappings":"AAAA,OAAO,MAAM,MAAM,cAAc,CAAC;AAElC,MAAM,CAAC,OAAO,OAAO,UAAW,SAAQ,MAMvC;IACiB,KAAK,GAAG,MAAM,CAAC;IACf,SAAS,GAAG,EAAW,CAAC;IAExC,IAAW,eAAe;QACxB,MAAM,CAAC,MAAM,CAAC,GAAG,IAAI,CAAC,MAAM,CAAC;
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/factory/options/option/html/index.ts"],"names":[],"mappings":"AAAA,OAAO,MAAM,MAAM,cAAc,CAAC;AAElC,MAAM,CAAC,OAAO,OAAO,UAAW,SAAQ,MAMvC;IACiB,KAAK,GAAG,MAAM,CAAC;IACf,SAAS,GAAG,EAAW,CAAC;IAExC,IAAW,eAAe;QACxB,IAAI,CAAC;YACH,MAAM,CAAC,MAAM,CAAC,GAAG,IAAI,CAAC,MAAM,CAAC;YAE7B,OAAO,EAAE,MAAM,EAAW,CAAC;QAC7B,CAAC;QACD,OAAO,CAAC,EAAE,CAAC;YACT,MAAM,IAAI,KAAK,CACb,8CAA8C,EAC9C,EAAE,KAAK,EAAE,CAAC,EAAE,CACb,CAAC;QACJ,CAAC;IACH,CAAC;CACF"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/factory/options/option/js/index.ts"],"names":[],"mappings":"AAAA,OAAO,MAAM,MAAM,cAAc,CAAC;AAElC,MAAM,CAAC,OAAO,OAAO,QAAS,SAAQ,MAAM,CAAC,IAAI,EAAE,YAAY,CAAC;IAC9D,SAAgB,KAAK,QAAQ;IAC7B,SAAgB,SAAS,KAAM;IAE/B,IAAW,eAAe;;;
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/factory/options/option/js/index.ts"],"names":[],"mappings":"AAAA,OAAO,MAAM,MAAM,cAAc,CAAC;AAElC,MAAM,CAAC,OAAO,OAAO,QAAS,SAAQ,MAAM,CAAC,IAAI,EAAE,YAAY,CAAC;IAC9D,SAAgB,KAAK,QAAQ;IAC7B,SAAgB,SAAS,KAAM;IAE/B,IAAW,eAAe;;;MAazB;CACF"}
|
@@ -3,10 +3,15 @@ export default class JsOption extends Option {
|
|
3
3
|
scope = "js";
|
4
4
|
processor = {};
|
5
5
|
get languageOptions() {
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
6
|
+
try {
|
7
|
+
return {
|
8
|
+
ecmaVersion: "latest",
|
9
|
+
sourceType: "module",
|
10
|
+
};
|
11
|
+
}
|
12
|
+
catch (e) {
|
13
|
+
throw new Error(`linted.factory.options.js: languageOptions`, { cause: e });
|
14
|
+
}
|
10
15
|
}
|
11
16
|
}
|
12
17
|
//# sourceMappingURL=index.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/factory/options/option/js/index.ts"],"names":[],"mappings":"AAAA,OAAO,MAAM,MAAM,cAAc,CAAC;AAElC,MAAM,CAAC,OAAO,OAAO,QAAS,SAAQ,MAA0B;IAC9C,KAAK,GAAG,IAAI,CAAC;IACb,SAAS,GAAG,EAAE,CAAC;IAE/B,IAAW,eAAe;QACxB,OAAO;
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/factory/options/option/js/index.ts"],"names":[],"mappings":"AAAA,OAAO,MAAM,MAAM,cAAc,CAAC;AAElC,MAAM,CAAC,OAAO,OAAO,QAAS,SAAQ,MAA0B;IAC9C,KAAK,GAAG,IAAI,CAAC;IACb,SAAS,GAAG,EAAE,CAAC;IAE/B,IAAW,eAAe;QACxB,IAAI,CAAC;YACH,OAAO;gBACL,WAAW,EAAE,QAAQ;gBACrB,UAAU,EAAE,QAAQ;aACZ,CAAC;QACb,CAAC;QACD,OAAO,CAAC,EAAE,CAAC;YACT,MAAM,IAAI,KAAK,CACb,4CAA4C,EAC5C,EAAE,KAAK,EAAE,CAAC,EAAE,CACb,CAAC;QACJ,CAAC;IACH,CAAC;CACF"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/factory/options/option/json/index.ts"],"names":[],"mappings":"AAAA,OAAO,MAAM,MAAM,cAAc,CAAC;AAElC,MAAM,CAAC,OAAO,OAAO,UAAW,SAAQ,MAAM,CAC5C,MAAM,EACN,OAAO,EACP,KAAK,EACL,IAAI,EACJ,CAAC,CACF;IACC,SAAgB,KAAK,UAAU;IAC/B,SAAgB,SAAS,KAAe;IAExC,IAAW,eAAe;;
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/factory/options/option/json/index.ts"],"names":[],"mappings":"AAAA,OAAO,MAAM,MAAM,cAAc,CAAC;AAElC,MAAM,CAAC,OAAO,OAAO,UAAW,SAAQ,MAAM,CAC5C,MAAM,EACN,OAAO,EACP,KAAK,EACL,IAAI,EACJ,CAAC,CACF;IACC,SAAgB,KAAK,UAAU;IAC/B,SAAgB,SAAS,KAAe;IAExC,IAAW,eAAe;;MAYzB;CACF"}
|
@@ -3,8 +3,13 @@ export default class JsonOption extends Option {
|
|
3
3
|
scope = "json";
|
4
4
|
processor = {};
|
5
5
|
get languageOptions() {
|
6
|
-
|
7
|
-
|
6
|
+
try {
|
7
|
+
const [parser] = this.parser;
|
8
|
+
return { parser };
|
9
|
+
}
|
10
|
+
catch (e) {
|
11
|
+
throw new Error(`linted.factory.options.json: languageOptions`, { cause: e });
|
12
|
+
}
|
8
13
|
}
|
9
14
|
}
|
10
15
|
//# sourceMappingURL=index.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/factory/options/option/json/index.ts"],"names":[],"mappings":"AAAA,OAAO,MAAM,MAAM,cAAc,CAAC;AAElC,MAAM,CAAC,OAAO,OAAO,UAAW,SAAQ,MAMvC;IACiB,KAAK,GAAG,MAAM,CAAC;IACf,SAAS,GAAG,EAAW,CAAC;IAExC,IAAW,eAAe;QACxB,MAAM,CAAC,MAAM,CAAC,GAAG,IAAI,CAAC,MAAM,CAAC;
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/factory/options/option/json/index.ts"],"names":[],"mappings":"AAAA,OAAO,MAAM,MAAM,cAAc,CAAC;AAElC,MAAM,CAAC,OAAO,OAAO,UAAW,SAAQ,MAMvC;IACiB,KAAK,GAAG,MAAM,CAAC;IACf,SAAS,GAAG,EAAW,CAAC;IAExC,IAAW,eAAe;QACxB,IAAI,CAAC;YACH,MAAM,CAAC,MAAM,CAAC,GAAG,IAAI,CAAC,MAAM,CAAC;YAE7B,OAAO,EAAE,MAAM,EAAW,CAAC;QAC7B,CAAC;QACD,OAAO,CAAC,EAAE,CAAC;YACT,MAAM,IAAI,KAAK,CACb,8CAA8C,EAC9C,EAAE,KAAK,EAAE,CAAC,EAAE,CACb,CAAC;QACJ,CAAC;IACH,CAAC;CACF"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/factory/options/option/jsonc/index.ts"],"names":[],"mappings":"AAAA,OAAO,MAAM,MAAM,cAAc,CAAC;AAElC,MAAM,CAAC,OAAO,OAAO,WAAY,SAAQ,MAAM,CAC7C,OAAO,EACP,OAAO,EACP,KAAK,EACL,IAAI,EACJ,CAAC,CACF;IACC,SAAgB,KAAK,WAAW;IAChC,SAAgB,SAAS,KAAe;IAExC,IAAW,eAAe;;
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/factory/options/option/jsonc/index.ts"],"names":[],"mappings":"AAAA,OAAO,MAAM,MAAM,cAAc,CAAC;AAElC,MAAM,CAAC,OAAO,OAAO,WAAY,SAAQ,MAAM,CAC7C,OAAO,EACP,OAAO,EACP,KAAK,EACL,IAAI,EACJ,CAAC,CACF;IACC,SAAgB,KAAK,WAAW;IAChC,SAAgB,SAAS,KAAe;IAExC,IAAW,eAAe;;MAYzB;CACF"}
|
@@ -3,8 +3,13 @@ export default class JsoncOption extends Option {
|
|
3
3
|
scope = "jsonc";
|
4
4
|
processor = {};
|
5
5
|
get languageOptions() {
|
6
|
-
|
7
|
-
|
6
|
+
try {
|
7
|
+
const [parser] = this.parser;
|
8
|
+
return { parser };
|
9
|
+
}
|
10
|
+
catch (e) {
|
11
|
+
throw new Error(`linted.factory.options.jsonc: languageOptions`, { cause: e });
|
12
|
+
}
|
8
13
|
}
|
9
14
|
}
|
10
15
|
//# sourceMappingURL=index.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/factory/options/option/jsonc/index.ts"],"names":[],"mappings":"AAAA,OAAO,MAAM,MAAM,cAAc,CAAC;AAElC,MAAM,CAAC,OAAO,OAAO,WAAY,SAAQ,MAMxC;IACiB,KAAK,GAAG,OAAO,CAAC;IAChB,SAAS,GAAG,EAAW,CAAC;IAExC,IAAW,eAAe;QACxB,MAAM,CAAC,MAAM,CAAC,GAAG,IAAI,CAAC,MAAM,CAAC;
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/factory/options/option/jsonc/index.ts"],"names":[],"mappings":"AAAA,OAAO,MAAM,MAAM,cAAc,CAAC;AAElC,MAAM,CAAC,OAAO,OAAO,WAAY,SAAQ,MAMxC;IACiB,KAAK,GAAG,OAAO,CAAC;IAChB,SAAS,GAAG,EAAW,CAAC;IAExC,IAAW,eAAe;QACxB,IAAI,CAAC;YACH,MAAM,CAAC,MAAM,CAAC,GAAG,IAAI,CAAC,MAAM,CAAC;YAE7B,OAAO,EAAE,MAAM,EAAW,CAAC;QAC7B,CAAC;QACD,OAAO,CAAC,EAAE,CAAC;YACT,MAAM,IAAI,KAAK,CACb,+CAA+C,EAC/C,EAAE,KAAK,EAAE,CAAC,EAAE,CACb,CAAC;QACJ,CAAC;IACH,CAAC;CACF"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/factory/options/option/svelte/index.ts"],"names":[],"mappings":"AAAA,OAAO,MAAM,MAAM,cAAc,CAAC;AAClC,OAAO,KAAK,QAAQ,MAAM,gBAAgB,CAAC;AAE3C,MAAM,CAAC,OAAO,OAAO,YAAa,SAAQ,MAAM,CAC9C,QAAQ,EACR,QAAQ,GAAG,MAAM,QAAQ,CAAC,QAAQ,CAAC,CAAC,SAAS,CAAC,EAC9C,IAAI,EACF,QAAQ,CAAC,QAAQ,CAAC,CAAC,iBAAiB,CAAC,CAAC,eAAe,CAAC,GACtD;IAAE,MAAM,EAAE,OAAO,CAAA;CAAE,GACnB;IAAE,mBAAmB,EAAE,SAAS,CAAC,SAAS,CAAC,CAAA;CAAE,EAC/C,CAAC,EACD,KAAK,EACL;IAAE,SAAS,EAAE,eAAe,CAAA;CAAE,CAC/B;IACC,SAAgB,KAAK,YAAY;IACjC,SAAgB,SAAS;;MAA2C;IAEpE,IAAW,eAAe;;;;;;;;;;;
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/factory/options/option/svelte/index.ts"],"names":[],"mappings":"AAAA,OAAO,MAAM,MAAM,cAAc,CAAC;AAClC,OAAO,KAAK,QAAQ,MAAM,gBAAgB,CAAC;AAE3C,MAAM,CAAC,OAAO,OAAO,YAAa,SAAQ,MAAM,CAC9C,QAAQ,EACR,QAAQ,GAAG,MAAM,QAAQ,CAAC,QAAQ,CAAC,CAAC,SAAS,CAAC,EAC9C,IAAI,EACF,QAAQ,CAAC,QAAQ,CAAC,CAAC,iBAAiB,CAAC,CAAC,eAAe,CAAC,GACtD;IAAE,MAAM,EAAE,OAAO,CAAA;CAAE,GACnB;IAAE,mBAAmB,EAAE,SAAS,CAAC,SAAS,CAAC,CAAA;CAAE,EAC/C,CAAC,EACD,KAAK,EACL;IAAE,SAAS,EAAE,eAAe,CAAA;CAAE,CAC/B;IACC,SAAgB,KAAK,YAAY;IACjC,SAAgB,SAAS;;MAA2C;IAEpE,IAAW,eAAe;;;;;;;;;;;MAuBzB;CACF"}
|