@eslinted/core 0.8.1 → 0.9.0-rc.2
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/boundary/boundary.d.ts +5 -10
- package/dist/boundary/boundary.d.ts.map +1 -1
- package/dist/boundary/boundary.js +2 -1
- package/dist/boundary/boundary.js.map +1 -1
- package/dist/boundary/input/input.d.ts +4 -7
- 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 +1 -2
- 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/boundary/scopes/scopes.d.ts.map +1 -0
- package/dist/boundary/scopes/scopes.js.map +1 -0
- package/dist/factory/Factory.d.ts +7 -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 +4 -9
- package/dist/factory/files/Files.js.map +1 -1
- package/dist/factory/options/Options.d.ts +3 -1
- 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 +22 -8
- package/dist/factory/options/option/Option.d.ts.map +1 -1
- package/dist/factory/options/option/Option.js +23 -33
- 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 +2 -7
- 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 +4 -9
- 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 +2 -7
- 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 +2 -7
- 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 +11 -16
- 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 +9 -14
- 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 +2 -7
- 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 +11 -31
- package/dist/factory/ruleset/Ruleset.js.map +1 -1
- package/dist/index.d.ts +5 -7
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +3 -3
- package/dist/index.js.map +1 -1
- package/package.json +2 -2
- package/src/boundary/boundary.ts +11 -0
- package/src/boundary/input/input.ts +5 -0
- package/src/boundary/input/{parsers.ts → parsers/parsers.ts} +2 -2
- package/src/boundary/input/{plugins.ts → plugins/plugins.ts} +1 -2
- package/src/boundary/output/output.ts +3 -0
- package/src/factory/Factory.ts +13 -0
- package/src/factory/files/Files.ts +5 -13
- package/src/factory/options/{options.ts → Options.ts} +2 -0
- package/src/factory/options/option/Option.ts +51 -71
- package/src/factory/options/option/html/index.ts +2 -10
- package/src/factory/options/option/js/index.ts +4 -12
- package/src/factory/options/option/json/index.ts +2 -10
- package/src/factory/options/option/jsonc/index.ts +2 -10
- package/src/factory/options/option/svelte/index.ts +11 -19
- package/src/factory/options/option/ts/index.ts +9 -17
- package/src/factory/options/option/yml/index.ts +2 -10
- package/src/factory/ruleset/Ruleset.ts +15 -47
- package/src/index.ts +13 -9
- package/dist/boundary/input/parsers.d.ts +0 -7
- package/dist/boundary/input/parsers.d.ts.map +0 -1
- package/dist/boundary/input/parsers.js +0 -2
- package/dist/boundary/input/parsers.js.map +0 -1
- package/dist/boundary/input/plugins.d.ts +0 -7
- package/dist/boundary/input/plugins.d.ts.map +0 -1
- package/dist/boundary/input/plugins.js +0 -2
- package/dist/boundary/input/plugins.js.map +0 -1
- package/dist/boundary/input.d.ts +0 -8
- package/dist/boundary/input.d.ts.map +0 -1
- package/dist/boundary/input.js +0 -2
- package/dist/boundary/input.js.map +0 -1
- package/dist/boundary/output/IConfig.d.ts +0 -19
- package/dist/boundary/output/IConfig.d.ts.map +0 -1
- package/dist/boundary/output/IConfig.js +0 -2
- package/dist/boundary/output/IConfig.js.map +0 -1
- package/dist/boundary/output.d.ts +0 -3
- package/dist/boundary/output.d.ts.map +0 -1
- package/dist/boundary/output.js +0 -2
- package/dist/boundary/output.js.map +0 -1
- package/dist/factory/factory.d.ts +0 -5
- package/dist/factory/factory.d.ts.map +0 -1
- package/dist/factory/factory.js.map +0 -1
- package/dist/scopes/scopes.d.ts.map +0 -1
- package/dist/scopes/scopes.js.map +0 -1
- package/src/boundary/input.ts +0 -9
- package/src/boundary/output.ts +0 -3
- package/src/factory/factory.ts +0 -10
- /package/dist/{scopes → boundary/scopes}/scopes.d.ts +0 -0
- /package/dist/{scopes → boundary/scopes}/scopes.js +0 -0
- /package/src/boundary/output/{IConfig.ts → config/IConfig.ts} +0 -0
- /package/src/boundary/output/{interface → config/interface}/option/IOption.d.ts +0 -0
- /package/src/boundary/output/{interface → config/interface}/option/language/IOLanguage.d.ts +0 -0
- /package/src/boundary/output/{interface → config/interface}/option/language/ecma/IOLanguageEcma.d.ts +0 -0
- /package/src/boundary/output/{interface → config/interface}/option/language/globals/IOLanguageGlobals.d.ts +0 -0
- /package/src/boundary/output/{interface → config/interface}/option/language/source/IOLanguageSource.d.ts +0 -0
- /package/src/boundary/output/{interface → config/interface}/option/linter/IOLinter.d.ts +0 -0
- /package/src/boundary/output/{interface → config/interface}/option/plugins/IOPlugins.d.ts +0 -0
- /package/src/boundary/output/{interface → config/interface}/option/processor/IOProcessor.d.ts +0 -0
- /package/src/boundary/output/{interface → config/interface}/rules/IRule.d.ts +0 -0
- /package/src/boundary/output/{interface → config/interface}/rules/state/RuleSeverity.d.ts +0 -0
- /package/src/{scopes → boundary/scopes}/scopes.ts +0 -0
@@ -1,11 +1,6 @@
|
|
1
|
-
import type
|
2
|
-
import type
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
type Parsers = input.Parsers;
|
7
|
-
}
|
8
|
-
type Output = output;
|
9
|
-
}
|
10
|
-
export type { Boundary as default };
|
1
|
+
import scopes, { type Scope } from "./scopes/scopes.js";
|
2
|
+
import type { Plugins, Parsers } from "./input/input.js";
|
3
|
+
import type IConfig from "./output/output.js";
|
4
|
+
export default scopes;
|
5
|
+
export type { Scope, Plugins, Parsers, IConfig, };
|
11
6
|
//# sourceMappingURL=boundary.d.ts.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"boundary.d.ts","sourceRoot":"","sources":["../../src/boundary/boundary.ts"],"names":[],"mappings":"AAAA,OAAO,
|
1
|
+
{"version":3,"file":"boundary.d.ts","sourceRoot":"","sources":["../../src/boundary/boundary.ts"],"names":[],"mappings":"AAAA,OAAO,MAAM,EAAE,EAAE,KAAK,KAAK,EAAE,MAAM,oBAAoB,CAAC;AACxD,OAAO,KAAK,EAAE,OAAO,EAAE,OAAO,EAAE,MAAM,kBAAkB,CAAC;AACzD,OAAO,KAAK,OAAO,MAAM,oBAAoB,CAAC;AAE9C,eAAe,MAAM,CAAC;AACtB,YAAY,EACV,KAAK,EACL,OAAO,EACP,OAAO,EACP,OAAO,GACR,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":"AAAA,OAAO,MAAM,EAAE,EAAc,MAAM,oBAAoB,CAAC;AAIxD,eAAe,MAAM,CAAC"}
|
@@ -1,8 +1,5 @@
|
|
1
|
-
import type
|
2
|
-
import type
|
3
|
-
|
4
|
-
|
5
|
-
type Parsers = parsers;
|
6
|
-
}
|
7
|
-
export type { Input as default };
|
1
|
+
import type Plugins from "./plugins/plugins.js";
|
2
|
+
import type Parsers from "./parsers/parsers.js";
|
3
|
+
export type { Plugins, Parsers };
|
4
|
+
export type { Scope } from "../boundary.js";
|
8
5
|
//# 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,YAAY,EAAE,OAAO,EAAE,OAAO,EAAE,CAAC;AACjC,YAAY,EAAE,KAAK,EAAE,MAAM,gBAAgB,CAAC"}
|
@@ -1,5 +1,5 @@
|
|
1
|
-
import type { Scope } from "
|
2
|
-
import type { Options } from "../../../factory/
|
1
|
+
import type { Scope } from "../input.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,aAAa,CAAC;AACzC,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,5 +1,4 @@
|
|
1
|
-
import type { Scope } from "../../../
|
2
|
-
import type { Options } from "../../../factory/factory.js";
|
1
|
+
import type { Scope, Options } from "../../../factory/Factory.js";
|
3
2
|
type Plugins = {
|
4
3
|
readonly [S in Scope]: InstanceType<typeof Options[S]>["plugins"];
|
5
4
|
};
|
@@ -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,
|
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;AAElE,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 IConfig from "./config/IConfig.js";
|
2
|
+
export type { IConfig 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,OAAO,MAAM,qBAAqB,CAAC;AAE/C,YAAY,EAAE,OAAO,IAAI,OAAO,EAAE,CAAC"}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"scopes.d.ts","sourceRoot":"","sources":["../../../src/boundary/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/boundary/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"}
|
@@ -0,0 +1,7 @@
|
|
1
|
+
import Options from "./options/Options.js";
|
2
|
+
import Files from "./files/Files.js";
|
3
|
+
import Ruleset, { Rule } from "./ruleset/Ruleset.js";
|
4
|
+
import type { Scope } from "../index.js";
|
5
|
+
export type Blanka = ConstructorParameters<typeof Options["js"]>;
|
6
|
+
export { Options, Files, Ruleset, Rule, type Scope, };
|
7
|
+
//# sourceMappingURL=Factory.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"Factory.d.ts","sourceRoot":"","sources":["../../src/factory/Factory.ts"],"names":[],"mappings":"AAAA,OAAO,OAAO,MAAM,sBAAsB,CAAC;AAC3C,OAAO,KAAK,MAAM,kBAAkB,CAAC;AACrC,OAAO,OAAO,EAAE,EAAE,IAAI,EAAE,MAAM,sBAAsB,CAAC;AACrD,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,aAAa,CAAC;AAEzC,MAAM,MAAM,MAAM,GAAG,qBAAqB,CAAC,OAAO,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC;AACjE,OAAO,EACL,OAAO,EACP,KAAK,EACL,OAAO,EACP,IAAI,EACJ,KAAK,KAAK,GACX,CAAC"}
|
@@ -1,5 +1,5 @@
|
|
1
|
-
import
|
1
|
+
import Options from "./options/Options.js";
|
2
2
|
import Files from "./files/Files.js";
|
3
|
-
import
|
3
|
+
import Ruleset, { Rule } from "./ruleset/Ruleset.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,MAAM,sBAAsB,CAAC;AAC3C,OAAO,KAAK,MAAM,kBAAkB,CAAC;AACrC,OAAO,OAAO,EAAE,EAAE,IAAI,EAAE,MAAM,sBAAsB,CAAC;AAIrD,OAAO,EACL,OAAO,EACP,KAAK,EACL,OAAO,EACP,IAAI,GAEL,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,eAAe,CAAC;AAE3C,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"}
|
@@ -6,15 +6,10 @@ export default class Files {
|
|
6
6
|
this.includes = includes;
|
7
7
|
}
|
8
8
|
files(scope) {
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
];
|
14
|
-
}
|
15
|
-
catch (e) {
|
16
|
-
throw new Error(`linted.factory.Files/scope:${scope}`, { cause: e });
|
17
|
-
}
|
9
|
+
return [
|
10
|
+
...this.base[scope],
|
11
|
+
...this.includes[scope] ?? [],
|
12
|
+
];
|
18
13
|
}
|
19
14
|
}
|
20
15
|
//# 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,
|
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;YACL,GAAG,IAAI,CAAC,IAAI,CAAC,KAAK,CAAC;YACnB,GAAG,IAAI,CAAC,QAAQ,CAAC,KAAK,CAAC,IAAI,EAAE;SAC9B,CAAC;IACJ,CAAC;CACF"}
|
@@ -1,3 +1,4 @@
|
|
1
|
+
import type { Scope } from "../Factory.js";
|
1
2
|
import JsOption from "./option/js/index.js";
|
2
3
|
import TsOption from "./option/ts/index.js";
|
3
4
|
import SvelteOption from "./option/svelte/index.js";
|
@@ -5,6 +6,7 @@ import HtmlOption from "./option/html/index.js";
|
|
5
6
|
import JsonOption from "./option/json/index.js";
|
6
7
|
import JsoncOption from "./option/jsonc/index.js";
|
7
8
|
import YmlOption from "./option/yml/index.js";
|
9
|
+
export type { Scope };
|
8
10
|
declare const _default: {
|
9
11
|
readonly js: typeof JsOption;
|
10
12
|
readonly ts: typeof TsOption;
|
@@ -15,4 +17,4 @@ declare const _default: {
|
|
15
17
|
readonly yml: typeof YmlOption;
|
16
18
|
};
|
17
19
|
export default _default;
|
18
|
-
//# sourceMappingURL=
|
20
|
+
//# 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,KAAK,EAAE,KAAK,EAAE,MAAM,eAAe,CAAC;AAC3C,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,YAAY,EAAE,KAAK,EAAE,CAAC;;;;;;;;;;AACtB,wBAQW"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"
|
1
|
+
{"version":3,"file":"Options.js","sourceRoot":"","sources":["../../../src/factory/options/Options.ts"],"names":[],"mappings":"AACA,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;AAG9C,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,17 +1,31 @@
|
|
1
|
-
import type { Scope } from "
|
2
|
-
import type { Ruleset } from "../../
|
3
|
-
import type
|
1
|
+
import type { Scope } from "../Options.js";
|
2
|
+
import type { Ruleset } from "../../Factory.js";
|
3
|
+
import type { IConfig } from "../../../boundary/boundary.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
|
-
|
9
|
+
readonly linterOptions: {
|
10
|
+
readonly noInlineConfig: true;
|
11
|
+
readonly reportUnusedDisableDirectives: "error";
|
12
|
+
};
|
10
13
|
abstract readonly scope: literalful<S>;
|
11
|
-
abstract readonly processor: Interface<Processor> extends never ? object : Interface<Processor> extends
|
14
|
+
abstract readonly processor: (Interface<Processor> extends never ? object : Interface<Processor> extends {
|
15
|
+
"interface": string;
|
16
|
+
} ? Interface<Processor> : object);
|
12
17
|
constructor(files: readonly string[], ruleset: Ruleset<S>, plugins: IOPlugins<PluginId>, parser: Tuple<unknown, ParserCount>);
|
13
|
-
get configs():
|
14
|
-
|
15
|
-
|
18
|
+
get configs(): IConfig[];
|
19
|
+
get option(): {
|
20
|
+
linterOptions: {
|
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>;
|
16
30
|
}
|
17
31
|
//# 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,eAAe,CAAC;AAC3C,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,kBAAkB,CAAC;AAChD,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,+BAA+B,CAAC;AAE7D,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,OAAO,EAAE,CA+B9B;IAED,IAAW,MAAM;;;;;;;;mBA1C8G,MAAM;uCA8DpI;IAED,aAAoB,eAAe,IAAI,UAAU,CAC/C,MAAM,EACN,aAAa,EACb,WAAW,CACZ,CAAC;CACH"}
|
@@ -14,42 +14,32 @@ 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
|
-
|
33
|
-
});
|
34
|
-
}
|
35
|
-
}
|
36
|
-
catch (e) {
|
37
|
-
throw new Error(`linted.factory.Option/scope:${this.scope}: configs`, { cause: e });
|
17
|
+
const { scope, ruleset, files, option, } = this;
|
18
|
+
if (ruleset.id !== scope)
|
19
|
+
throw new TypeError(`Option and Ruleset scope mismatch`, { cause: { option: scope, ruleset: ruleset.id } });
|
20
|
+
else if (files.length < 1)
|
21
|
+
return [];
|
22
|
+
else {
|
23
|
+
const baseName = `scope:${scope}/rule:${ruleset.id}`;
|
24
|
+
return ruleset.records.map(([ruleId, rules]) => {
|
25
|
+
const name = `${baseName}+${ruleId}`;
|
26
|
+
return {
|
27
|
+
name,
|
28
|
+
files,
|
29
|
+
rules,
|
30
|
+
...option,
|
31
|
+
};
|
32
|
+
});
|
38
33
|
}
|
39
34
|
}
|
40
35
|
get option() {
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
};
|
49
|
-
}
|
50
|
-
catch (e) {
|
51
|
-
throw new Error(`linted.factory.Option/scope:${this.scope}: option`, { cause: e });
|
52
|
-
}
|
36
|
+
const { plugins, linterOptions, languageOptions, processor, } = this;
|
37
|
+
return {
|
38
|
+
linterOptions,
|
39
|
+
languageOptions,
|
40
|
+
plugins,
|
41
|
+
...processor,
|
42
|
+
};
|
53
43
|
}
|
54
44
|
}
|
55
45
|
//# 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;IAkBhB;IACA;IACA;IACA;IAZF,aAAa,GAAG;QAC9B,cAAc,EAAE,IAAI;QACpB,6BAA6B,EAAE,OAAO;KAC9B,CAAC;IAKX,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,MAAM,EACJ,KAAK,EACL,OAAO,EACP,KAAK,EACL,MAAM,GACP,GAAG,IAAI,CAAC;QAET,IAAI,OAAO,CAAC,EAAE,KAAK,KAAK;YACtB,MAAM,IAAI,SAAS,CACjB,mCAAmC,EACnC,EAAE,KAAK,EAAE,EAAE,MAAM,EAAE,KAAK,EAAE,OAAO,EAAE,OAAO,CAAC,EAAE,EAAE,EAAE,CAClD,CAAC;aACC,IAAI,KAAK,CAAC,MAAM,GAAG,CAAC;YACvB,OAAO,EAAE,CAAC;aACP,CAAC;YACJ,MAAM,QAAQ,GAAG,SAAS,KAAK,SAAS,OAAO,CAAC,EAAE,EAAW,CAAC;YAE9D,OAAO,OAAO,CAAC,OAAO,CAAC,GAAG,CACxB,CAAC,CAAC,MAAM,EAAE,KAAK,CAAC,EAAE,EAAE;gBAClB,MAAM,IAAI,GAAG,GAAG,QAAQ,IAAI,MAAM,EAAW,CAAC;gBAE9C,OAAO;oBACL,IAAI;oBACJ,KAAK;oBACL,KAAK;oBACL,GAAG,MAAM;iBACV,CAAC;YACJ,CAAC,CACF,CAAC;QACJ,CAAC;IACH,CAAC;IAED,IAAW,MAAM;QACf,MAAM,EACJ,OAAO,EACP,aAAa,EACb,eAAe,EACf,SAAS,GACV,GAAG,IAAI,CAAC;QAET,OAAO;YACL,aAAa;YACb,eAAe;YACf,OAAO;YACP,GAAG,SAAS;SAOb,CAAC;IACJ,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;;MAIzB;CACF"}
|
@@ -3,13 +3,8 @@ export default class HtmlOption extends Option {
|
|
3
3
|
scope = "html";
|
4
4
|
processor = {};
|
5
5
|
get languageOptions() {
|
6
|
-
|
7
|
-
|
8
|
-
return { parser };
|
9
|
-
}
|
10
|
-
catch (e) {
|
11
|
-
throw new Error(`linted.factory.options.html: languageOptions`, { cause: e });
|
12
|
-
}
|
6
|
+
const [parser] = this.parser;
|
7
|
+
return { parser };
|
13
8
|
}
|
14
9
|
}
|
15
10
|
//# 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,
|
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;QAE7B,OAAO,EAAE,MAAM,EAAW,CAAC;IAC7B,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;;;MAKzB;CACF"}
|
@@ -3,15 +3,10 @@ export default class JsOption extends Option {
|
|
3
3
|
scope = "js";
|
4
4
|
processor = {};
|
5
5
|
get languageOptions() {
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
};
|
11
|
-
}
|
12
|
-
catch (e) {
|
13
|
-
throw new Error(`linted.factory.options.js: languageOptions`, { cause: e });
|
14
|
-
}
|
6
|
+
return {
|
7
|
+
ecmaVersion: "latest",
|
8
|
+
sourceType: "module",
|
9
|
+
};
|
15
10
|
}
|
16
11
|
}
|
17
12
|
//# 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,
|
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;YACL,WAAW,EAAE,QAAQ;YACrB,UAAU,EAAE,QAAQ;SACZ,CAAC;IACb,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;;MAIzB;CACF"}
|
@@ -3,13 +3,8 @@ export default class JsonOption extends Option {
|
|
3
3
|
scope = "json";
|
4
4
|
processor = {};
|
5
5
|
get languageOptions() {
|
6
|
-
|
7
|
-
|
8
|
-
return { parser };
|
9
|
-
}
|
10
|
-
catch (e) {
|
11
|
-
throw new Error(`linted.factory.options.json: languageOptions`, { cause: e });
|
12
|
-
}
|
6
|
+
const [parser] = this.parser;
|
7
|
+
return { parser };
|
13
8
|
}
|
14
9
|
}
|
15
10
|
//# 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,
|
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;QAE7B,OAAO,EAAE,MAAM,EAAW,CAAC;IAC7B,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;;MAIzB;CACF"}
|
@@ -3,13 +3,8 @@ export default class JsoncOption extends Option {
|
|
3
3
|
scope = "jsonc";
|
4
4
|
processor = {};
|
5
5
|
get languageOptions() {
|
6
|
-
|
7
|
-
|
8
|
-
return { parser };
|
9
|
-
}
|
10
|
-
catch (e) {
|
11
|
-
throw new Error(`linted.factory.options.jsonc: languageOptions`, { cause: e });
|
12
|
-
}
|
6
|
+
const [parser] = this.parser;
|
7
|
+
return { parser };
|
13
8
|
}
|
14
9
|
}
|
15
10
|
//# 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,
|
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;QAE7B,OAAO,EAAE,MAAM,EAAW,CAAC;IAC7B,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;;;;;;;;;;;MAezB;CACF"}
|
@@ -3,24 +3,19 @@ export default class SvelteOption extends Option {
|
|
3
3
|
scope = "svelte";
|
4
4
|
processor = { processor: "svelte/svelte" };
|
5
5
|
get languageOptions() {
|
6
|
-
|
7
|
-
|
8
|
-
|
6
|
+
const [parser, tsParser] = this.parser;
|
7
|
+
return {
|
8
|
+
ecmaVersion: "latest",
|
9
|
+
sourceType: "module",
|
10
|
+
parser,
|
11
|
+
parserOptions: {
|
9
12
|
ecmaVersion: "latest",
|
10
13
|
sourceType: "module",
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
extraFileExtensions: [".svelte"],
|
17
|
-
parser: tsParser,
|
18
|
-
},
|
19
|
-
};
|
20
|
-
}
|
21
|
-
catch (e) {
|
22
|
-
throw new Error(`linted.factory.options.svelte: languageOptions`, { cause: e });
|
23
|
-
}
|
14
|
+
project: "tsconfig.json",
|
15
|
+
extraFileExtensions: [".svelte"],
|
16
|
+
parser: tsParser,
|
17
|
+
},
|
18
|
+
};
|
24
19
|
}
|
25
20
|
}
|
26
21
|
//# sourceMappingURL=index.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/factory/options/option/svelte/index.ts"],"names":[],"mappings":"AAAA,OAAO,MAAM,MAAM,cAAc,CAAC;AAGlC,MAAM,CAAC,OAAO,OAAO,YAAa,SAAQ,MAUzC;IACiB,KAAK,GAAG,QAAQ,CAAC;IACjB,SAAS,GAAG,EAAE,SAAS,EAAE,eAAe,EAAW,CAAC;IAEpE,IAAW,eAAe;QACxB,
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/factory/options/option/svelte/index.ts"],"names":[],"mappings":"AAAA,OAAO,MAAM,MAAM,cAAc,CAAC;AAGlC,MAAM,CAAC,OAAO,OAAO,YAAa,SAAQ,MAUzC;IACiB,KAAK,GAAG,QAAQ,CAAC;IACjB,SAAS,GAAG,EAAE,SAAS,EAAE,eAAe,EAAW,CAAC;IAEpE,IAAW,eAAe;QACxB,MAAM,CAAC,MAAM,EAAE,QAAQ,CAAC,GAAG,IAAI,CAAC,MAAM,CAAC;QAEvC,OAAO;YACL,WAAW,EAAE,QAAQ;YACrB,UAAU,EAAE,QAAQ;YACpB,MAAM;YACN,aAAa,EAAE;gBACb,WAAW,EAAE,QAAQ;gBACrB,UAAU,EAAE,QAAQ;gBACpB,OAAO,EAAE,eAAe;gBACxB,mBAAmB,EAAE,CAAC,SAAS,CAAU;gBACzC,MAAM,EAAE,QAAQ;aACjB;SACO,CAAC;IACb,CAAC;CACF"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/factory/options/option/ts/index.ts"],"names":[],"mappings":"AAAA,OAAO,MAAM,MAAM,cAAc,CAAC;AAClC,OAAO,KAAK,QAAQ,MAAM,gBAAgB,CAAC;AAE3C,MAAM,CAAC,OAAO,OAAO,QAAS,SAAQ,MAAM,CAC1C,IAAI,EACJ,oBAAoB,GAAG,MAAM,QAAQ,CAAC,QAAQ,CAAC,CAAC,SAAS,CAAC,EAC1D,IAAI,EACF,QAAQ,CAAC,QAAQ,CAAC,CAAC,iBAAiB,CAAC,GACrC;IAAE,OAAO,EAAE,eAAe,CAAA;CAAE,EAC9B,CAAC,CACF;IACC,SAAgB,KAAK,QAAQ;IAC7B,SAAgB,SAAS,KAAe;IAExC,IAAW,eAAe;;;;;;;;;
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/factory/options/option/ts/index.ts"],"names":[],"mappings":"AAAA,OAAO,MAAM,MAAM,cAAc,CAAC;AAClC,OAAO,KAAK,QAAQ,MAAM,gBAAgB,CAAC;AAE3C,MAAM,CAAC,OAAO,OAAO,QAAS,SAAQ,MAAM,CAC1C,IAAI,EACJ,oBAAoB,GAAG,MAAM,QAAQ,CAAC,QAAQ,CAAC,CAAC,SAAS,CAAC,EAC1D,IAAI,EACF,QAAQ,CAAC,QAAQ,CAAC,CAAC,iBAAiB,CAAC,GACrC;IAAE,OAAO,EAAE,eAAe,CAAA;CAAE,EAC9B,CAAC,CACF;IACC,SAAgB,KAAK,QAAQ;IAC7B,SAAgB,SAAS,KAAe;IAExC,IAAW,eAAe;;;;;;;;;MAazB;CACF"}
|
@@ -3,22 +3,17 @@ export default class TsOption extends Option {
|
|
3
3
|
scope = "ts";
|
4
4
|
processor = {};
|
5
5
|
get languageOptions() {
|
6
|
-
|
7
|
-
|
8
|
-
|
6
|
+
const [parser] = this.parser;
|
7
|
+
return {
|
8
|
+
ecmaVersion: "latest",
|
9
|
+
sourceType: "module",
|
10
|
+
parser,
|
11
|
+
parserOptions: {
|
9
12
|
ecmaVersion: "latest",
|
10
13
|
sourceType: "module",
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
sourceType: "module",
|
15
|
-
project: "tsconfig.json",
|
16
|
-
},
|
17
|
-
};
|
18
|
-
}
|
19
|
-
catch (e) {
|
20
|
-
throw new Error(`linted.factory.options.ts: languageOptions`, { cause: e });
|
21
|
-
}
|
14
|
+
project: "tsconfig.json",
|
15
|
+
},
|
16
|
+
};
|
22
17
|
}
|
23
18
|
}
|
24
19
|
//# sourceMappingURL=index.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/factory/options/option/ts/index.ts"],"names":[],"mappings":"AAAA,OAAO,MAAM,MAAM,cAAc,CAAC;AAGlC,MAAM,CAAC,OAAO,OAAO,QAAS,SAAQ,MAOrC;IACiB,KAAK,GAAG,IAAI,CAAC;IACb,SAAS,GAAG,EAAW,CAAC;IAExC,IAAW,eAAe;QACxB,
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/factory/options/option/ts/index.ts"],"names":[],"mappings":"AAAA,OAAO,MAAM,MAAM,cAAc,CAAC;AAGlC,MAAM,CAAC,OAAO,OAAO,QAAS,SAAQ,MAOrC;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;YACL,WAAW,EAAE,QAAQ;YACrB,UAAU,EAAE,QAAQ;YACpB,MAAM;YACN,aAAa,EAAE;gBACb,WAAW,EAAE,QAAQ;gBACrB,UAAU,EAAE,QAAQ;gBACpB,OAAO,EAAE,eAAe;aACzB;SACO,CAAC;IACb,CAAC;CACF"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/factory/options/option/yml/index.ts"],"names":[],"mappings":"AAAA,OAAO,MAAM,MAAM,cAAc,CAAC;AAElC,MAAM,CAAC,OAAO,OAAO,SAAU,SAAQ,MAAM,CAC3C,KAAK,EACL,KAAK,EACL,KAAK,EACL,IAAI,EACJ,CAAC,CACF;IACC,SAAgB,KAAK,SAAS;IAC9B,SAAgB,SAAS,KAAe;IAExC,IAAW,eAAe;;
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/factory/options/option/yml/index.ts"],"names":[],"mappings":"AAAA,OAAO,MAAM,MAAM,cAAc,CAAC;AAElC,MAAM,CAAC,OAAO,OAAO,SAAU,SAAQ,MAAM,CAC3C,KAAK,EACL,KAAK,EACL,KAAK,EACL,IAAI,EACJ,CAAC,CACF;IACC,SAAgB,KAAK,SAAS;IAC9B,SAAgB,SAAS,KAAe;IAExC,IAAW,eAAe;;MAIzB;CACF"}
|
@@ -3,13 +3,8 @@ export default class YmlOption extends Option {
|
|
3
3
|
scope = "yml";
|
4
4
|
processor = {};
|
5
5
|
get languageOptions() {
|
6
|
-
|
7
|
-
|
8
|
-
return { parser };
|
9
|
-
}
|
10
|
-
catch (e) {
|
11
|
-
throw new Error(`linted.factory.options.yml: languageOptions`, { cause: e });
|
12
|
-
}
|
6
|
+
const [parser] = this.parser;
|
7
|
+
return { parser };
|
13
8
|
}
|
14
9
|
}
|
15
10
|
//# sourceMappingURL=index.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/factory/options/option/yml/index.ts"],"names":[],"mappings":"AAAA,OAAO,MAAM,MAAM,cAAc,CAAC;AAElC,MAAM,CAAC,OAAO,OAAO,SAAU,SAAQ,MAMtC;IACiB,KAAK,GAAG,KAAK,CAAC;IACd,SAAS,GAAG,EAAW,CAAC;IAExC,IAAW,eAAe;QACxB,
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/factory/options/option/yml/index.ts"],"names":[],"mappings":"AAAA,OAAO,MAAM,MAAM,cAAc,CAAC;AAElC,MAAM,CAAC,OAAO,OAAO,SAAU,SAAQ,MAMtC;IACiB,KAAK,GAAG,KAAK,CAAC;IACd,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"}
|