@eslinted/core 0.7.0-rc.3 → 0.7.0-rc.4
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/boundary/input/input.d.ts +3 -2
- package/dist/boundary/input/input.d.ts.map +1 -1
- package/dist/boundary/input/parsers/parsers.d.ts +7 -0
- package/dist/boundary/input/parsers/parsers.d.ts.map +1 -0
- package/dist/boundary/input/parsers/parsers.js +2 -0
- package/dist/boundary/input/parsers/parsers.js.map +1 -0
- package/dist/boundary/input/plugins/plugins.d.ts +6 -0
- package/dist/boundary/input/plugins/plugins.d.ts.map +1 -0
- package/dist/boundary/input/plugins/plugins.js +2 -0
- package/dist/boundary/input/plugins/plugins.js.map +1 -0
- package/dist/boundary/output/config/IConfig.d.ts +19 -0
- package/dist/boundary/output/config/IConfig.d.ts.map +1 -0
- package/dist/boundary/output/config/IConfig.js +2 -0
- package/dist/boundary/output/config/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/factory/Factory.d.ts +1 -0
- package/dist/factory/Factory.d.ts.map +1 -1
- package/dist/factory/Factory.js.map +1 -1
- package/dist/factory/options/Options.d.ts +7 -7
- 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 +26 -3
- package/dist/factory/options/option/Option.d.ts.map +1 -1
- package/dist/factory/options/option/Option.js +22 -3
- package/dist/factory/options/option/Option.js.map +1 -1
- package/dist/factory/options/option/html/index.d.ts +6 -2
- package/dist/factory/options/option/html/index.d.ts.map +1 -1
- package/dist/factory/options/option/html/index.js +5 -11
- package/dist/factory/options/option/html/index.js.map +1 -1
- package/dist/factory/options/option/js/index.d.ts +6 -1
- package/dist/factory/options/option/js/index.d.ts.map +1 -1
- package/dist/factory/options/option/js/index.js +7 -14
- package/dist/factory/options/option/js/index.js.map +1 -1
- package/dist/factory/options/option/json/index.d.ts +6 -2
- package/dist/factory/options/option/json/index.d.ts.map +1 -1
- package/dist/factory/options/option/json/index.js +5 -11
- package/dist/factory/options/option/json/index.js.map +1 -1
- package/dist/factory/options/option/jsonc/index.d.ts +6 -2
- package/dist/factory/options/option/jsonc/index.d.ts.map +1 -1
- package/dist/factory/options/option/jsonc/index.js +5 -11
- package/dist/factory/options/option/jsonc/index.js.map +1 -1
- package/dist/factory/options/option/svelte/index.d.ts +21 -4
- package/dist/factory/options/option/svelte/index.d.ts.map +1 -1
- package/dist/factory/options/option/svelte/index.js +13 -20
- package/dist/factory/options/option/svelte/index.js.map +1 -1
- package/dist/factory/options/option/ts/index.d.ts +14 -3
- package/dist/factory/options/option/ts/index.d.ts.map +1 -1
- package/dist/factory/options/option/ts/index.js +11 -17
- package/dist/factory/options/option/ts/index.js.map +1 -1
- package/dist/factory/options/option/yml/index.d.ts +6 -2
- package/dist/factory/options/option/yml/index.d.ts.map +1 -1
- package/dist/factory/options/option/yml/index.js +5 -11
- package/dist/factory/options/option/yml/index.js.map +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +26 -15
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
- package/src/boundary/input/input.ts +4 -2
- package/src/boundary/input/parsers/parsers.ts +6 -0
- package/src/boundary/input/plugins/plugins.ts +7 -0
- package/src/boundary/output/config/{index.ts → IConfig.ts} +3 -4
- package/src/boundary/output/config/interface/option/IOption.d.ts +15 -20
- package/src/boundary/output/config/interface/option/language/IOLanguage.d.ts +16 -13
- package/src/boundary/output/config/interface/option/language/ecma/IOLanguageEcma.d.ts +1 -19
- package/src/boundary/output/config/interface/option/language/globals/IOLanguageGlobals.d.ts +1 -3
- package/src/boundary/output/config/interface/option/language/source/IOLanguageSource.d.ts +3 -12
- package/src/boundary/output/config/interface/option/linter/IOLinter.d.ts +3 -29
- package/src/boundary/output/config/interface/option/name/IOName.d.ts +1 -3
- package/src/boundary/output/config/interface/option/plugins/IOPlugins.d.ts +1 -3
- package/src/boundary/output/config/interface/option/processor/IOProcessor.d.ts +1 -3
- package/src/boundary/output/output.ts +2 -2
- package/src/factory/Factory.ts +1 -0
- package/src/factory/options/Options.ts +1 -1
- package/src/factory/options/option/Option.ts +47 -16
- package/src/factory/options/option/html/index.ts +9 -22
- package/src/factory/options/option/js/index.ts +8 -19
- package/src/factory/options/option/json/index.ts +9 -22
- package/src/factory/options/option/jsonc/index.ts +9 -22
- package/src/factory/options/option/svelte/index.ts +22 -33
- package/src/factory/options/option/ts/index.ts +19 -28
- package/src/factory/options/option/yml/index.ts +9 -22
- package/src/index.ts +30 -23
- package/types/project/OmitLast.d.ts +1 -0
- package/src/boundary/input/parsers/index.ts +0 -12
- package/src/boundary/input/plugins/index.ts +0 -20
- package/src/boundary/output/config/interface/files/IFiles.d.ts +0 -1
- package/src/boundary/output/config/interface/option/language/parser/IOLanguageParser.d.ts +0 -3
- package/src/boundary/output/config/interface/option/language/parserOptions/IOLanguageParserOptions.d.ts +0 -5
- package/src/boundary/output/config/interface/rules/IRules.d.ts +0 -1
- /package/src/boundary/output/config/interface/rules/{rule/IRule.d.ts → IRule.d.ts} +0 -0
- /package/src/boundary/output/config/interface/rules/{rule/state → state}/RuleSeverity.d.ts +0 -0
- /package/types/{literal → typioca/literal}/number/base32.d.ts +0 -0
- /package/types/{literal → typioca/literal}/number/base64.d.ts +0 -0
- /package/types/{literal → typioca/literal}/number/binary.d.ts +0 -0
- /package/types/{literal → typioca/literal}/number/decimal.d.ts +0 -0
- /package/types/{literal → typioca/literal}/number/hex.d.ts +0 -0
- /package/types/{literal → typioca/literal}/number/octal.d.ts +0 -0
- /package/types/{literal → typioca/literal}/number/quatral.d.ts +0 -0
- /package/types/{literal → typioca/literal}/number/ternary.d.ts +0 -0
- /package/types/{literal → typioca/literal}/string/base64char.d.ts +0 -0
- /package/types/{literal → typioca/literal}/string/digit.d.ts +0 -0
- /package/types/{literal → typioca/literal}/string/hexchar.d.ts +0 -0
- /package/types/{literal → typioca/literal}/string/letter.d.ts +0 -0
- /package/types/{safe → typioca/safe}/Safe.d.ts +0 -0
- /package/types/{safe → typioca/safe}/numbers/finite/Finite.d.ts +0 -0
- /package/types/{safe → typioca/safe}/numbers/finite.d.ts +0 -0
- /package/types/{safe → typioca/safe}/numbers/fint.d.ts +0 -0
- /package/types/{safe → typioca/safe}/numbers/int/Int.d.ts +0 -0
- /package/types/{safe → typioca/safe}/numbers/int.d.ts +0 -0
- /package/types/{safe → typioca/safe}/numbers/numberful.d.ts +0 -0
- /package/types/{safe → typioca/safe}/numbers/polarity/Negative.d.ts +0 -0
- /package/types/{safe → typioca/safe}/numbers/polarity/Positive.d.ts +0 -0
- /package/types/{safe → typioca/safe}/numbers/polarity/pole/Pole.d.ts +0 -0
- /package/types/{safe → typioca/safe}/primitive.d.ts +0 -0
- /package/types/{safe → typioca/safe}/strings/char.d.ts +0 -0
- /package/types/{safe → typioca/safe}/strings/length/PropLength.d.ts +0 -0
- /package/types/{safe → typioca/safe}/strings/stringful.d.ts +0 -0
- /package/types/{utility → typioca/utility}/interface/construct/Particord.d.ts +0 -0
- /package/types/{utility → typioca/utility}/interface/construct/Property.d.ts +0 -0
- /package/types/{utility → typioca/utility}/interface/construct/Recordful.d.ts +0 -0
- /package/types/{utility → typioca/utility}/interface/construct/Table.d.ts +0 -0
- /package/types/{utility → typioca/utility}/interface/construct/properties/Field.d.ts +0 -0
- /package/types/{utility → typioca/utility}/interface/construct/properties/Flag.d.ts +0 -0
- /package/types/{utility → typioca/utility}/interface/construct/properties/Limit.d.ts +0 -0
- /package/types/{utility → typioca/utility}/interface/construct/properties/List.d.ts +0 -0
- /package/types/{utility → typioca/utility}/interface/construct/properties/Listish.d.ts +0 -0
- /package/types/{utility → typioca/utility}/interface/construct/properties/Scalar.d.ts +0 -0
- /package/types/{utility → typioca/utility}/interface/construct/tables/FieldTable.d.ts +0 -0
- /package/types/{utility → typioca/utility}/interface/construct/tables/FlagTable.d.ts +0 -0
- /package/types/{utility → typioca/utility}/interface/construct/tables/ListTable.d.ts +0 -0
- /package/types/{utility → typioca/utility}/interface/construct/tables/ListishTable.d.ts +0 -0
- /package/types/{utility → typioca/utility}/interface/construct/tables/ScalarTable.d.ts +0 -0
- /package/types/{utility → typioca/utility}/interface/identity/Interface.d.ts +0 -0
- /package/types/{utility → typioca/utility}/interface/identity/Keys.d.ts +0 -0
- /package/types/{utility → typioca/utility}/interface/transform/Unrequire.d.ts +0 -0
- /package/types/{utility → typioca/utility}/iterable/construct/ArrayN.d.ts +0 -0
- /package/types/{utility → typioca/utility}/iterable/construct/Tuple.d.ts +0 -0
- /package/types/{utility → typioca/utility}/iterable/construct/arrays/Arrays.d.ts +0 -0
- /package/types/{utility → typioca/utility}/iterable/construct/tuples/Tuples.d.ts +0 -0
- /package/types/{utility → typioca/utility}/iterable/identity/DyadType.d.ts +0 -0
- /package/types/{utility → typioca/utility}/iterable/identity/MonadType.d.ts +0 -0
- /package/types/{utility → typioca/utility}/iterable/identity/TriadType.d.ts +0 -0
- /package/types/{utility → typioca/utility}/iterable/identity/array/ArrayType.d.ts +0 -0
- /package/types/{utility → typioca/utility}/iterable/identity/array/length/ArrayLength.d.ts +0 -0
- /package/types/{utility → typioca/utility}/iterable/transform/Join.d.ts +0 -0
- /package/types/{utility → typioca/utility}/iterable/transform/Unflat.d.ts +0 -0
- /package/types/{utility → typioca/utility}/iterable/transform/stringarray/Chain.d.ts +0 -0
- /package/types/{utility → typioca/utility}/iterable/transform/stringarray/PathN.d.ts +0 -0
- /package/types/{utility → typioca/utility}/iterable/transform/stringarray/stringify/Stringify.d.ts +0 -0
- /package/types/{utility → typioca/utility}/length/Length.d.ts +0 -0
- /package/types/{utility → typioca/utility}/null/null.d.ts +0 -0
- /package/types/{utility → typioca/utility}/null/nullable.d.ts +0 -0
- /package/types/{utility → typioca/utility}/primitive/Primeval.d.ts +0 -0
- /package/types/{utility → typioca/utility}/primitive/boolean/True.d.ts +0 -0
- /package/types/{utility → typioca/utility}/primitive/number/Numbered.d.ts +0 -0
- /package/types/{utility → typioca/utility}/primitive/string/literal.d.ts +0 -0
- /package/types/{utility → typioca/utility}/primitive/string/literalful.d.ts +0 -0
@@ -1,4 +1,5 @@
|
|
1
|
-
|
2
|
-
|
1
|
+
import type Plugins from "./plugins/plugins.js";
|
2
|
+
import type Parsers from "./parsers/parsers.js";
|
3
|
+
export type { Plugins, Parsers };
|
3
4
|
export type { Scope } from "../boundary.js";
|
4
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,
|
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"}
|
@@ -0,0 +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,aAAa,CAAC;AACzC,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,6BAA6B,CAAC;AAE3D,KAAK,OAAO,GAAG;KAAG,CAAC,IAAI,KAAK,GAAG,qBAAqB,CAAG,OAAO,OAAO,CAAC,CAAC,CAAC,CAAE,CAAE,CAAC,CAAC;CAAE,CAAC;AAEjF,YAAY,EAAE,OAAO,IAAI,OAAO,EAAE,CAAC"}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"parsers.js","sourceRoot":"","sources":["../../../../src/boundary/input/parsers/parsers.ts"],"names":[],"mappings":""}
|
@@ -0,0 +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;AAElE,KAAK,OAAO,GAAG;KACZ,CAAC,IAAI,KAAK,GAAG,YAAY,CAAC,OAAO,OAAO,CAAC,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC;CACzD,CAAC;AAEF,YAAY,EAAE,OAAO,IAAI,OAAO,EAAE,CAAC"}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"plugins.js","sourceRoot":"","sources":["../../../../src/boundary/input/plugins/plugins.ts"],"names":[],"mappings":""}
|
@@ -0,0 +1,19 @@
|
|
1
|
+
export default interface IConfig {
|
2
|
+
name: `scope:${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/config/IConfig.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,OAAO,WAAW,OAAO;IAC9B,IAAI,EAAE,SAAS,MAAM,EAAE,CAAC;IACxB,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/config/IConfig.ts"],"names":[],"mappings":""}
|
@@ -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"}
|
@@ -2,5 +2,6 @@ import Options from "./options/Options.js";
|
|
2
2
|
import Files from "./files/Files.js";
|
3
3
|
import Ruleset, { Rule } from "./ruleset/Ruleset.js";
|
4
4
|
import type { Scope } from "../index.js";
|
5
|
+
export type Blanka = ConstructorParameters<typeof Options["js"]>;
|
5
6
|
export { Options, Files, Ruleset, Rule, type Scope, };
|
6
7
|
//# sourceMappingURL=Factory.d.ts.map
|
@@ -1 +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,OAAO,EACL,OAAO,EACP,KAAK,EACL,OAAO,EACP,IAAI,EACJ,KAAK,KAAK,GACX,CAAC"}
|
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 +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;
|
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"}
|
@@ -8,13 +8,13 @@ import JsoncOption from "./option/jsonc/index.js";
|
|
8
8
|
import YmlOption from "./option/yml/index.js";
|
9
9
|
export type { Scope };
|
10
10
|
declare const _default: {
|
11
|
-
js: typeof JsOption;
|
12
|
-
ts: typeof TsOption;
|
13
|
-
svelte: typeof SvelteOption;
|
14
|
-
html: typeof HtmlOption;
|
15
|
-
json: typeof JsonOption;
|
16
|
-
jsonc: typeof JsoncOption;
|
17
|
-
yml: typeof YmlOption;
|
11
|
+
readonly js: typeof JsOption;
|
12
|
+
readonly ts: typeof TsOption;
|
13
|
+
readonly svelte: typeof SvelteOption;
|
14
|
+
readonly html: typeof HtmlOption;
|
15
|
+
readonly json: typeof JsonOption;
|
16
|
+
readonly jsonc: typeof JsoncOption;
|
17
|
+
readonly yml: typeof YmlOption;
|
18
18
|
};
|
19
19
|
export default _default;
|
20
20
|
//# sourceMappingURL=Options.d.ts.map
|
@@ -1 +1 @@
|
|
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,
|
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":"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;
|
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,6 +1,29 @@
|
|
1
1
|
import type { Scope } from "../Options.js";
|
2
|
-
export default class Option<S extends Scope, PluginId extends string,
|
3
|
-
readonly
|
4
|
-
|
2
|
+
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> {
|
3
|
+
readonly files: readonly string[];
|
4
|
+
readonly plugins: IOPlugins<PluginId>;
|
5
|
+
readonly parser: Tuple<unknown, ParserCount>;
|
6
|
+
readonly linterOptions: {
|
7
|
+
readonly noInlineConfig: true;
|
8
|
+
readonly reportUnusedDisableDirectives: "error";
|
9
|
+
};
|
10
|
+
abstract readonly name: literalful<`scope:${S}`>;
|
11
|
+
abstract readonly processor: (Interface<Processor> extends never ? object : Interface<Processor> extends {
|
12
|
+
"interface": string;
|
13
|
+
} ? Interface<Processor> : object);
|
14
|
+
constructor(files: readonly string[], plugins: IOPlugins<PluginId>, parser: Tuple<unknown, ParserCount>);
|
15
|
+
get option(): {
|
16
|
+
name: literalful<`scope:${S}`>;
|
17
|
+
files: readonly string[];
|
18
|
+
linterOptions: {
|
19
|
+
readonly noInlineConfig: true;
|
20
|
+
readonly reportUnusedDisableDirectives: "error";
|
21
|
+
};
|
22
|
+
languageOptions: IOLanguage<IsEcma, ParserOptions, GlobalTypes>;
|
23
|
+
plugins: IOPlugins<PluginId>;
|
24
|
+
} & (Interface<Processor> extends never ? object : Interface<Processor> extends {
|
25
|
+
interface: string;
|
26
|
+
} ? Interface<Processor> : object);
|
27
|
+
abstract get languageOptions(): IOLanguage<IsEcma, ParserOptions, GlobalTypes>;
|
5
28
|
}
|
6
29
|
//# 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,eAAe,CAAC;AAE3C,MAAM,CAAC,OAAO,OAAO,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;AAE3C,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,SAAS,CAAC,QAAQ,CAAC;aAC5B,MAAM,EAAE,KAAK,CAAC,OAAO,EAAE,WAAW,CAAC;IAXrD,SAAgB,aAAa;;;MAGlB;IAEX,kBAAyB,IAAI,EAAE,UAAU,CAAC,SAAS,CAAC,EAAE,CAAC,CAAC;IACxD,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,SAAS,CAAC,QAAQ,CAAC,EAC5B,MAAM,EAAE,KAAK,CAAC,OAAO,EAAE,WAAW,CAAC;IAGrD,IAAW,MAAM;;;;;;;;;;mBAR8G,MAAM;uCAiCpI;IAED,aAAoB,eAAe,IAAI,UAAU,CAC/C,MAAM,EACN,aAAa,EACb,WAAW,CACZ,CAAC;CACH"}
|
@@ -1,7 +1,26 @@
|
|
1
1
|
export default class Option {
|
2
|
-
|
3
|
-
|
4
|
-
|
2
|
+
files;
|
3
|
+
plugins;
|
4
|
+
parser;
|
5
|
+
linterOptions = {
|
6
|
+
noInlineConfig: true,
|
7
|
+
reportUnusedDisableDirectives: "error",
|
8
|
+
};
|
9
|
+
constructor(files, plugins, parser) {
|
10
|
+
this.files = files;
|
11
|
+
this.plugins = plugins;
|
12
|
+
this.parser = parser;
|
13
|
+
}
|
14
|
+
get option() {
|
15
|
+
const { name, files, plugins, linterOptions, languageOptions, processor, } = this;
|
16
|
+
return {
|
17
|
+
name,
|
18
|
+
files,
|
19
|
+
linterOptions,
|
20
|
+
languageOptions,
|
21
|
+
plugins,
|
22
|
+
...processor,
|
23
|
+
};
|
5
24
|
}
|
6
25
|
}
|
7
26
|
//# sourceMappingURL=Option.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"Option.js","sourceRoot":"","sources":["../../../../src/factory/options/option/Option.ts"],"names":[],"mappings":"AAEA,MAAM,CAAC,OAAO,
|
1
|
+
{"version":3,"file":"Option.js","sourceRoot":"","sources":["../../../../src/factory/options/option/Option.ts"],"names":[],"mappings":"AAEA,MAAM,CAAC,OAAO,OAAgB,MAAM;IAkBhB;IACA;IACA;IAXF,aAAa,GAAG;QAC9B,cAAc,EAAE,IAAI;QACpB,6BAA6B,EAAE,OAAO;KAC9B,CAAC;IAKX,YACkB,KAAwB,EACxB,OAA4B,EAC5B,MAAmC;QAFnC,UAAK,GAAL,KAAK,CAAmB;QACxB,YAAO,GAAP,OAAO,CAAqB;QAC5B,WAAM,GAAN,MAAM,CAA6B;IAClD,CAAC;IAEJ,IAAW,MAAM;QACf,MAAM,EACJ,IAAI,EACJ,KAAK,EACL,OAAO,EACP,aAAa,EACb,eAAe,EACf,SAAS,GACV,GAAG,IAAI,CAAC;QAET,OAAO;YACL,IAAI;YACJ,KAAK;YACL,aAAa;YACb,eAAe;YACf,OAAO;YACP,GAAG,SAAS;SAQb,CAAC;IACJ,CAAC;CAOF"}
|
@@ -1,5 +1,9 @@
|
|
1
1
|
import Option from "../Option.js";
|
2
|
-
export default class HtmlOption extends Option<"html", "@html-eslint",
|
3
|
-
|
2
|
+
export default class HtmlOption extends Option<"html", "@html-eslint", false, true, 1> {
|
3
|
+
readonly name = "scope:html";
|
4
|
+
readonly processor: {};
|
5
|
+
get languageOptions(): {
|
6
|
+
readonly parser: unknown;
|
7
|
+
};
|
4
8
|
}
|
5
9
|
//# sourceMappingURL=index.d.ts.map
|
@@ -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,
|
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,IAAI,gBAAgB;IACpC,SAAgB,SAAS,KAAe;IAExC,IAAW,eAAe;;MAIzB;CACF"}
|
@@ -1,16 +1,10 @@
|
|
1
1
|
import Option from "../Option.js";
|
2
2
|
export default class HtmlOption extends Option {
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
linterOptions: {
|
9
|
-
noInlineConfig: true,
|
10
|
-
reportUnusedDisableDirectives: "error",
|
11
|
-
},
|
12
|
-
languageOptions: { parser },
|
13
|
-
});
|
3
|
+
name = "scope:html";
|
4
|
+
processor = {};
|
5
|
+
get languageOptions() {
|
6
|
+
const [parser] = this.parser;
|
7
|
+
return { parser };
|
14
8
|
}
|
15
9
|
}
|
16
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,
|
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,IAAI,GAAG,YAAY,CAAC;IACpB,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,5 +1,10 @@
|
|
1
1
|
import Option from "../Option.js";
|
2
2
|
export default class JsOption extends Option<"js", "@stylistic"> {
|
3
|
-
|
3
|
+
readonly name = "scope:js";
|
4
|
+
readonly processor: {};
|
5
|
+
get languageOptions(): {
|
6
|
+
readonly ecmaVersion: "latest";
|
7
|
+
readonly sourceType: "module";
|
8
|
+
};
|
4
9
|
}
|
5
10
|
//# sourceMappingURL=index.d.ts.map
|
@@ -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;
|
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,IAAI,cAAc;IAClC,SAAgB,SAAS,KAAM;IAE/B,IAAW,eAAe;;;MAKzB;CACF"}
|
@@ -1,19 +1,12 @@
|
|
1
1
|
import Option from "../Option.js";
|
2
2
|
export default class JsOption extends Option {
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
reportUnusedDisableDirectives: "error",
|
11
|
-
},
|
12
|
-
languageOptions: {
|
13
|
-
ecmaVersion: "latest",
|
14
|
-
sourceType: "module",
|
15
|
-
},
|
16
|
-
});
|
3
|
+
name = "scope:js";
|
4
|
+
processor = {};
|
5
|
+
get languageOptions() {
|
6
|
+
return {
|
7
|
+
ecmaVersion: "latest",
|
8
|
+
sourceType: "module",
|
9
|
+
};
|
17
10
|
}
|
18
11
|
}
|
19
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;
|
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,IAAI,GAAG,UAAU,CAAC;IAClB,SAAS,GAAG,EAAE,CAAC;IAE/B,IAAW,eAAe;QACxB,OAAO;YACL,WAAW,EAAE,QAAQ;YACrB,UAAU,EAAE,QAAQ;SACZ,CAAC;IACb,CAAC;CACF"}
|
@@ -1,5 +1,9 @@
|
|
1
1
|
import Option from "../Option.js";
|
2
|
-
export default class JsonOption extends Option<"json", "jsonc",
|
3
|
-
|
2
|
+
export default class JsonOption extends Option<"json", "jsonc", false, true, 1> {
|
3
|
+
readonly name = "scope:json";
|
4
|
+
readonly processor: {};
|
5
|
+
get languageOptions(): {
|
6
|
+
readonly parser: unknown;
|
7
|
+
};
|
4
8
|
}
|
5
9
|
//# sourceMappingURL=index.d.ts.map
|
@@ -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,
|
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,IAAI,gBAAgB;IACpC,SAAgB,SAAS,KAAe;IAExC,IAAW,eAAe;;MAIzB;CACF"}
|
@@ -1,16 +1,10 @@
|
|
1
1
|
import Option from "../Option.js";
|
2
2
|
export default class JsonOption extends Option {
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
linterOptions: {
|
9
|
-
noInlineConfig: true,
|
10
|
-
reportUnusedDisableDirectives: "error",
|
11
|
-
},
|
12
|
-
languageOptions: { parser },
|
13
|
-
});
|
3
|
+
name = "scope:json";
|
4
|
+
processor = {};
|
5
|
+
get languageOptions() {
|
6
|
+
const [parser] = this.parser;
|
7
|
+
return { parser };
|
14
8
|
}
|
15
9
|
}
|
16
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,
|
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,IAAI,GAAG,YAAY,CAAC;IACpB,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,5 +1,9 @@
|
|
1
1
|
import Option from "../Option.js";
|
2
|
-
export default class JsoncOption extends Option<"jsonc", "jsonc",
|
3
|
-
|
2
|
+
export default class JsoncOption extends Option<"jsonc", "jsonc", false, true, 1> {
|
3
|
+
readonly name = "scope:jsonc";
|
4
|
+
readonly processor: {};
|
5
|
+
get languageOptions(): {
|
6
|
+
readonly parser: unknown;
|
7
|
+
};
|
4
8
|
}
|
5
9
|
//# sourceMappingURL=index.d.ts.map
|
@@ -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,
|
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,IAAI,iBAAiB;IACrC,SAAgB,SAAS,KAAe;IAExC,IAAW,eAAe;;MAIzB;CACF"}
|
@@ -1,16 +1,10 @@
|
|
1
1
|
import Option from "../Option.js";
|
2
2
|
export default class JsoncOption extends Option {
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
linterOptions: {
|
9
|
-
noInlineConfig: true,
|
10
|
-
reportUnusedDisableDirectives: "error",
|
11
|
-
},
|
12
|
-
languageOptions: { parser },
|
13
|
-
});
|
3
|
+
name = "scope:jsonc";
|
4
|
+
processor = {};
|
5
|
+
get languageOptions() {
|
6
|
+
const [parser] = this.parser;
|
7
|
+
return { parser };
|
14
8
|
}
|
15
9
|
}
|
16
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,
|
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,IAAI,GAAG,aAAa,CAAC;IACrB,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,10 +1,27 @@
|
|
1
1
|
import Option from "../Option.js";
|
2
2
|
import type TsOption from "../ts/index.js";
|
3
|
-
export default class SvelteOption extends Option<"svelte", "svelte" | keyof TsOption["
|
3
|
+
export default class SvelteOption extends Option<"svelte", "svelte" | keyof TsOption["option"]["plugins"], true, TsOption["option"]["languageOptions"]["parserOptions"] & {
|
4
4
|
parser: unknown;
|
5
5
|
} & {
|
6
|
-
extraFileExtensions: [".svelte"];
|
7
|
-
}, never,
|
8
|
-
|
6
|
+
extraFileExtensions: readonly [".svelte"];
|
7
|
+
}, 2, never, {
|
8
|
+
processor: "svelte/svelte";
|
9
|
+
}> {
|
10
|
+
readonly name = "scope:svelte";
|
11
|
+
readonly processor: {
|
12
|
+
readonly processor: "svelte/svelte";
|
13
|
+
};
|
14
|
+
get languageOptions(): {
|
15
|
+
readonly ecmaVersion: "latest";
|
16
|
+
readonly sourceType: "module";
|
17
|
+
readonly parser: unknown;
|
18
|
+
readonly parserOptions: {
|
19
|
+
readonly ecmaVersion: "latest";
|
20
|
+
readonly sourceType: "module";
|
21
|
+
readonly project: "tsconfig.json";
|
22
|
+
readonly extraFileExtensions: readonly [".svelte"];
|
23
|
+
readonly parser: unknown;
|
24
|
+
};
|
25
|
+
};
|
9
26
|
}
|
10
27
|
//# sourceMappingURL=index.d.ts.map
|
@@ -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,
|
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,IAAI,kBAAkB;IACtC,SAAgB,SAAS;;MAA2C;IAEpE,IAAW,eAAe;;;;;;;;;;;MAezB;CACF"}
|
@@ -1,28 +1,21 @@
|
|
1
1
|
import Option from "../Option.js";
|
2
2
|
export default class SvelteOption extends Option {
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
},
|
13
|
-
languageOptions: {
|
3
|
+
name = "scope:svelte";
|
4
|
+
processor = { processor: "svelte/svelte" };
|
5
|
+
get languageOptions() {
|
6
|
+
const [parser, tsParser] = this.parser;
|
7
|
+
return {
|
8
|
+
ecmaVersion: "latest",
|
9
|
+
sourceType: "module",
|
10
|
+
parser,
|
11
|
+
parserOptions: {
|
14
12
|
ecmaVersion: "latest",
|
15
13
|
sourceType: "module",
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
sourceType: "module",
|
20
|
-
project: "tsconfig.json",
|
21
|
-
extraFileExtensions: [".svelte"],
|
22
|
-
parser: tsParser,
|
23
|
-
},
|
14
|
+
project: "tsconfig.json",
|
15
|
+
extraFileExtensions: [".svelte"],
|
16
|
+
parser: tsParser,
|
24
17
|
},
|
25
|
-
}
|
18
|
+
};
|
26
19
|
}
|
27
20
|
}
|
28
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,
|
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,IAAI,GAAG,cAAc,CAAC;IACtB,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,8 +1,19 @@
|
|
1
1
|
import Option from "../Option.js";
|
2
2
|
import type JsOption from "../js/index.js";
|
3
|
-
export default class TsOption extends Option<"ts", "@typescript-eslint" | keyof JsOption["
|
3
|
+
export default class TsOption extends Option<"ts", "@typescript-eslint" | keyof JsOption["option"]["plugins"], true, JsOption["option"]["languageOptions"] & {
|
4
4
|
project: "tsconfig.json";
|
5
|
-
}> {
|
6
|
-
|
5
|
+
}, 1> {
|
6
|
+
readonly name = "scope:ts";
|
7
|
+
readonly processor: {};
|
8
|
+
get languageOptions(): {
|
9
|
+
readonly ecmaVersion: "latest";
|
10
|
+
readonly sourceType: "module";
|
11
|
+
readonly parser: unknown;
|
12
|
+
readonly parserOptions: {
|
13
|
+
readonly ecmaVersion: "latest";
|
14
|
+
readonly sourceType: "module";
|
15
|
+
readonly project: "tsconfig.json";
|
16
|
+
};
|
17
|
+
};
|
7
18
|
}
|
8
19
|
//# sourceMappingURL=index.d.ts.map
|
@@ -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,
|
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,IAAI,cAAc;IAClC,SAAgB,SAAS,KAAe;IAExC,IAAW,eAAe;;;;;;;;;MAazB;CACF"}
|
@@ -1,25 +1,19 @@
|
|
1
1
|
import Option from "../Option.js";
|
2
2
|
export default class TsOption extends Option {
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
languageOptions: {
|
3
|
+
name = "scope:ts";
|
4
|
+
processor = {};
|
5
|
+
get languageOptions() {
|
6
|
+
const [parser] = this.parser;
|
7
|
+
return {
|
8
|
+
ecmaVersion: "latest",
|
9
|
+
sourceType: "module",
|
10
|
+
parser,
|
11
|
+
parserOptions: {
|
13
12
|
ecmaVersion: "latest",
|
14
13
|
sourceType: "module",
|
15
|
-
|
16
|
-
parserOptions: {
|
17
|
-
ecmaVersion: "latest",
|
18
|
-
sourceType: "module",
|
19
|
-
project: "tsconfig.json",
|
20
|
-
},
|
14
|
+
project: "tsconfig.json",
|
21
15
|
},
|
22
|
-
}
|
16
|
+
};
|
23
17
|
}
|
24
18
|
}
|
25
19
|
//# sourceMappingURL=index.js.map
|