@eslinted/core 3.0.3-rc.2 → 3.0.3
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/boundary/index.d.ts +4 -0
- package/dist/boundary/index.d.ts.map +1 -0
- package/dist/boundary/index.js +2 -0
- package/dist/boundary/index.js.map +1 -0
- package/dist/boundary/input/files/base/index.d.ts +4 -0
- package/dist/boundary/input/files/base/index.d.ts.map +1 -0
- package/dist/boundary/input/files/base/index.js +2 -0
- package/dist/boundary/input/files/base/index.js.map +1 -0
- package/dist/boundary/input/files/includes/index.d.ts +4 -0
- package/dist/boundary/input/files/includes/index.d.ts.map +1 -0
- package/dist/boundary/input/files/includes/index.js +2 -0
- package/dist/boundary/input/files/includes/index.js.map +1 -0
- package/dist/boundary/input/files/index.d.ts +4 -0
- package/dist/boundary/input/files/index.d.ts.map +1 -0
- package/dist/boundary/input/files/index.js +2 -0
- package/dist/boundary/input/files/index.js.map +1 -0
- package/dist/boundary/input/index.d.ts +6 -0
- package/dist/boundary/input/index.d.ts.map +1 -0
- package/dist/boundary/input/index.js +2 -0
- package/dist/boundary/input/index.js.map +1 -0
- package/dist/boundary/input/parsers/{parsers.d.ts → index.d.ts} +3 -3
- package/dist/boundary/input/parsers/index.d.ts.map +1 -0
- package/dist/boundary/input/parsers/index.js +2 -0
- package/dist/boundary/input/parsers/index.js.map +1 -0
- package/dist/boundary/input/plugins/{plugins.d.ts → index.d.ts} +3 -3
- package/dist/boundary/input/plugins/index.d.ts.map +1 -0
- package/dist/boundary/input/plugins/index.js +2 -0
- package/dist/boundary/input/plugins/index.js.map +1 -0
- package/dist/boundary/input/rules/index.d.ts +4 -0
- package/dist/boundary/input/rules/index.d.ts.map +1 -0
- package/dist/boundary/input/rules/index.js +2 -0
- package/dist/boundary/input/rules/index.js.map +1 -0
- package/dist/boundary/input/rules/overrides/index.d.ts +5 -0
- package/dist/boundary/input/rules/overrides/index.d.ts.map +1 -0
- package/dist/boundary/input/rules/overrides/index.js +2 -0
- package/dist/boundary/input/rules/overrides/index.js.map +1 -0
- package/dist/boundary/input/rules/preset/entry/index.d.ts +4 -0
- package/dist/boundary/input/rules/preset/entry/index.d.ts.map +1 -0
- package/dist/boundary/input/rules/preset/entry/index.js +2 -0
- package/dist/boundary/input/rules/preset/entry/index.js.map +1 -0
- package/dist/boundary/input/rules/preset/entry/object/index.d.ts +4 -0
- package/dist/boundary/input/rules/preset/entry/object/index.d.ts.map +1 -0
- package/dist/boundary/input/rules/preset/entry/object/index.js +2 -0
- package/dist/boundary/input/rules/preset/entry/object/index.js.map +1 -0
- package/dist/boundary/input/rules/preset/entry/object/state/index.d.ts +3 -0
- package/dist/boundary/input/rules/preset/entry/object/state/index.d.ts.map +1 -0
- package/dist/boundary/input/rules/preset/entry/object/state/index.js +2 -0
- package/dist/boundary/input/rules/preset/entry/object/state/index.js.map +1 -0
- package/dist/boundary/input/rules/preset/index.d.ts +5 -0
- package/dist/boundary/input/rules/preset/index.d.ts.map +1 -0
- package/dist/boundary/input/rules/preset/index.js +2 -0
- package/dist/boundary/input/rules/preset/index.js.map +1 -0
- package/dist/boundary/output/config/{config.d.ts → index.d.ts} +2 -2
- package/dist/boundary/output/config/index.d.ts.map +1 -0
- package/dist/boundary/output/config/index.js +2 -0
- package/dist/boundary/output/config/index.js.map +1 -0
- package/dist/boundary/output/index.d.ts +3 -0
- package/dist/boundary/output/index.d.ts.map +1 -0
- package/dist/boundary/output/index.js +2 -0
- package/dist/boundary/output/index.js.map +1 -0
- package/dist/dependency/{dependency.d.ts → index.d.ts} +2 -2
- package/dist/dependency/index.d.ts.map +1 -0
- package/dist/dependency/index.js +2 -0
- package/dist/dependency/index.js.map +1 -0
- package/dist/dependency/parsers/index.d.ts +1 -1
- package/dist/dependency/parsers/index.d.ts.map +1 -1
- package/dist/factory/files/{Files.d.ts → index.d.ts} +3 -3
- package/dist/factory/files/index.d.ts.map +1 -0
- package/dist/factory/files/{Files.js → index.js} +2 -5
- package/dist/factory/files/index.js.map +1 -0
- package/dist/factory/index.d.ts +5 -0
- package/dist/factory/index.d.ts.map +1 -0
- package/dist/factory/index.js +5 -0
- package/dist/factory/index.js.map +1 -0
- package/dist/factory/options/{Options.d.ts → index.d.ts} +1 -1
- package/dist/factory/options/index.d.ts.map +1 -0
- package/dist/factory/options/{Options.js → index.js} +1 -1
- package/dist/factory/options/index.js.map +1 -0
- package/dist/factory/options/option/html/index.d.ts +1 -1
- package/dist/factory/options/option/html/index.d.ts.map +1 -1
- package/dist/factory/options/option/html/index.js +3 -8
- package/dist/factory/options/option/html/index.js.map +1 -1
- package/dist/factory/options/option/{Option.d.ts → index.d.ts} +5 -5
- package/dist/factory/options/option/{Option.d.ts.map → index.d.ts.map} +1 -1
- package/dist/factory/options/option/{Option.js → index.js} +3 -11
- package/dist/factory/options/option/index.js.map +1 -0
- package/dist/factory/options/option/js/index.d.ts +1 -1
- package/dist/factory/options/option/js/index.d.ts.map +1 -1
- package/dist/factory/options/option/js/index.js +5 -10
- package/dist/factory/options/option/js/index.js.map +1 -1
- package/dist/factory/options/option/json/index.d.ts +1 -1
- package/dist/factory/options/option/json/index.d.ts.map +1 -1
- package/dist/factory/options/option/json/index.js +3 -8
- package/dist/factory/options/option/json/index.js.map +1 -1
- package/dist/factory/options/option/jsonc/index.d.ts +1 -1
- package/dist/factory/options/option/jsonc/index.d.ts.map +1 -1
- package/dist/factory/options/option/jsonc/index.js +3 -8
- package/dist/factory/options/option/jsonc/index.js.map +1 -1
- package/dist/factory/options/option/md/index.d.ts +1 -1
- package/dist/factory/options/option/md/index.d.ts.map +1 -1
- package/dist/factory/options/option/md/index.js +3 -8
- package/dist/factory/options/option/md/index.js.map +1 -1
- package/dist/factory/options/option/mocha/index.d.ts +2 -2
- package/dist/factory/options/option/mocha/index.d.ts.map +1 -1
- package/dist/factory/options/option/mocha/index.js +9 -18
- package/dist/factory/options/option/mocha/index.js.map +1 -1
- package/dist/factory/options/option/svelte/index.d.ts +6 -6
- package/dist/factory/options/option/svelte/index.d.ts.map +1 -1
- package/dist/factory/options/option/svelte/index.js +12 -17
- package/dist/factory/options/option/svelte/index.js.map +1 -1
- package/dist/factory/options/option/ts/index.d.ts +4 -4
- package/dist/factory/options/option/ts/index.d.ts.map +1 -1
- package/dist/factory/options/option/ts/index.js +8 -17
- package/dist/factory/options/option/ts/index.js.map +1 -1
- package/dist/factory/options/option/yml/index.d.ts +1 -1
- package/dist/factory/options/option/yml/index.d.ts.map +1 -1
- package/dist/factory/options/option/yml/index.js +3 -8
- package/dist/factory/options/option/yml/index.js.map +1 -1
- package/dist/factory/ruleset/{Ruleset.d.ts → index.d.ts} +4 -4
- package/dist/factory/ruleset/index.d.ts.map +1 -0
- package/dist/factory/ruleset/{Ruleset.js → index.js} +7 -17
- package/dist/factory/ruleset/index.js.map +1 -0
- package/dist/factory/ruleset/rule/{Rule.d.ts → index.d.ts} +2 -2
- package/dist/factory/ruleset/rule/index.d.ts.map +1 -0
- package/dist/factory/ruleset/rule/{Rule.js → index.js} +1 -1
- package/dist/factory/ruleset/rule/index.js.map +1 -0
- package/dist/index.d.ts +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +13 -39
- package/dist/index.js.map +1 -1
- package/dist/scopes/{Scopes.d.ts → index.d.ts} +1 -1
- package/dist/scopes/index.d.ts.map +1 -0
- package/dist/scopes/{Scopes.js → index.js} +1 -1
- package/dist/scopes/index.js.map +1 -0
- package/package.json +1 -1
- package/src/boundary/index.ts +4 -0
- package/src/boundary/input/files/base/index.ts +5 -0
- package/src/boundary/input/files/includes/index.ts +5 -0
- package/src/boundary/input/files/index.ts +4 -0
- package/src/boundary/input/index.ts +6 -0
- package/src/boundary/input/parsers/{parsers.ts → index.ts} +2 -6
- package/src/boundary/input/plugins/{plugins.ts → index.ts} +2 -6
- package/src/boundary/input/rules/index.ts +4 -0
- package/src/boundary/input/rules/overrides/index.ts +6 -0
- package/src/boundary/input/rules/preset/entry/index.ts +5 -0
- package/src/boundary/input/rules/preset/entry/object/index.ts +9 -0
- package/src/boundary/input/rules/preset/entry/object/state/index.ts +6 -0
- package/src/boundary/input/rules/preset/index.ts +6 -0
- package/src/boundary/output/config/{config.ts → index.ts} +1 -1
- package/src/boundary/output/index.ts +3 -0
- package/src/dependency/{dependency.ts → index.ts} +1 -5
- package/src/dependency/parsers/index.ts +1 -1
- package/src/factory/files/index.ts +16 -0
- package/src/factory/index.ts +10 -0
- package/src/factory/options/option/html/index.ts +3 -11
- package/src/factory/options/option/{Option.ts → index.ts} +19 -49
- package/src/factory/options/option/js/index.ts +5 -13
- package/src/factory/options/option/json/index.ts +3 -11
- package/src/factory/options/option/jsonc/index.ts +3 -11
- package/src/factory/options/option/md/index.ts +3 -11
- package/src/factory/options/option/mocha/index.ts +11 -23
- package/src/factory/options/option/svelte/index.ts +13 -23
- package/src/factory/options/option/ts/index.ts +9 -22
- package/src/factory/options/option/yml/index.ts +3 -11
- package/src/factory/ruleset/index.ts +40 -0
- package/src/factory/ruleset/rule/{Rule.ts → index.ts} +1 -1
- package/src/index.ts +31 -98
- package/dist/boundary/boundary.d.ts +0 -4
- package/dist/boundary/boundary.d.ts.map +0 -1
- package/dist/boundary/boundary.js +0 -2
- package/dist/boundary/boundary.js.map +0 -1
- package/dist/boundary/input/files/base/base.d.ts +0 -5
- package/dist/boundary/input/files/base/base.d.ts.map +0 -1
- package/dist/boundary/input/files/base/base.js +0 -2
- package/dist/boundary/input/files/base/base.js.map +0 -1
- package/dist/boundary/input/files/base/list/list.d.ts +0 -3
- package/dist/boundary/input/files/base/list/list.d.ts.map +0 -1
- package/dist/boundary/input/files/base/list/list.js +0 -2
- package/dist/boundary/input/files/base/list/list.js.map +0 -1
- package/dist/boundary/input/files/files.d.ts +0 -4
- package/dist/boundary/input/files/files.d.ts.map +0 -1
- package/dist/boundary/input/files/files.js +0 -2
- package/dist/boundary/input/files/files.js.map +0 -1
- package/dist/boundary/input/files/includes/includes.d.ts +0 -4
- package/dist/boundary/input/files/includes/includes.d.ts.map +0 -1
- package/dist/boundary/input/files/includes/includes.js +0 -2
- package/dist/boundary/input/files/includes/includes.js.map +0 -1
- package/dist/boundary/input/input.d.ts +0 -6
- package/dist/boundary/input/input.d.ts.map +0 -1
- package/dist/boundary/input/input.js +0 -2
- package/dist/boundary/input/input.js.map +0 -1
- package/dist/boundary/input/parsers/parsers.d.ts.map +0 -1
- package/dist/boundary/input/parsers/parsers.js +0 -2
- package/dist/boundary/input/parsers/parsers.js.map +0 -1
- package/dist/boundary/input/plugins/plugins.d.ts.map +0 -1
- package/dist/boundary/input/plugins/plugins.js +0 -2
- package/dist/boundary/input/plugins/plugins.js.map +0 -1
- package/dist/boundary/input/rules/overrides/overrides.d.ts +0 -5
- package/dist/boundary/input/rules/overrides/overrides.d.ts.map +0 -1
- package/dist/boundary/input/rules/overrides/overrides.js +0 -2
- package/dist/boundary/input/rules/overrides/overrides.js.map +0 -1
- package/dist/boundary/input/rules/preset/entry/entry.d.ts +0 -4
- package/dist/boundary/input/rules/preset/entry/entry.d.ts.map +0 -1
- package/dist/boundary/input/rules/preset/entry/entry.js +0 -2
- package/dist/boundary/input/rules/preset/entry/entry.js.map +0 -1
- package/dist/boundary/input/rules/preset/entry/object/object.d.ts +0 -4
- package/dist/boundary/input/rules/preset/entry/object/object.d.ts.map +0 -1
- package/dist/boundary/input/rules/preset/entry/object/object.js +0 -2
- package/dist/boundary/input/rules/preset/entry/object/object.js.map +0 -1
- package/dist/boundary/input/rules/preset/entry/object/state/level.d.ts +0 -3
- package/dist/boundary/input/rules/preset/entry/object/state/level.d.ts.map +0 -1
- package/dist/boundary/input/rules/preset/entry/object/state/level.js +0 -2
- package/dist/boundary/input/rules/preset/entry/object/state/level.js.map +0 -1
- package/dist/boundary/input/rules/preset/preset.d.ts +0 -5
- package/dist/boundary/input/rules/preset/preset.d.ts.map +0 -1
- package/dist/boundary/input/rules/preset/preset.js +0 -2
- package/dist/boundary/input/rules/preset/preset.js.map +0 -1
- package/dist/boundary/input/rules/rules.d.ts +0 -4
- package/dist/boundary/input/rules/rules.d.ts.map +0 -1
- package/dist/boundary/input/rules/rules.js +0 -2
- package/dist/boundary/input/rules/rules.js.map +0 -1
- package/dist/boundary/output/config/config.d.ts.map +0 -1
- package/dist/boundary/output/config/config.js +0 -2
- package/dist/boundary/output/config/config.js.map +0 -1
- package/dist/boundary/output/output.d.ts +0 -3
- package/dist/boundary/output/output.d.ts.map +0 -1
- package/dist/boundary/output/output.js +0 -2
- package/dist/boundary/output/output.js.map +0 -1
- package/dist/dependency/dependency.d.ts.map +0 -1
- package/dist/dependency/dependency.js +0 -2
- package/dist/dependency/dependency.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 +0 -5
- package/dist/factory/factory.js.map +0 -1
- package/dist/factory/files/Files.d.ts.map +0 -1
- package/dist/factory/files/Files.js.map +0 -1
- package/dist/factory/options/Options.d.ts.map +0 -1
- package/dist/factory/options/Options.js.map +0 -1
- package/dist/factory/options/option/Option.js.map +0 -1
- package/dist/factory/ruleset/Ruleset.d.ts.map +0 -1
- package/dist/factory/ruleset/Ruleset.js.map +0 -1
- package/dist/factory/ruleset/rule/Rule.d.ts.map +0 -1
- package/dist/factory/ruleset/rule/Rule.js.map +0 -1
- package/dist/scopes/Scopes.d.ts.map +0 -1
- package/dist/scopes/Scopes.js.map +0 -1
- package/src/OmitFilesRuleset.d.ts +0 -1
- package/src/boundary/boundary.ts +0 -4
- package/src/boundary/input/files/base/base.ts +0 -9
- package/src/boundary/input/files/base/list/list.ts +0 -6
- package/src/boundary/input/files/files.ts +0 -7
- package/src/boundary/input/files/includes/includes.ts +0 -8
- package/src/boundary/input/input.ts +0 -9
- package/src/boundary/input/rules/overrides/overrides.ts +0 -9
- package/src/boundary/input/rules/preset/entry/entry.ts +0 -8
- package/src/boundary/input/rules/preset/entry/object/object.ts +0 -12
- package/src/boundary/input/rules/preset/entry/object/state/level.ts +0 -9
- package/src/boundary/input/rules/preset/preset.ts +0 -9
- package/src/boundary/input/rules/rules.ts +0 -7
- package/src/boundary/output/output.ts +0 -3
- package/src/factory/factory.ts +0 -10
- package/src/factory/files/Files.ts +0 -24
- package/src/factory/ruleset/Ruleset.ts +0 -72
- /package/src/boundary/output/config/option/{IOption.d.ts → index.d.ts} +0 -0
- /package/src/boundary/output/config/option/language/ecma/{IOLanguageEcma.d.ts → index.d.ts} +0 -0
- /package/src/boundary/output/config/option/language/{IOLanguage.d.ts → index.d.ts} +0 -0
- /package/src/boundary/output/config/option/language/source/{IOLanguageSource.d.ts → index.d.ts} +0 -0
- /package/src/boundary/output/config/option/linter/{IOLinter.d.ts → index.d.ts} +0 -0
- /package/src/boundary/output/config/option/plugins/{IOPlugins.d.ts → index.d.ts} +0 -0
- /package/src/boundary/output/config/option/processor/{IOProcessor.d.ts → index.d.ts} +0 -0
- /package/src/factory/options/{Options.ts → index.ts} +0 -0
- /package/src/scopes/{Scopes.ts → index.ts} +0 -0
@@ -1,15 +1,10 @@
|
|
1
|
-
import Option from "../
|
1
|
+
import Option from "../index.js";
|
2
2
|
export default class Json 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,
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/factory/options/option/json/index.ts"],"names":[],"mappings":"AAAA,OAAO,MAAM,MAAM,aAAa,CAAC;AAEjC,MAAM,CAAC,OAAO,OAAO,IAAK,SAAQ,MAMjC;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,
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/factory/options/option/jsonc/index.ts"],"names":[],"mappings":"AAAA,OAAO,MAAM,MAAM,aAAa,CAAC;AAEjC,MAAM,CAAC,OAAO,OAAO,KAAM,SAAQ,MAAM,CACvC,OAAO,EACP,OAAO,EACP,KAAK,EACL,IAAI,EACJ,CAAC,CACF;IACC,SAAgB,KAAK,WAAW;IAChC,SAAgB,SAAS,KAAe;IAExC,IAAW,eAAe;;MAIzB;CACF"}
|
@@ -1,15 +1,10 @@
|
|
1
|
-
import Option from "../
|
1
|
+
import Option from "../index.js";
|
2
2
|
export default class Jsonc 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,
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/factory/options/option/jsonc/index.ts"],"names":[],"mappings":"AAAA,OAAO,MAAM,MAAM,aAAa,CAAC;AAEjC,MAAM,CAAC,OAAO,OAAO,KAAM,SAAQ,MAMlC;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/md/index.ts"],"names":[],"mappings":"AAAA,OAAO,MAAM,MAAM,
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/factory/options/option/md/index.ts"],"names":[],"mappings":"AAAA,OAAO,MAAM,MAAM,aAAa,CAAC;AAEjC,MAAM,CAAC,OAAO,OAAO,EAAG,SAAQ,MAAM,CACpC,IAAI,EACJ,cAAc,EACd,KAAK,EACL,IAAI,EACJ,CAAC,CACF;IACC,SAAgB,KAAK,QAAQ;IAC7B,SAAgB,SAAS,KAAe;IAExC,IAAW,eAAe;;MAIzB;CACF"}
|
@@ -1,15 +1,10 @@
|
|
1
|
-
import Option from "../
|
1
|
+
import Option from "../index.js";
|
2
2
|
export default class Md extends Option {
|
3
3
|
scope = "md";
|
4
4
|
processor = {};
|
5
5
|
get languageOptions() {
|
6
|
-
|
7
|
-
|
8
|
-
return { parser };
|
9
|
-
}
|
10
|
-
catch (e) {
|
11
|
-
throw new Error(`linted.factory.options.md: 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/md/index.ts"],"names":[],"mappings":"AAAA,OAAO,MAAM,MAAM,
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/factory/options/option/md/index.ts"],"names":[],"mappings":"AAAA,OAAO,MAAM,MAAM,aAAa,CAAC;AAEjC,MAAM,CAAC,OAAO,OAAO,EAAG,SAAQ,MAM/B;IACiB,KAAK,GAAG,IAAI,CAAC;IACb,SAAS,GAAG,EAAW,CAAC;IAExC,IAAW,eAAe;QACxB,MAAM,CAAC,MAAM,CAAC,GAAG,IAAI,CAAC,MAAM,CAAC;QAE7B,OAAO,EAAE,MAAM,EAAW,CAAC;IAC7B,CAAC;CACF"}
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import Option from "../
|
1
|
+
import Option from "../index.js";
|
2
2
|
import type Ts from "../ts/index.js";
|
3
3
|
export default class Mocha extends Option<"mocha", "mocha" | keyof Ts["option"]["plugins"], true, Ts["option"]["languageOptions"]["parserOptions"], 1, "mocha"> {
|
4
4
|
readonly scope = "mocha";
|
@@ -9,9 +9,9 @@ export default class Mocha extends Option<"mocha", "mocha" | keyof Ts["option"][
|
|
9
9
|
readonly sourceType: "module";
|
10
10
|
readonly parser: unknown;
|
11
11
|
readonly parserOptions: {
|
12
|
+
readonly project: "tsconfig.json";
|
12
13
|
readonly ecmaVersion: "latest";
|
13
14
|
readonly sourceType: "module";
|
14
|
-
readonly project: "tsconfig.json";
|
15
15
|
};
|
16
16
|
readonly globals: {
|
17
17
|
readonly after: false;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/factory/options/option/mocha/index.ts"],"names":[],"mappings":"AAAA,OAAO,MAAM,MAAM,
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/factory/options/option/mocha/index.ts"],"names":[],"mappings":"AAAA,OAAO,MAAM,MAAM,aAAa,CAAC;AACjC,OAAO,KAAK,EAAE,MAAM,gBAAgB,CAAC;AAErC,MAAM,CAAC,OAAO,OAAO,KAAM,SAAQ,MAAM,CACvC,OAAO,EACP,OAAO,GAAG,MAAM,EAAE,CAAC,QAAQ,CAAC,CAAC,SAAS,CAAC,EACvC,IAAI,EACJ,EAAE,CAAC,QAAQ,CAAC,CAAC,iBAAiB,CAAC,CAAC,eAAe,CAAC,EAChD,CAAC,EACD,OAAO,CACR;IACC,SAAgB,KAAK,WAAW;IAChC,SAAgB,SAAS,KAAe;IACxC,SAAgB,KAAK,qBAAsB;IAE3C,IAAW,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAWzB;CACF"}
|
@@ -1,26 +1,17 @@
|
|
1
|
-
import Option from "../
|
1
|
+
import Option from "../index.js";
|
2
2
|
export default class Mocha extends Option {
|
3
3
|
scope = "mocha";
|
4
4
|
processor = {};
|
5
5
|
types = ["mocha"];
|
6
6
|
get languageOptions() {
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
sourceType: "module",
|
16
|
-
project: "tsconfig.json",
|
17
|
-
},
|
18
|
-
globals,
|
19
|
-
};
|
20
|
-
}
|
21
|
-
catch (e) {
|
22
|
-
throw new Error(`linted.factory.options.mocha: languageOptions`, { cause: e });
|
23
|
-
}
|
7
|
+
const [parser] = this.parser, globals = this.globals("mocha");
|
8
|
+
return {
|
9
|
+
ecmaVersion: "latest",
|
10
|
+
sourceType: "module",
|
11
|
+
parser,
|
12
|
+
parserOptions: { project: "tsconfig.json", ecmaVersion: "latest", sourceType: "module" },
|
13
|
+
globals,
|
14
|
+
};
|
24
15
|
}
|
25
16
|
}
|
26
17
|
//# sourceMappingURL=index.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/factory/options/option/mocha/index.ts"],"names":[],"mappings":"AAAA,OAAO,MAAM,MAAM,
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/factory/options/option/mocha/index.ts"],"names":[],"mappings":"AAAA,OAAO,MAAM,MAAM,aAAa,CAAC;AAGjC,MAAM,CAAC,OAAO,OAAO,KAAM,SAAQ,MAOlC;IACiB,KAAK,GAAG,OAAO,CAAC;IAChB,SAAS,GAAG,EAAW,CAAC;IACxB,KAAK,GAAG,CAAC,OAAO,CAAU,CAAC;IAE3C,IAAW,eAAe;QACxB,MAAM,CAAC,MAAM,CAAC,GAAG,IAAI,CAAC,MAAM,EAC5B,OAAO,GAAG,IAAI,CAAC,OAAO,CAAC,OAAO,CAAC,CAAC;QAEhC,OAAO;YACL,WAAW,EAAE,QAAQ;YACrB,UAAU,EAAE,QAAQ;YACpB,MAAM;YACN,aAAa,EAAE,EAAE,OAAO,EAAE,eAAe,EAAE,WAAW,EAAE,QAAQ,EAAE,UAAU,EAAE,QAAQ,EAAE;YACxF,OAAO;SACC,CAAC;IACb,CAAC;CACF"}
|
@@ -1,10 +1,10 @@
|
|
1
|
-
import Option from "../
|
1
|
+
import Option from "../index.js";
|
2
2
|
import type Ts from "../ts/index.js";
|
3
|
-
export default class Svelte extends Option<"svelte", "svelte" | keyof Ts["option"]["plugins"], true,
|
3
|
+
export default class Svelte extends Option<"svelte", "svelte" | keyof Ts["option"]["plugins"], true, {
|
4
4
|
parser: unknown;
|
5
5
|
} & {
|
6
6
|
extraFileExtensions: readonly [".svelte"];
|
7
|
-
}, 2, never, {
|
7
|
+
} & Ts["option"]["languageOptions"]["parserOptions"], 2, never, {
|
8
8
|
processor: "svelte/svelte";
|
9
9
|
}> {
|
10
10
|
readonly scope = "svelte";
|
@@ -16,11 +16,11 @@ export default class Svelte extends Option<"svelte", "svelte" | keyof Ts["option
|
|
16
16
|
readonly sourceType: "module";
|
17
17
|
readonly parser: unknown;
|
18
18
|
readonly parserOptions: {
|
19
|
+
readonly parser: unknown;
|
20
|
+
readonly extraFileExtensions: readonly [".svelte"];
|
21
|
+
readonly project: "tsconfig.json";
|
19
22
|
readonly ecmaVersion: "latest";
|
20
23
|
readonly sourceType: "module";
|
21
|
-
readonly project: "tsconfig.json";
|
22
|
-
readonly extraFileExtensions: readonly [".svelte"];
|
23
|
-
readonly parser: unknown;
|
24
24
|
};
|
25
25
|
};
|
26
26
|
}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/factory/options/option/svelte/index.ts"],"names":[],"mappings":"AAAA,OAAO,MAAM,MAAM,
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/factory/options/option/svelte/index.ts"],"names":[],"mappings":"AAAA,OAAO,MAAM,MAAM,aAAa,CAAC;AACjC,OAAO,KAAK,EAAE,MAAM,gBAAgB,CAAC;AAErC,MAAM,CAAC,OAAO,OAAO,MAAO,SAAQ,MAAM,CACxC,QAAQ,EACR,QAAQ,GAAG,MAAM,EAAE,CAAC,QAAQ,CAAC,CAAC,SAAS,CAAC,EACxC,IAAI,EACJ;IAAE,MAAM,EAAE,OAAO,CAAA;CAAE,GAAG;IAAE,mBAAmB,EAAE,SAAS,CAAC,SAAS,CAAC,CAAA;CAAE,GAAG,EAAE,CAAC,QAAQ,CAAC,CAAC,iBAAiB,CAAC,CAAC,eAAe,CAAC,EACtH,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"}
|
@@ -1,26 +1,21 @@
|
|
1
|
-
import Option from "../
|
1
|
+
import Option from "../index.js";
|
2
2
|
export default class Svelte 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: {
|
12
|
+
parser: tsParser,
|
13
|
+
extraFileExtensions: [".svelte"],
|
14
|
+
project: "tsconfig.json",
|
9
15
|
ecmaVersion: "latest",
|
10
16
|
sourceType: "module",
|
11
|
-
|
12
|
-
|
13
|
-
ecmaVersion: "latest",
|
14
|
-
sourceType: "module",
|
15
|
-
project: "tsconfig.json",
|
16
|
-
extraFileExtensions: [".svelte"],
|
17
|
-
parser: tsParser,
|
18
|
-
},
|
19
|
-
};
|
20
|
-
}
|
21
|
-
catch (e) {
|
22
|
-
throw new Error(`linted.factory.options.svelte: languageOptions`, { cause: e });
|
23
|
-
}
|
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,
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/factory/options/option/svelte/index.ts"],"names":[],"mappings":"AAAA,OAAO,MAAM,MAAM,aAAa,CAAC;AAGjC,MAAM,CAAC,OAAO,OAAO,MAAO,SAAQ,MAQnC;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,MAAM,EAAE,QAAQ;gBAChB,mBAAmB,EAAE,CAAC,SAAS,CAAU;gBACzC,OAAO,EAAE,eAAe;gBACxB,WAAW,EAAE,QAAQ;gBACrB,UAAU,EAAE,QAAQ;aACrB;SACO,CAAC;IACb,CAAC;CACF"}
|
@@ -1,8 +1,8 @@
|
|
1
|
-
import Option from "../
|
1
|
+
import Option from "../index.js";
|
2
2
|
import type Js from "../js/index.js";
|
3
|
-
export default class Ts extends Option<"ts", "@typescript-eslint" | keyof Js["option"]["plugins"], true,
|
3
|
+
export default class Ts extends Option<"ts", "@typescript-eslint" | keyof Js["option"]["plugins"], true, {
|
4
4
|
project: "tsconfig.json";
|
5
|
-
}, 1> {
|
5
|
+
} & Js["option"]["languageOptions"], 1> {
|
6
6
|
readonly scope = "ts";
|
7
7
|
readonly processor: {};
|
8
8
|
get languageOptions(): {
|
@@ -10,9 +10,9 @@ export default class Ts extends Option<"ts", "@typescript-eslint" | keyof Js["op
|
|
10
10
|
readonly sourceType: "module";
|
11
11
|
readonly parser: unknown;
|
12
12
|
readonly parserOptions: {
|
13
|
+
readonly project: "tsconfig.json";
|
13
14
|
readonly ecmaVersion: "latest";
|
14
15
|
readonly sourceType: "module";
|
15
|
-
readonly project: "tsconfig.json";
|
16
16
|
};
|
17
17
|
};
|
18
18
|
}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/factory/options/option/ts/index.ts"],"names":[],"mappings":"AAAA,OAAO,MAAM,MAAM,
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/factory/options/option/ts/index.ts"],"names":[],"mappings":"AAAA,OAAO,MAAM,MAAM,aAAa,CAAC;AACjC,OAAO,KAAK,EAAE,MAAM,gBAAgB,CAAC;AAErC,MAAM,CAAC,OAAO,OAAO,EAAG,SAAQ,MAAM,CACpC,IAAI,EACJ,oBAAoB,GAAG,MAAM,EAAE,CAAC,QAAQ,CAAC,CAAC,SAAS,CAAC,EACpD,IAAI,EACJ;IAAE,OAAO,EAAE,eAAe,CAAA;CAAE,GAAG,EAAE,CAAC,QAAQ,CAAC,CAAC,iBAAiB,CAAC,EAC9D,CAAC,CACF;IACC,SAAgB,KAAK,QAAQ;IAC7B,SAAgB,SAAS,KAAe;IAExC,IAAW,eAAe;;;;;;;;;MASzB;CACF"}
|
@@ -1,24 +1,15 @@
|
|
1
|
-
import Option from "../
|
1
|
+
import Option from "../index.js";
|
2
2
|
export default class Ts extends Option {
|
3
3
|
scope = "ts";
|
4
4
|
processor = {};
|
5
5
|
get languageOptions() {
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
ecmaVersion: "latest",
|
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
|
-
}
|
6
|
+
const [parser] = this.parser;
|
7
|
+
return {
|
8
|
+
ecmaVersion: "latest",
|
9
|
+
sourceType: "module",
|
10
|
+
parser,
|
11
|
+
parserOptions: { project: "tsconfig.json", ecmaVersion: "latest", sourceType: "module" },
|
12
|
+
};
|
22
13
|
}
|
23
14
|
}
|
24
15
|
//# 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,
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/factory/options/option/ts/index.ts"],"names":[],"mappings":"AAAA,OAAO,MAAM,MAAM,aAAa,CAAC;AAGjC,MAAM,CAAC,OAAO,OAAO,EAAG,SAAQ,MAM/B;IACiB,KAAK,GAAG,IAAI,CAAC;IACb,SAAS,GAAG,EAAW,CAAC;IAExC,IAAW,eAAe;QACxB,MAAM,CAAC,MAAM,CAAC,GAAG,IAAI,CAAC,MAAM,CAAC;QAE7B,OAAO;YACL,WAAW,EAAE,QAAQ;YACrB,UAAU,EAAE,QAAQ;YACpB,MAAM;YACN,aAAa,EAAE,EAAE,OAAO,EAAE,eAAe,EAAE,WAAW,EAAE,QAAQ,EAAE,UAAU,EAAE,QAAQ,EAAE;SAChF,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,
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/factory/options/option/yml/index.ts"],"names":[],"mappings":"AAAA,OAAO,MAAM,MAAM,aAAa,CAAC;AAEjC,MAAM,CAAC,OAAO,OAAO,GAAI,SAAQ,MAAM,CACrC,KAAK,EACL,KAAK,EACL,KAAK,EACL,IAAI,EACJ,CAAC,CACF;IACC,SAAgB,KAAK,SAAS;IAC9B,SAAgB,SAAS,KAAe;IAExC,IAAW,eAAe;;MAIzB;CACF"}
|
@@ -1,15 +1,10 @@
|
|
1
|
-
import Option from "../
|
1
|
+
import Option from "../index.js";
|
2
2
|
export default class Yml 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,
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/factory/options/option/yml/index.ts"],"names":[],"mappings":"AAAA,OAAO,MAAM,MAAM,aAAa,CAAC;AAEjC,MAAM,CAAC,OAAO,OAAO,GAAI,SAAQ,MAMhC;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"}
|
@@ -1,5 +1,5 @@
|
|
1
|
-
import type { Scope } from "../../scopes/
|
2
|
-
import Rule from "./rule/
|
1
|
+
import type { Scope } from "../../scopes/index.js";
|
2
|
+
import Rule from "./rule/index.js";
|
3
3
|
export { Rule };
|
4
4
|
export default class Ruleset<S extends Scope> {
|
5
5
|
private readonly scope;
|
@@ -7,7 +7,7 @@ export default class Ruleset<S extends Scope> {
|
|
7
7
|
overrides: Null<Rule>;
|
8
8
|
constructor(scope: literalful<S>, ...rules: readonly Rule[]);
|
9
9
|
get id(): literalful<S>;
|
10
|
-
get records(): (readonly [string, Readonly<Record<string, import("../../boundary/input/rules/preset/entry/object/state/
|
10
|
+
get records(): (readonly [string, Readonly<Record<string, import("../../boundary/input/rules/preset/entry/object/state/index.js").Level | readonly [import("../../boundary/input/rules/preset/entry/object/state/index.js").Level, ...unknown[]]>>])[];
|
11
11
|
override(overrides: undefined | Rule["rules"]): this;
|
12
12
|
}
|
13
|
-
//# sourceMappingURL=
|
13
|
+
//# sourceMappingURL=index.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/factory/ruleset/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,uBAAuB,CAAC;AACnD,OAAO,IAAI,MAAM,iBAAiB,CAAC;AAEnC,OAAO,EAAE,IAAI,EAAE,CAAC;AAChB,MAAM,CAAC,OAAO,OAAO,OAAO,CAAC,CAAC,SAAS,KAAK;IAI9B,OAAO,CAAC,QAAQ,CAAC,KAAK;IAHlC,SAAgB,OAAO,EAAE,SAAS,IAAI,EAAE,CAAC;IAClC,SAAS,EAAE,IAAI,CAAC,IAAI,CAAC,CAAQ;gBAEP,KAAK,EAAE,UAAU,CAAC,CAAC,CAAC,EAAE,GAAG,KAAK,EAAE,SAAS,IAAI,EAAE;IAO5E,IAAW,EAAE,kBAIZ;IAED,IAAW,OAAO,4OAUjB;IAEM,QAAQ,CAAC,SAAS,EAAE,SAAS,GAAG,IAAI,CAAC,OAAO,CAAC;CAMrD"}
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import Rule from "./rule/
|
1
|
+
import Rule from "./rule/index.js";
|
2
2
|
export { Rule };
|
3
3
|
export default class Ruleset {
|
4
4
|
scope;
|
@@ -14,13 +14,8 @@ export default class Ruleset {
|
|
14
14
|
}
|
15
15
|
}
|
16
16
|
get id() {
|
17
|
-
|
18
|
-
|
19
|
-
return scope;
|
20
|
-
}
|
21
|
-
catch (e) {
|
22
|
-
throw new Error(`linted.factory.Ruleset: id`, { cause: e });
|
23
|
-
}
|
17
|
+
const { scope } = this;
|
18
|
+
return scope;
|
24
19
|
}
|
25
20
|
get records() {
|
26
21
|
try {
|
@@ -35,14 +30,9 @@ export default class Ruleset {
|
|
35
30
|
}
|
36
31
|
}
|
37
32
|
override(overrides) {
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
return this;
|
42
|
-
}
|
43
|
-
catch (e) {
|
44
|
-
throw new Error(`linted.factory.Ruleset: override`, { cause: e });
|
45
|
-
}
|
33
|
+
if (typeof overrides !== "undefined")
|
34
|
+
this.overrides = new Rule("override", overrides);
|
35
|
+
return this;
|
46
36
|
}
|
47
37
|
}
|
48
|
-
//# sourceMappingURL=
|
38
|
+
//# sourceMappingURL=index.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/factory/ruleset/index.ts"],"names":[],"mappings":"AACA,OAAO,IAAI,MAAM,iBAAiB,CAAC;AAEnC,OAAO,EAAE,IAAI,EAAE,CAAC;AAChB,MAAM,CAAC,OAAO,OAAO,OAAO;IAIG;IAHb,OAAO,CAAkB;IAClC,SAAS,GAAe,IAAI,CAAC;IAEpC,YAA6B,KAAoB,EAAE,GAAG,KAAsB;QAA/C,UAAK,GAAL,KAAK,CAAe;QAC/C,IAAI,CAAC;YACH,IAAI,CAAC,OAAO,GAAG,CAAC,GAAG,KAAK,CAAC,CAAC;QAC5B,CAAC;QACD,OAAO,CAAC,EAAE,CAAC;YAAC,MAAM,IAAI,KAAK,CAAC,wBAAwB,EAAE,EAAE,KAAK,EAAE,CAAC,EAAE,CAAC,CAAC;QAAC,CAAC;IACxE,CAAC;IAED,IAAW,EAAE;QACX,MAAM,EAAE,KAAK,EAAE,GAAG,IAAI,CAAC;QAEvB,OAAO,KAAK,CAAC;IACf,CAAC;IAED,IAAW,OAAO;QAChB,IAAI,CAAC;YACH,MAAM,EAAE,OAAO,EAAE,SAAS,EAAE,GAAG,IAAI,CAAC;YAEpC,OAAO;gBACL,GAAG,OAAO,CAAC,GAAG,CAAC,KAAK,CAAC,EAAE,CAAC,CAAC,KAAK,CAAC,EAAE,EAAE,KAAK,CAAC,KAAK,CAAU,CAAC;gBACzD,GAAG,SAAS,KAAK,IAAI,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,EAAE,EAAE,SAAS,CAAC,KAAK,CAAU,CAAU;aACjF,CAAC;QACJ,CAAC;QACD,OAAO,CAAC,EAAE,CAAC;YAAC,MAAM,IAAI,KAAK,CAAC,iCAAiC,EAAE,EAAE,KAAK,EAAE,CAAC,EAAE,CAAC,CAAC;QAAC,CAAC;IACjF,CAAC;IAEM,QAAQ,CAAC,SAAoC;QAClD,IAAI,OAAO,SAAS,KAAK,WAAW;YAClC,IAAI,CAAC,SAAS,GAAG,IAAI,IAAI,CAAC,UAAU,EAAE,SAAS,CAAC,CAAC;QAEnD,OAAO,IAAI,CAAC;IACd,CAAC;CACF"}
|
@@ -1,7 +1,7 @@
|
|
1
|
-
import type { Input } from "../../../boundary/
|
1
|
+
import type { Input } from "../../../boundary/index.js";
|
2
2
|
export default class {
|
3
3
|
readonly id: string;
|
4
4
|
readonly rules: Input.Rules.Preset.Entry.Object;
|
5
5
|
constructor(id: string, rules: Input.Rules.Preset.Entry.Object);
|
6
6
|
}
|
7
|
-
//# sourceMappingURL=
|
7
|
+
//# sourceMappingURL=index.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/factory/ruleset/rule/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,4BAA4B,CAAC;AAExD,MAAM,CAAC,OAAO;aAEM,EAAE,EAAE,MAAM;aACV,KAAK,EAAE,KAAK,CAAC,KAAK,CAAC,MAAM,CAAC,KAAK,CAAC,MAAM;gBADtC,EAAE,EAAE,MAAM,EACV,KAAK,EAAE,KAAK,CAAC,KAAK,CAAC,MAAM,CAAC,KAAK,CAAC,MAAM;CAEzD"}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/factory/ruleset/rule/index.ts"],"names":[],"mappings":"AAEA,MAAM,CAAC,OAAO;IAEM;IACA;IAFlB,YACkB,EAAU,EACV,KAAsC;QADtC,OAAE,GAAF,EAAE,CAAQ;QACV,UAAK,GAAL,KAAK,CAAiC;IACrD,CAAC;CACL"}
|
package/dist/index.d.ts
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
import type * as Boundary from "./boundary/
|
1
|
+
import type * as Boundary from "./boundary/index.js";
|
2
2
|
export type { Boundary };
|
3
3
|
export default function (plugins: Boundary.Input.Plugins, parsers: Boundary.Input.Parsers, files: {
|
4
4
|
base: Boundary.Input.Files.Base;
|
package/dist/index.d.ts.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,KAAK,QAAQ,MAAM,qBAAqB,CAAC;AAQrD,YAAY,EAAE,QAAQ,EAAE,CAAC;AACzB,MAAM,CAAC,OAAO,WACZ,OAAO,EAAE,QAAQ,CAAC,KAAK,CAAC,OAAO,EAC/B,OAAO,EAAE,QAAQ,CAAC,KAAK,CAAC,OAAO,EAC/B,KAAK,EAAE;IACL,IAAI,EAAE,QAAQ,CAAC,KAAK,CAAC,KAAK,CAAC,IAAI,CAAC;IAChC,QAAQ,EAAE,QAAQ,CAAC,KAAK,CAAC,KAAK,CAAC,QAAQ,CAAC;CACzC,EACD,KAAK,EAAE;IACL,MAAM,EAAE,QAAQ,CAAC,KAAK,CAAC,KAAK,CAAC,MAAM,CAAC;IACpC,SAAS,EAAE,QAAQ,CAAC,KAAK,CAAC,KAAK,CAAC,SAAS,CAAC;CAC3C,GACA,QAAQ,CAAC,MAAM,EAAE,CAkGnB"}
|
package/dist/index.js
CHANGED
@@ -1,5 +1,5 @@
|
|
1
|
-
import scopes, {} from "./scopes/
|
2
|
-
import { Options, Files, Ruleset, Rule, } from "./factory/
|
1
|
+
import scopes, {} from "./scopes/index.js";
|
2
|
+
import { Options, Files, Ruleset, Rule, } from "./factory/index.js";
|
3
3
|
export default function (plugins, parsers, files, rules) {
|
4
4
|
try {
|
5
5
|
const f = new Files(files.base, files.includes), rulesets = {
|
@@ -27,54 +27,28 @@ export default function (plugins, parsers, files, rules) {
|
|
27
27
|
rulesets[scope].override(rules.overrides[scope]);
|
28
28
|
const options = {
|
29
29
|
js: new Options
|
30
|
-
.js(f.files("js"), rulesets.js, {
|
31
|
-
"@stylistic": plugins["@stylistic"],
|
32
|
-
}, scopedParsers.js)
|
33
|
-
.configs,
|
30
|
+
.js(f.files("js"), rulesets.js, { "@stylistic": plugins["@stylistic"] }, scopedParsers.js).configs,
|
34
31
|
ts: new Options
|
35
|
-
.ts(f.files("ts"), rulesets.ts, {
|
36
|
-
"@stylistic": plugins["@stylistic"],
|
37
|
-
"@typescript-eslint": plugins["@typescript-eslint"],
|
38
|
-
}, scopedParsers.ts)
|
39
|
-
.configs,
|
32
|
+
.ts(f.files("ts"), rulesets.ts, { "@stylistic": plugins["@stylistic"], "@typescript-eslint": plugins["@typescript-eslint"] }, scopedParsers.ts).configs,
|
40
33
|
svelte: new Options
|
41
|
-
.svelte(f.files("svelte"), rulesets.svelte, {
|
42
|
-
"@stylistic": plugins["@stylistic"],
|
43
|
-
"@typescript-eslint": plugins["@typescript-eslint"],
|
44
|
-
svelte: plugins.svelte,
|
45
|
-
}, scopedParsers.svelte)
|
46
|
-
.configs,
|
34
|
+
.svelte(f.files("svelte"), rulesets.svelte, { "@stylistic": plugins["@stylistic"], "@typescript-eslint": plugins["@typescript-eslint"], svelte: plugins.svelte }, scopedParsers.svelte).configs,
|
47
35
|
mocha: new Options
|
48
|
-
.mocha(f.files("mocha"), rulesets.mocha, {
|
49
|
-
"@stylistic": plugins["@stylistic"],
|
50
|
-
"@typescript-eslint": plugins["@typescript-eslint"],
|
51
|
-
mocha: plugins.mocha,
|
52
|
-
}, scopedParsers.mocha)
|
53
|
-
.configs,
|
36
|
+
.mocha(f.files("mocha"), rulesets.mocha, { "@stylistic": plugins["@stylistic"], "@typescript-eslint": plugins["@typescript-eslint"], mocha: plugins.mocha }, scopedParsers.mocha).configs,
|
54
37
|
html: new Options
|
55
|
-
.html(f.files("html"), rulesets.html, { "@html-eslint": plugins["@html-eslint"] }, scopedParsers.html)
|
56
|
-
.configs,
|
38
|
+
.html(f.files("html"), rulesets.html, { "@html-eslint": plugins["@html-eslint"] }, scopedParsers.html).configs,
|
57
39
|
json: new Options
|
58
|
-
.json(f.files("json"), rulesets.json, { jsonc: plugins.jsonc }, scopedParsers.json)
|
59
|
-
.configs,
|
40
|
+
.json(f.files("json"), rulesets.json, { jsonc: plugins.jsonc }, scopedParsers.json).configs,
|
60
41
|
jsonc: new Options
|
61
|
-
.jsonc(f.files("jsonc"), rulesets.jsonc, { jsonc: plugins.jsonc }, scopedParsers.jsonc)
|
62
|
-
.configs,
|
42
|
+
.jsonc(f.files("jsonc"), rulesets.jsonc, { jsonc: plugins.jsonc }, scopedParsers.jsonc).configs,
|
63
43
|
yml: new Options
|
64
|
-
.yml(f.files("yml"), rulesets.yml, { yml: plugins.yml }, scopedParsers.yml)
|
65
|
-
.configs,
|
44
|
+
.yml(f.files("yml"), rulesets.yml, { yml: plugins.yml }, scopedParsers.yml).configs,
|
66
45
|
md: new Options
|
67
|
-
.md(f.files("md"), rulesets.md, {
|
68
|
-
markdownlint: plugins.markdownlint,
|
69
|
-
}, scopedParsers.md)
|
70
|
-
.configs,
|
46
|
+
.md(f.files("md"), rulesets.md, { markdownlint: plugins.markdownlint }, scopedParsers.md).configs,
|
71
47
|
};
|
72
|
-
return scopes
|
73
|
-
.map(scope => options[scope])
|
74
|
-
.flat();
|
48
|
+
return scopes.flatMap(scope => options[scope]);
|
75
49
|
}
|
76
50
|
catch (e) {
|
77
|
-
throw new Error(`linted
|
51
|
+
throw new Error(`linted-core`, { cause: e });
|
78
52
|
}
|
79
53
|
}
|
80
54
|
//# sourceMappingURL=index.js.map
|
package/dist/index.js.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,MAAM,EAAE,EAAc,MAAM,mBAAmB,CAAC;AAEvD,OAAO,EACL,OAAO,EACP,KAAK,EACL,OAAO,EACP,IAAI,GACL,MAAM,oBAAoB,CAAC;AAG5B,MAAM,CAAC,OAAO,WACZ,OAA+B,EAC/B,OAA+B,EAC/B,KAGC,EACD,KAGC;IAED,IAAI,CAAC;QACH,MAAM,CAAC,GAAG,IAAI,KAAK,CAAC,KAAK,CAAC,IAAI,EAAE,KAAK,CAAC,QAAQ,CAAC,EAC/C,QAAQ,GAAG;YACT,EAAE,EAAE,IAAI,OAAO,CAAC,IAAI,EAAE,GAAG,KAAK,CAAC,MAAM,CAAC,EAAE,CAAC,GAAG,CAAC,IAAI,CAAC,EAAE,C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CACpB,CAAC,OAAO;YACX,GAAG,EAAE,IAAI,OAAO;iBACb,GAAG,CACF,CAAC,CAAC,KAAK,CAAC,KAAK,CAAC,EACd,QAAQ,CAAC,GAAG,EACZ,EAAE,GAAG,EAAE,OAAO,CAAC,GAAG,EAAE,EACpB,aAAa,CAAC,GAAG,CAClB,CAAC,OAAO;YACX,EAAE,EAAE,IAAI,OAAO;iBACZ,EAAE,CACD,CAAC,CAAC,KAAK,CAAC,IAAI,CAAC,EACb,QAAQ,CAAC,EAAE,EACX,EAAE,YAAY,EAAE,OAAO,CAAC,YAAY,EAAE,EACtC,aAAa,CAAC,EAAE,CACjB,CAAC,OAAO;SACZ,CAAC;QAEF,OAAO,MAAM,CAAC,OAAO,CAAC,KAAK,CAAC,EAAE,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC,CAAC;IACjD,CAAC;IACD,OAAO,CAAC,EAAE,CAAC;QAAC,MAAM,IAAI,KAAK,CAAC,aAAa,EAAE,EAAE,KAAK,EAAE,CAAC,EAAE,CAAC,CAAC;IAAC,CAAC;AAC7D,CAAC"}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/scopes/index.ts"],"names":[],"mappings":"AAAA,QAAA,MAAM,MAAM,gFAUF,CAAC;AAEX,eAAe,MAAM,CAAC;AACtB,MAAM,MAAM,KAAK,GAAG,CAAC,OAAO,MAAM,CAAC,CAAC,MAAM,CAAC,CAAC"}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/scopes/index.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,GAAG;IACb,IAAI;IACJ,IAAI;IACJ,QAAQ;IACR,OAAO;IACP,MAAM;IACN,MAAM;IACN,OAAO;IACP,KAAK;IACL,IAAI;CACI,CAAC;AAEX,eAAe,MAAM,CAAC"}
|