@eslinted/core 0.0.1-rc.0 → 0.0.1-rc.3
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/index.d.ts +6 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +65 -1
- package/dist/index.js.map +1 -1
- package/dist/options/HtmlOption.d.ts +5 -0
- package/dist/options/HtmlOption.d.ts.map +1 -0
- package/dist/options/HtmlOption.js +16 -0
- package/dist/options/HtmlOption.js.map +1 -0
- package/dist/options/JsOption.d.ts +5 -0
- package/dist/options/JsOption.d.ts.map +1 -0
- package/dist/options/JsOption.js +19 -0
- package/dist/options/JsOption.js.map +1 -0
- package/dist/options/JsonOption.d.ts +5 -0
- package/dist/options/JsonOption.d.ts.map +1 -0
- package/dist/options/JsonOption.js +16 -0
- package/dist/options/JsonOption.js.map +1 -0
- package/dist/options/JsoncOption.d.ts +5 -0
- package/dist/options/JsoncOption.d.ts.map +1 -0
- package/dist/options/JsoncOption.js +16 -0
- package/dist/options/JsoncOption.js.map +1 -0
- package/dist/options/MdOption.d.ts +5 -0
- package/dist/options/MdOption.d.ts.map +1 -0
- package/dist/options/MdOption.js +16 -0
- package/dist/options/MdOption.js.map +1 -0
- package/dist/options/SvelteOption.d.ts +10 -0
- package/dist/options/SvelteOption.d.ts.map +1 -0
- package/dist/options/SvelteOption.js +28 -0
- package/dist/options/SvelteOption.js.map +1 -0
- package/dist/options/TsOption.d.ts +8 -0
- package/dist/options/TsOption.d.ts.map +1 -0
- package/dist/options/TsOption.js +25 -0
- package/dist/options/TsOption.js.map +1 -0
- package/dist/options/YmlOption.d.ts +5 -0
- package/dist/options/YmlOption.d.ts.map +1 -0
- package/dist/options/YmlOption.js +16 -0
- package/dist/options/YmlOption.js.map +1 -0
- package/dist/options/option/Option.d.ts +5 -0
- package/dist/options/option/Option.d.ts.map +1 -0
- package/dist/options/option/Option.js +7 -0
- package/dist/options/option/Option.js.map +1 -0
- package/dist/options.d.ts +18 -0
- package/dist/options.d.ts.map +1 -0
- package/dist/options.js +17 -0
- package/dist/options.js.map +1 -0
- package/dist/rulesets/ruleset/Ruleset.d.ts +12 -0
- package/dist/rulesets/ruleset/Ruleset.d.ts.map +1 -0
- package/dist/rulesets/ruleset/Ruleset.js +27 -0
- package/dist/rulesets/ruleset/Ruleset.js.map +1 -0
- package/dist/rulesets/ruleset/rule/Rule.d.ts +6 -0
- package/dist/rulesets/ruleset/rule/Rule.d.ts.map +1 -0
- package/dist/rulesets/ruleset/rule/Rule.js +9 -0
- package/dist/rulesets/ruleset/rule/Rule.js.map +1 -0
- package/dist/scopes.d.ts +3 -0
- package/dist/scopes.d.ts.map +1 -0
- package/dist/scopes.js +11 -0
- package/dist/scopes.js.map +1 -0
- package/interface/IConfig.d.ts +21 -0
- package/interface/files/IFiles.d.ts +1 -0
- package/interface/option/IOption.d.ts +25 -0
- package/interface/option/language/IOLanguage.d.ts +15 -0
- package/interface/option/language/ecma/IOLanguageEcma.d.ts +20 -0
- package/interface/option/language/globals/IOLanguageGlobals.d.ts +3 -0
- package/interface/option/language/parser/IOLanguageParser.d.ts +3 -0
- package/interface/option/language/parserOptions/IOLanguageParserOptions.d.ts +5 -0
- package/interface/option/language/source/IOLanguageSource.d.ts +12 -0
- package/interface/option/linter/IOLinter.d.ts +30 -0
- package/interface/option/name/IOName.d.ts +3 -0
- package/interface/option/plugins/IOPlugins.d.ts +3 -0
- package/interface/option/processor/IOProcessor.d.ts +3 -0
- package/interface/rules/IRules.d.ts +1 -0
- package/interface/rules/rule/IRule.d.ts +1 -0
- package/interface/rules/rule/state/RuleSeverity.d.ts +5 -0
- package/package.json +2 -2
- package/src/Scope.d.ts +9 -0
- package/src/index.ts +113 -0
- package/src/options/HtmlOption.ts +31 -0
- package/src/options/JsOption.ts +27 -0
- package/src/options/JsonOption.ts +31 -0
- package/src/options/JsoncOption.ts +31 -0
- package/src/options/MdOption.ts +31 -0
- package/src/options/SvelteOption.ts +47 -0
- package/src/options/TsOption.ts +40 -0
- package/src/options/YmlOption.ts +31 -0
- package/src/options/option/Option.ts +25 -0
- package/src/options.ts +17 -0
- package/src/plugins.d.ts +24 -0
- package/src/rulesets/ruleset/Ruleset.ts +50 -0
- package/src/rulesets/ruleset/rule/Rule.ts +6 -0
- package/src/scopes.ts +11 -0
- package/tsconfig.json +4 -2
- package/types/literal/number/base32.d.ts +19 -0
- package/types/literal/number/base64.d.ts +35 -0
- package/types/literal/number/binary.d.ts +4 -0
- package/types/literal/number/decimal.d.ts +5 -0
- package/types/literal/number/hex.d.ts +10 -0
- package/types/literal/number/octal.d.ts +7 -0
- package/types/literal/number/quatral.d.ts +4 -0
- package/types/literal/number/ternary.d.ts +4 -0
- package/types/literal/string/base64char.d.ts +13 -0
- package/types/literal/string/digit.d.ts +12 -0
- package/types/literal/string/hexchar.d.ts +9 -0
- package/types/literal/string/letter.d.ts +35 -0
- package/types/safe/Safe.d.ts +2 -0
- package/types/safe/numbers/finite/Finite.d.ts +2 -0
- package/types/safe/numbers/finite.d.ts +1 -0
- package/types/safe/numbers/fint.d.ts +1 -0
- package/types/safe/numbers/int/Int.d.ts +2 -0
- package/types/safe/numbers/int.d.ts +1 -0
- package/types/safe/numbers/numberful.d.ts +1 -0
- package/types/safe/numbers/polarity/Negative.d.ts +4 -0
- package/types/safe/numbers/polarity/Positive.d.ts +4 -0
- package/types/safe/numbers/polarity/pole/Pole.d.ts +18 -0
- package/types/safe/primitive.d.ts +5 -0
- package/types/safe/strings/char.d.ts +1 -0
- package/types/safe/strings/length/PropLength.d.ts +3 -0
- package/types/safe/strings/stringful.d.ts +1 -0
- package/types/utility/interface/construct/Particord.d.ts +1 -0
- package/types/utility/interface/construct/Property.d.ts +8 -0
- package/types/utility/interface/construct/Recordful.d.ts +5 -0
- package/types/utility/interface/construct/Table.d.ts +3 -0
- package/types/utility/interface/construct/properties/Field.d.ts +1 -0
- package/types/utility/interface/construct/properties/Flag.d.ts +1 -0
- package/types/utility/interface/construct/properties/Limit.d.ts +8 -0
- package/types/utility/interface/construct/properties/List.d.ts +1 -0
- package/types/utility/interface/construct/properties/Listish.d.ts +1 -0
- package/types/utility/interface/construct/properties/Scalar.d.ts +1 -0
- package/types/utility/interface/construct/tables/FieldTable.d.ts +1 -0
- package/types/utility/interface/construct/tables/FlagTable.d.ts +1 -0
- package/types/utility/interface/construct/tables/ListTable.d.ts +1 -0
- package/types/utility/interface/construct/tables/ListishTable.d.ts +1 -0
- package/types/utility/interface/construct/tables/ScalarTable.d.ts +1 -0
- package/types/utility/interface/identity/Interface.d.ts +80 -0
- package/types/utility/interface/identity/Keys.d.ts +71 -0
- package/types/utility/interface/transform/Unrequire.d.ts +45 -0
- package/types/utility/iterable/construct/ArrayN.d.ts +12 -0
- package/types/utility/iterable/construct/Tuple.d.ts +27 -0
- package/types/utility/iterable/construct/arrays/Arrays.d.ts +1 -0
- package/types/utility/iterable/construct/tuples/Tuples.d.ts +9 -0
- package/types/utility/iterable/identity/DyadType.d.ts +3 -0
- package/types/utility/iterable/identity/MonadType.d.ts +48 -0
- package/types/utility/iterable/identity/TriadType.d.ts +3 -0
- package/types/utility/iterable/identity/array/ArrayType.d.ts +65 -0
- package/types/utility/iterable/identity/array/length/ArrayLength.d.ts +16 -0
- package/types/utility/iterable/transform/Join.d.ts +19 -0
- package/types/utility/iterable/transform/Unflat.d.ts +3 -0
- package/types/utility/iterable/transform/stringarray/Chain.d.ts +30 -0
- package/types/utility/iterable/transform/stringarray/PathN.d.ts +3 -0
- package/types/utility/iterable/transform/stringarray/stringify/Stringify.d.ts +5 -0
- package/types/utility/length/Length.d.ts +35 -0
- package/types/utility/null/null.d.ts +1 -0
- package/types/utility/null/nullable.d.ts +1 -0
- package/types/utility/primitive/Primeval.d.ts +42 -0
- package/types/utility/primitive/boolean/True.d.ts +30 -0
- package/types/utility/primitive/number/Numbered.d.ts +35 -0
- package/types/utility/primitive/string/literal.d.ts +22 -0
- package/types/utility/primitive/string/literalful.d.ts +28 -0
package/dist/index.d.ts
CHANGED
@@ -1 +1,7 @@
|
|
1
|
+
import type Ruleset from "./rulesets/ruleset/Ruleset.js";
|
2
|
+
export { default as Ruleset } from "./rulesets/ruleset/Ruleset.js";
|
3
|
+
export { Rule } from "./rulesets/ruleset/Ruleset.js";
|
4
|
+
export default function (plugins: Plugins, parsers: Record<Scope, unknown>, files: Record<Scope, string[]>, rulesets: {
|
5
|
+
[S in Scope]: Ruleset<S>;
|
6
|
+
}): IConfig[];
|
1
7
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/index.d.ts.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":""}
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,OAAO,MAAM,+BAA+B,CAAC;AAEzD,OAAO,EAAE,OAAO,IAAI,OAAO,EAAE,MAAM,+BAA+B,CAAC;AACnE,OAAO,EAAE,IAAI,EAAE,MAAM,+BAA+B,CAAC;AACrD,MAAM,CAAC,OAAO,WACZ,OAAO,EAAE,OAAO,EAChB,OAAO,EAAE,MAAM,CAAC,KAAK,EAAE,OAAO,CAAC,EAC/B,KAAK,EAAE,MAAM,CAAC,KAAK,EAAE,MAAM,EAAE,CAAC,EAC9B,QAAQ,EAAE;KAAG,CAAC,IAAI,KAAK,GAAG,OAAO,CAAC,CAAC,CAAC;CAAE,GACrC,OAAO,EAAE,CAqGX"}
|
package/dist/index.js
CHANGED
@@ -1,2 +1,66 @@
|
|
1
|
-
|
1
|
+
import scopes from "./scopes.js";
|
2
|
+
import options from "./options.js";
|
3
|
+
export { default as Ruleset } from "./rulesets/ruleset/Ruleset.js";
|
4
|
+
export { Rule } from "./rulesets/ruleset/Ruleset.js";
|
5
|
+
export default function (plugins, parsers, files, rulesets) {
|
6
|
+
try {
|
7
|
+
const instantiatedOptions = {
|
8
|
+
js: new options
|
9
|
+
.js(plugins
|
10
|
+
.js, ...files
|
11
|
+
.js)
|
12
|
+
.body,
|
13
|
+
ts: new options
|
14
|
+
.ts(plugins
|
15
|
+
.ts, parsers
|
16
|
+
.ts, ...files
|
17
|
+
.ts)
|
18
|
+
.body,
|
19
|
+
svelte: new options
|
20
|
+
.svelte(plugins
|
21
|
+
.svelte, parsers
|
22
|
+
.svelte, parsers
|
23
|
+
.ts, ...files
|
24
|
+
.svelte)
|
25
|
+
.body,
|
26
|
+
html: new options
|
27
|
+
.html(plugins
|
28
|
+
.html, parsers
|
29
|
+
.html, ...files
|
30
|
+
.html)
|
31
|
+
.body,
|
32
|
+
json: new options
|
33
|
+
.json(plugins
|
34
|
+
.json, parsers
|
35
|
+
.json, ...files
|
36
|
+
.json)
|
37
|
+
.body,
|
38
|
+
jsonc: new options
|
39
|
+
.jsonc(plugins
|
40
|
+
.jsonc, parsers
|
41
|
+
.jsonc, ...files
|
42
|
+
.jsonc)
|
43
|
+
.body,
|
44
|
+
yml: new options
|
45
|
+
.yml(plugins
|
46
|
+
.yml, parsers
|
47
|
+
.yml, ...files
|
48
|
+
.yml)
|
49
|
+
.body,
|
50
|
+
};
|
51
|
+
return scopes
|
52
|
+
.map(scope => instantiatedOptions[scope].files.length > 0
|
53
|
+
? rulesets[scope].flat.map(rules => {
|
54
|
+
return {
|
55
|
+
rules,
|
56
|
+
...instantiatedOptions[scope],
|
57
|
+
};
|
58
|
+
})
|
59
|
+
: [])
|
60
|
+
.flat();
|
61
|
+
}
|
62
|
+
catch (e) {
|
63
|
+
throw new Error(`linted(): Caught exception.`, { cause: e });
|
64
|
+
}
|
65
|
+
}
|
2
66
|
//# 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,MAAM,aAAa,CAAC;AACjC,OAAO,OAAO,MAAM,cAAc,CAAC;AAGnC,OAAO,EAAE,OAAO,IAAI,OAAO,EAAE,MAAM,+BAA+B,CAAC;AACnE,OAAO,EAAE,IAAI,EAAE,MAAM,+BAA+B,CAAC;AACrD,MAAM,CAAC,OAAO,WACZ,OAAgB,EAChB,OAA+B,EAC/B,KAA8B,EAC9B,QAAsC;IAEtC,IAAI,CAAC;QACH,MAAM,mBAAmB,GAIrB;YACF,EAAE,EAAE,IAAI,OAAO;iBACZ,EAAE,CACD,OAAO;iBACJ,EAAE,EACL,GAAG,KAAK;iBACL,EAAE,CACN;iBACA,IAAI;YACP,EAAE,EAAE,IAAI,OAAO;iBACZ,EAAE,CACD,OAAO;iBACJ,EAAE,EACL,OAAO;iBACJ,EAAE,EACL,GAAG,KAAK;iBACL,EAAE,CACN;iBACA,IAAI;YACP,MAAM,EAAE,IAAI,OAAO;iBAChB,MAAM,CACL,OAAO;iBACJ,MAAM,EACT,OAAO;iBACJ,MAAM,EACT,OAAO;iBACJ,EAAE,EACL,GAAG,KAAK;iBACL,MAAM,CACV;iBACA,IAAI;YACP,IAAI,EAAE,IAAI,OAAO;iBACd,IAAI,CACH,OAAO;iBACJ,IAAI,EACP,OAAO;iBACJ,IAAI,EACP,GAAG,KAAK;iBACL,IAAI,CACR;iBACA,IAAI;YACP,IAAI,EAAE,IAAI,OAAO;iBACd,IAAI,CACH,OAAO;iBACJ,IAAI,EACP,OAAO;iBACJ,IAAI,EACP,GAAG,KAAK;iBACL,IAAI,CACR;iBACA,IAAI;YACP,KAAK,EAAE,IAAI,OAAO;iBACf,KAAK,CACJ,OAAO;iBACJ,KAAK,EACR,OAAO;iBACJ,KAAK,EACR,GAAG,KAAK;iBACL,KAAK,CACT;iBACA,IAAI;YACP,GAAG,EAAE,IAAI,OAAO;iBACb,GAAG,CACF,OAAO;iBACJ,GAAG,EACN,OAAO;iBACJ,GAAG,EACN,GAAG,KAAK;iBACL,GAAG,CACP;iBACA,IAAI;SACR,CAAC;QAEF,OAAO,MAAM;aACV,GAAG,CACF,KAAK,CAAC,EAAE,CACN,mBAAmB,CAAC,KAAK,CAAC,CAAC,KAAK,CAAC,MAAM,GAAG,CAAC;YACzC,CAAC,CAAC,QAAQ,CAAC,KAAK,CAAC,CAAC,IAAI,CAAC,GAAG,CACxB,KAAK,CAAC,EAAE;gBACN,OAAO;oBACL,KAAK;oBACL,GAAG,mBAAmB,CAAC,KAAK,CAAC;iBAC9B,CAAC;YACJ,CAAC,CACF;YACD,CAAC,CAAC,EAAE,CACT;aACA,IAAI,EAAE,CAAC;IACZ,CAAC;IACD,OAAO,CAAC,EAAE,CAAC;QACT,MAAM,IAAI,KAAK,CACb,6BAA6B,EAC7B,EAAE,KAAK,EAAE,CAAC,EAAE,CACb,CAAC;IACJ,CAAC;AACH,CAAC"}
|
@@ -0,0 +1,5 @@
|
|
1
|
+
import Option from "./option/Option.js";
|
2
|
+
export default class HtmlOption extends Option<"html", "@html-eslint", true, never, never, never, never, never> {
|
3
|
+
constructor(plugins: HtmlOption["body"]["plugins"], parser: HtmlOption["body"]["languageOptions"]["parser"], ...files: string[]);
|
4
|
+
}
|
5
|
+
//# sourceMappingURL=HtmlOption.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"HtmlOption.d.ts","sourceRoot":"","sources":["../../src/options/HtmlOption.ts"],"names":[],"mappings":"AAAA,OAAO,MAAM,MAAM,oBAAoB,CAAC;AAExC,MAAM,CAAC,OAAO,OAAO,UAAW,SAAQ,MAAM,CAC5C,MAAM,EACN,cAAc,EACd,IAAI,EACJ,KAAK,EACL,KAAK,EACL,KAAK,EACL,KAAK,EACL,KAAK,CACN;gBAEG,OAAO,EAAE,UAAU,CAAC,MAAM,CAAC,CAAC,SAAS,CAAC,EACtC,MAAM,EAAE,UAAU,CAAC,MAAM,CAAC,CAAC,iBAAiB,CAAC,CAAC,QAAQ,CAAC,EACvD,GAAG,KAAK,EAAE,MAAM,EAAE;CAerB"}
|
@@ -0,0 +1,16 @@
|
|
1
|
+
import Option from "./option/Option.js";
|
2
|
+
export default class HtmlOption extends Option {
|
3
|
+
constructor(plugins, parser, ...files) {
|
4
|
+
super({
|
5
|
+
name: "linted/scope:html",
|
6
|
+
files,
|
7
|
+
plugins,
|
8
|
+
linterOptions: {
|
9
|
+
noInlineConfig: true,
|
10
|
+
reportUnusedDisableDirectives: "error",
|
11
|
+
},
|
12
|
+
languageOptions: { parser },
|
13
|
+
});
|
14
|
+
}
|
15
|
+
}
|
16
|
+
//# sourceMappingURL=HtmlOption.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"HtmlOption.js","sourceRoot":"","sources":["../../src/options/HtmlOption.ts"],"names":[],"mappings":"AAAA,OAAO,MAAM,MAAM,oBAAoB,CAAC;AAExC,MAAM,CAAC,OAAO,OAAO,UAAW,SAAQ,MASvC;IACC,YACE,OAAsC,EACtC,MAAuD,EACvD,GAAG,KAAe;QAElB,KAAK,CACH;YACE,IAAI,EAAE,mBAAmB;YACzB,KAAK;YACL,OAAO;YACP,aAAa,EAAE;gBACb,cAAc,EAAE,IAAI;gBACpB,6BAA6B,EAAE,OAAO;aACvC;YACD,eAAe,EAAE,EAAE,MAAM,EAAE;SAC5B,CACF,CAAC;IACJ,CAAC;CACF"}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"JsOption.d.ts","sourceRoot":"","sources":["../../src/options/JsOption.ts"],"names":[],"mappings":"AAAA,OAAO,MAAM,MAAM,oBAAoB,CAAC;AAExC,MAAM,CAAC,OAAO,OAAO,QAAS,SAAQ,MAAM,CAC1C,IAAI,EACJ,YAAY,CACb;gBAEG,OAAO,EAAE,QAAQ,CAAC,MAAM,CAAC,CAAC,SAAS,CAAC,EACpC,GAAG,KAAK,EAAE,MAAM,EAAE;CAkBrB"}
|
@@ -0,0 +1,19 @@
|
|
1
|
+
import Option from "./option/Option.js";
|
2
|
+
export default class JsOption extends Option {
|
3
|
+
constructor(plugins, ...files) {
|
4
|
+
super({
|
5
|
+
name: "linted/scope:js",
|
6
|
+
files,
|
7
|
+
plugins,
|
8
|
+
linterOptions: {
|
9
|
+
noInlineConfig: true,
|
10
|
+
reportUnusedDisableDirectives: "error",
|
11
|
+
},
|
12
|
+
languageOptions: {
|
13
|
+
ecmaVersion: "latest",
|
14
|
+
sourceType: "module",
|
15
|
+
},
|
16
|
+
});
|
17
|
+
}
|
18
|
+
}
|
19
|
+
//# sourceMappingURL=JsOption.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"JsOption.js","sourceRoot":"","sources":["../../src/options/JsOption.ts"],"names":[],"mappings":"AAAA,OAAO,MAAM,MAAM,oBAAoB,CAAC;AAExC,MAAM,CAAC,OAAO,OAAO,QAAS,SAAQ,MAGrC;IACC,YACE,OAAoC,EACpC,GAAG,KAAe;QAElB,KAAK,CACH;YACE,IAAI,EAAE,iBAAiB;YACvB,KAAK;YACL,OAAO;YACP,aAAa,EAAE;gBACb,cAAc,EAAE,IAAI;gBACpB,6BAA6B,EAAE,OAAO;aACvC;YACD,eAAe,EAAE;gBACf,WAAW,EAAE,QAAQ;gBACrB,UAAU,EAAE,QAAQ;aACrB;SACF,CACF,CAAC;IACJ,CAAC;CACF"}
|
@@ -0,0 +1,5 @@
|
|
1
|
+
import Option from "./option/Option.js";
|
2
|
+
export default class JsonOption extends Option<"json", "jsonc", true, never, never, never, never, never> {
|
3
|
+
constructor(plugins: JsonOption["body"]["plugins"], parser: JsonOption["body"]["languageOptions"]["parser"], ...files: string[]);
|
4
|
+
}
|
5
|
+
//# sourceMappingURL=JsonOption.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"JsonOption.d.ts","sourceRoot":"","sources":["../../src/options/JsonOption.ts"],"names":[],"mappings":"AAAA,OAAO,MAAM,MAAM,oBAAoB,CAAC;AAExC,MAAM,CAAC,OAAO,OAAO,UAAW,SAAQ,MAAM,CAC5C,MAAM,EACN,OAAO,EACP,IAAI,EACJ,KAAK,EACL,KAAK,EACL,KAAK,EACL,KAAK,EACL,KAAK,CACN;gBAEG,OAAO,EAAE,UAAU,CAAC,MAAM,CAAC,CAAC,SAAS,CAAC,EACtC,MAAM,EAAE,UAAU,CAAC,MAAM,CAAC,CAAC,iBAAiB,CAAC,CAAC,QAAQ,CAAC,EACvD,GAAG,KAAK,EAAE,MAAM,EAAE;CAerB"}
|
@@ -0,0 +1,16 @@
|
|
1
|
+
import Option from "./option/Option.js";
|
2
|
+
export default class JsonOption extends Option {
|
3
|
+
constructor(plugins, parser, ...files) {
|
4
|
+
super({
|
5
|
+
name: "linted/scope:json",
|
6
|
+
files,
|
7
|
+
plugins,
|
8
|
+
linterOptions: {
|
9
|
+
noInlineConfig: true,
|
10
|
+
reportUnusedDisableDirectives: "error",
|
11
|
+
},
|
12
|
+
languageOptions: { parser },
|
13
|
+
});
|
14
|
+
}
|
15
|
+
}
|
16
|
+
//# sourceMappingURL=JsonOption.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"JsonOption.js","sourceRoot":"","sources":["../../src/options/JsonOption.ts"],"names":[],"mappings":"AAAA,OAAO,MAAM,MAAM,oBAAoB,CAAC;AAExC,MAAM,CAAC,OAAO,OAAO,UAAW,SAAQ,MASvC;IACC,YACE,OAAsC,EACtC,MAAuD,EACvD,GAAG,KAAe;QAElB,KAAK,CACH;YACE,IAAI,EAAE,mBAAmB;YACzB,KAAK;YACL,OAAO;YACP,aAAa,EAAE;gBACb,cAAc,EAAE,IAAI;gBACpB,6BAA6B,EAAE,OAAO;aACvC;YACD,eAAe,EAAE,EAAE,MAAM,EAAE;SAC5B,CACF,CAAC;IACJ,CAAC;CACF"}
|
@@ -0,0 +1,5 @@
|
|
1
|
+
import Option from "./option/Option.js";
|
2
|
+
export default class JsoncOption extends Option<"jsonc", "jsonc", true, never, never, never, never, never> {
|
3
|
+
constructor(plugins: JsoncOption["body"]["plugins"], parser: JsoncOption["body"]["languageOptions"]["parser"], ...files: string[]);
|
4
|
+
}
|
5
|
+
//# sourceMappingURL=JsoncOption.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"JsoncOption.d.ts","sourceRoot":"","sources":["../../src/options/JsoncOption.ts"],"names":[],"mappings":"AAAA,OAAO,MAAM,MAAM,oBAAoB,CAAC;AAExC,MAAM,CAAC,OAAO,OAAO,WAAY,SAAQ,MAAM,CAC7C,OAAO,EACP,OAAO,EACP,IAAI,EACJ,KAAK,EACL,KAAK,EACL,KAAK,EACL,KAAK,EACL,KAAK,CACN;gBAEG,OAAO,EAAE,WAAW,CAAC,MAAM,CAAC,CAAC,SAAS,CAAC,EACvC,MAAM,EAAE,WAAW,CAAC,MAAM,CAAC,CAAC,iBAAiB,CAAC,CAAC,QAAQ,CAAC,EACxD,GAAG,KAAK,EAAE,MAAM,EAAE;CAerB"}
|
@@ -0,0 +1,16 @@
|
|
1
|
+
import Option from "./option/Option.js";
|
2
|
+
export default class JsoncOption extends Option {
|
3
|
+
constructor(plugins, parser, ...files) {
|
4
|
+
super({
|
5
|
+
name: "linted/scope:jsonc",
|
6
|
+
files,
|
7
|
+
plugins,
|
8
|
+
linterOptions: {
|
9
|
+
noInlineConfig: true,
|
10
|
+
reportUnusedDisableDirectives: "error",
|
11
|
+
},
|
12
|
+
languageOptions: { parser },
|
13
|
+
});
|
14
|
+
}
|
15
|
+
}
|
16
|
+
//# sourceMappingURL=JsoncOption.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"JsoncOption.js","sourceRoot":"","sources":["../../src/options/JsoncOption.ts"],"names":[],"mappings":"AAAA,OAAO,MAAM,MAAM,oBAAoB,CAAC;AAExC,MAAM,CAAC,OAAO,OAAO,WAAY,SAAQ,MASxC;IACC,YACE,OAAuC,EACvC,MAAwD,EACxD,GAAG,KAAe;QAElB,KAAK,CACH;YACE,IAAI,EAAE,oBAAoB;YAC1B,KAAK;YACL,OAAO;YACP,aAAa,EAAE;gBACb,cAAc,EAAE,IAAI;gBACpB,6BAA6B,EAAE,OAAO;aACvC;YACD,eAAe,EAAE,EAAE,MAAM,EAAE;SAC5B,CACF,CAAC;IACJ,CAAC;CACF"}
|
@@ -0,0 +1,5 @@
|
|
1
|
+
import Option from "./option/Option.js";
|
2
|
+
export default class MdOption extends Option<"md", "yml", true, never, never, never, never, never> {
|
3
|
+
constructor(plugins: MdOption["body"]["plugins"], parser: MdOption["body"]["languageOptions"]["parser"], ...files: string[]);
|
4
|
+
}
|
5
|
+
//# sourceMappingURL=MdOption.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"MdOption.d.ts","sourceRoot":"","sources":["../../src/options/MdOption.ts"],"names":[],"mappings":"AAAA,OAAO,MAAM,MAAM,oBAAoB,CAAC;AAExC,MAAM,CAAC,OAAO,OAAO,QAAS,SAAQ,MAAM,CAC1C,IAAI,EACJ,KAAK,EACL,IAAI,EACJ,KAAK,EACL,KAAK,EACL,KAAK,EACL,KAAK,EACL,KAAK,CACN;gBAEG,OAAO,EAAE,QAAQ,CAAC,MAAM,CAAC,CAAC,SAAS,CAAC,EACpC,MAAM,EAAE,QAAQ,CAAC,MAAM,CAAC,CAAC,iBAAiB,CAAC,CAAC,QAAQ,CAAC,EACrD,GAAG,KAAK,EAAE,MAAM,EAAE;CAerB"}
|
@@ -0,0 +1,16 @@
|
|
1
|
+
import Option from "./option/Option.js";
|
2
|
+
export default class MdOption extends Option {
|
3
|
+
constructor(plugins, parser, ...files) {
|
4
|
+
super({
|
5
|
+
name: "linted/scope:md",
|
6
|
+
files,
|
7
|
+
plugins,
|
8
|
+
linterOptions: {
|
9
|
+
noInlineConfig: true,
|
10
|
+
reportUnusedDisableDirectives: "error",
|
11
|
+
},
|
12
|
+
languageOptions: { parser },
|
13
|
+
});
|
14
|
+
}
|
15
|
+
}
|
16
|
+
//# sourceMappingURL=MdOption.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"MdOption.js","sourceRoot":"","sources":["../../src/options/MdOption.ts"],"names":[],"mappings":"AAAA,OAAO,MAAM,MAAM,oBAAoB,CAAC;AAExC,MAAM,CAAC,OAAO,OAAO,QAAS,SAAQ,MASrC;IACC,YACE,OAAoC,EACpC,MAAqD,EACrD,GAAG,KAAe;QAElB,KAAK,CACH;YACE,IAAI,EAAE,iBAAiB;YACvB,KAAK;YACL,OAAO;YACP,aAAa,EAAE;gBACb,cAAc,EAAE,IAAI;gBACpB,6BAA6B,EAAE,OAAO;aACvC;YACD,eAAe,EAAE,EAAE,MAAM,EAAE;SAC5B,CACF,CAAC;IACJ,CAAC;CACF"}
|
@@ -0,0 +1,10 @@
|
|
1
|
+
import Option from "./option/Option.js";
|
2
|
+
import type TsOption from "./TsOption.js";
|
3
|
+
export default class SvelteOption extends Option<"svelte", "svelte" | keyof TsOption["body"]["plugins"], true, TsOption["body"]["languageOptions"]["parserOptions"] & {
|
4
|
+
parser: unknown;
|
5
|
+
} & {
|
6
|
+
extraFileExtensions: [".svelte"];
|
7
|
+
}, never, "svelte/svelte"> {
|
8
|
+
constructor(plugins: SvelteOption["body"]["plugins"], svelteParser: SvelteOption["body"]["languageOptions"]["parser"], tsParser: SvelteOption["body"]["languageOptions"]["parserOptions"]["parser"], ...files: string[]);
|
9
|
+
}
|
10
|
+
//# sourceMappingURL=SvelteOption.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"SvelteOption.d.ts","sourceRoot":"","sources":["../../src/options/SvelteOption.ts"],"names":[],"mappings":"AAAA,OAAO,MAAM,MAAM,oBAAoB,CAAC;AACxC,OAAO,KAAK,QAAQ,MAAM,eAAe,CAAC;AAE1C,MAAM,CAAC,OAAO,OAAO,YAAa,SAAQ,MAAM,CAC9C,QAAQ,EACN,QAAQ,GACR,MAAM,QAAQ,CAAC,MAAM,CAAC,CAAC,SAAS,CAAC,EAEnC,IAAI,EACF,QAAQ,CAAC,MAAM,CAAC,CAAC,iBAAiB,CAAC,CAAC,eAAe,CAAC,GACpD;IAAE,MAAM,EAAE,OAAO,CAAA;CAAE,GACnB;IAAE,mBAAmB,EAAE,CAAC,SAAS,CAAC,CAAA;CAAE,EACtC,KAAK,EACL,eAAe,CAChB;gBAEG,OAAO,EAAE,YAAY,CAAC,MAAM,CAAC,CAAC,SAAS,CAAC,EACxC,YAAY,EAAE,YAAY,CAAC,MAAM,CAAC,CAAC,iBAAiB,CAAC,CAAC,QAAQ,CAAC,EAC/D,QAAQ,EAAE,YAAY,CAAC,MAAM,CAAC,CAAC,iBAAiB,CAAC,CAAC,eAAe,CAAC,CAAC,QAAQ,CAAC,EAC5E,GAAG,KAAK,EAAE,MAAM,EAAE;CA2BrB"}
|
@@ -0,0 +1,28 @@
|
|
1
|
+
import Option from "./option/Option.js";
|
2
|
+
export default class SvelteOption extends Option {
|
3
|
+
constructor(plugins, svelteParser, tsParser, ...files) {
|
4
|
+
super({
|
5
|
+
name: "linted/scope:svelte",
|
6
|
+
processor: "svelte/svelte",
|
7
|
+
files,
|
8
|
+
plugins,
|
9
|
+
linterOptions: {
|
10
|
+
noInlineConfig: true,
|
11
|
+
reportUnusedDisableDirectives: "error",
|
12
|
+
},
|
13
|
+
languageOptions: {
|
14
|
+
ecmaVersion: "latest",
|
15
|
+
sourceType: "module",
|
16
|
+
parser: svelteParser,
|
17
|
+
parserOptions: {
|
18
|
+
ecmaVersion: "latest",
|
19
|
+
sourceType: "module",
|
20
|
+
project: "tsconfig.json",
|
21
|
+
extraFileExtensions: [".svelte"],
|
22
|
+
parser: tsParser,
|
23
|
+
},
|
24
|
+
},
|
25
|
+
});
|
26
|
+
}
|
27
|
+
}
|
28
|
+
//# sourceMappingURL=SvelteOption.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"SvelteOption.js","sourceRoot":"","sources":["../../src/options/SvelteOption.ts"],"names":[],"mappings":"AAAA,OAAO,MAAM,MAAM,oBAAoB,CAAC;AAGxC,MAAM,CAAC,OAAO,OAAO,YAAa,SAAQ,MAWzC;IACC,YACE,OAAwC,EACxC,YAA+D,EAC/D,QAA4E,EAC5E,GAAG,KAAe;QAElB,KAAK,CACH;YACE,IAAI,EAAE,qBAAqB;YAC3B,SAAS,EAAE,eAAe;YAC1B,KAAK;YACL,OAAO;YACP,aAAa,EAAE;gBACb,cAAc,EAAE,IAAI;gBACpB,6BAA6B,EAAE,OAAO;aACvC;YACD,eAAe,EAAE;gBACf,WAAW,EAAE,QAAQ;gBACrB,UAAU,EAAE,QAAQ;gBACpB,MAAM,EAAE,YAAY;gBACpB,aAAa,EAAE;oBACb,WAAW,EAAE,QAAQ;oBACrB,UAAU,EAAE,QAAQ;oBACpB,OAAO,EAAE,eAAe;oBACxB,mBAAmB,EAAE,CAAC,SAAS,CAAC;oBAChC,MAAM,EAAE,QAAQ;iBACjB;aACF;SACF,CACF,CAAC;IACJ,CAAC;CACF"}
|
@@ -0,0 +1,8 @@
|
|
1
|
+
import Option from "./option/Option.js";
|
2
|
+
import type JsOption from "./JsOption.js";
|
3
|
+
export default class TsOption extends Option<"ts", "@typescript-eslint" | keyof JsOption["body"]["plugins"], true, JsOption["body"]["languageOptions"] & {
|
4
|
+
project: "tsconfig.json";
|
5
|
+
}> {
|
6
|
+
constructor(plugins: TsOption["body"]["plugins"], parser: unknown, ...files: string[]);
|
7
|
+
}
|
8
|
+
//# sourceMappingURL=TsOption.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"TsOption.d.ts","sourceRoot":"","sources":["../../src/options/TsOption.ts"],"names":[],"mappings":"AAAA,OAAO,MAAM,MAAM,oBAAoB,CAAC;AACxC,OAAO,KAAK,QAAQ,MAAM,eAAe,CAAC;AAE1C,MAAM,CAAC,OAAO,OAAO,QAAS,SAAQ,MAAM,CAC1C,IAAI,EACF,oBAAoB,GACpB,MAAM,QAAQ,CAAC,MAAM,CAAC,CAAC,SAAS,CAAC,EAEnC,IAAI,EACF,QAAQ,CAAC,MAAM,CAAC,CAAC,iBAAiB,CAAC,GACnC;IAAE,OAAO,EAAE,eAAe,CAAA;CAAE,CAC/B;gBAEG,OAAO,EAAE,QAAQ,CAAC,MAAM,CAAC,CAAC,SAAS,CAAC,EACpC,MAAM,EAAE,OAAO,EACf,GAAG,KAAK,EAAE,MAAM,EAAE;CAwBrB"}
|
@@ -0,0 +1,25 @@
|
|
1
|
+
import Option from "./option/Option.js";
|
2
|
+
export default class TsOption extends Option {
|
3
|
+
constructor(plugins, parser, ...files) {
|
4
|
+
super({
|
5
|
+
name: "linted/scope:ts",
|
6
|
+
files,
|
7
|
+
plugins,
|
8
|
+
linterOptions: {
|
9
|
+
noInlineConfig: true,
|
10
|
+
reportUnusedDisableDirectives: "error",
|
11
|
+
},
|
12
|
+
languageOptions: {
|
13
|
+
ecmaVersion: "latest",
|
14
|
+
sourceType: "module",
|
15
|
+
parser,
|
16
|
+
parserOptions: {
|
17
|
+
ecmaVersion: "latest",
|
18
|
+
sourceType: "module",
|
19
|
+
project: "tsconfig.json",
|
20
|
+
},
|
21
|
+
},
|
22
|
+
});
|
23
|
+
}
|
24
|
+
}
|
25
|
+
//# sourceMappingURL=TsOption.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"TsOption.js","sourceRoot":"","sources":["../../src/options/TsOption.ts"],"names":[],"mappings":"AAAA,OAAO,MAAM,MAAM,oBAAoB,CAAC;AAGxC,MAAM,CAAC,OAAO,OAAO,QAAS,SAAQ,MAQrC;IACC,YACE,OAAoC,EACpC,MAAe,EACf,GAAG,KAAe;QAElB,KAAK,CACH;YACE,IAAI,EAAE,iBAAiB;YACvB,KAAK;YACL,OAAO;YACP,aAAa,EAAE;gBACb,cAAc,EAAE,IAAI;gBACpB,6BAA6B,EAAE,OAAO;aACvC;YACD,eAAe,EAAE;gBACf,WAAW,EAAE,QAAQ;gBACrB,UAAU,EAAE,QAAQ;gBACpB,MAAM;gBACN,aAAa,EAAE;oBACb,WAAW,EAAE,QAAQ;oBACrB,UAAU,EAAE,QAAQ;oBACpB,OAAO,EAAE,eAAe;iBACzB;aACF;SACF,CACF,CAAC;IACJ,CAAC;CACF"}
|
@@ -0,0 +1,5 @@
|
|
1
|
+
import Option from "./option/Option.js";
|
2
|
+
export default class YmlOption extends Option<"yml", "yml", true, never, never, never, never, never> {
|
3
|
+
constructor(plugins: YmlOption["body"]["plugins"], parser: YmlOption["body"]["languageOptions"]["parser"], ...files: string[]);
|
4
|
+
}
|
5
|
+
//# sourceMappingURL=YmlOption.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"YmlOption.d.ts","sourceRoot":"","sources":["../../src/options/YmlOption.ts"],"names":[],"mappings":"AAAA,OAAO,MAAM,MAAM,oBAAoB,CAAC;AAExC,MAAM,CAAC,OAAO,OAAO,SAAU,SAAQ,MAAM,CAC3C,KAAK,EACL,KAAK,EACL,IAAI,EACJ,KAAK,EACL,KAAK,EACL,KAAK,EACL,KAAK,EACL,KAAK,CACN;gBAEG,OAAO,EAAE,SAAS,CAAC,MAAM,CAAC,CAAC,SAAS,CAAC,EACrC,MAAM,EAAE,SAAS,CAAC,MAAM,CAAC,CAAC,iBAAiB,CAAC,CAAC,QAAQ,CAAC,EACtD,GAAG,KAAK,EAAE,MAAM,EAAE;CAerB"}
|
@@ -0,0 +1,16 @@
|
|
1
|
+
import Option from "./option/Option.js";
|
2
|
+
export default class YmlOption extends Option {
|
3
|
+
constructor(plugins, parser, ...files) {
|
4
|
+
super({
|
5
|
+
name: "linted/scope:yml",
|
6
|
+
files,
|
7
|
+
plugins,
|
8
|
+
linterOptions: {
|
9
|
+
noInlineConfig: true,
|
10
|
+
reportUnusedDisableDirectives: "error",
|
11
|
+
},
|
12
|
+
languageOptions: { parser },
|
13
|
+
});
|
14
|
+
}
|
15
|
+
}
|
16
|
+
//# sourceMappingURL=YmlOption.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"YmlOption.js","sourceRoot":"","sources":["../../src/options/YmlOption.ts"],"names":[],"mappings":"AAAA,OAAO,MAAM,MAAM,oBAAoB,CAAC;AAExC,MAAM,CAAC,OAAO,OAAO,SAAU,SAAQ,MAStC;IACC,YACE,OAAqC,EACrC,MAAsD,EACtD,GAAG,KAAe;QAElB,KAAK,CACH;YACE,IAAI,EAAE,kBAAkB;YACxB,KAAK;YACL,OAAO;YACP,aAAa,EAAE;gBACb,cAAc,EAAE,IAAI;gBACpB,6BAA6B,EAAE,OAAO;aACvC;YACD,eAAe,EAAE,EAAE,MAAM,EAAE;SAC5B,CACF,CAAC;IACJ,CAAC;CACF"}
|
@@ -0,0 +1,5 @@
|
|
1
|
+
export default class Option<Scope extends string, PluginId extends string, UseParser extends boolean = never, ParserOptions extends object = never, GlobalTypes extends string = never, ProcessorId extends string = never, Source extends IOLanguageSource.Source = "module", Ecma extends number | IOLanguageEcma.Ecma = "latest"> {
|
2
|
+
readonly body: IOption<`linted/scope:${literalful<Scope>}`, true, "error", PluginId, Ecma, Source, UseParser, ParserOptions, GlobalTypes, ProcessorId>;
|
3
|
+
constructor(body: IOption<`linted/scope:${literalful<Scope>}`, true, "error", PluginId, Ecma, Source, UseParser, ParserOptions, GlobalTypes, ProcessorId>);
|
4
|
+
}
|
5
|
+
//# sourceMappingURL=Option.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"Option.d.ts","sourceRoot":"","sources":["../../../src/options/option/Option.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,OAAO,OAAO,MAAM,CACzB,KAAK,SAAS,MAAM,EACpB,QAAQ,SAAS,MAAM,EACvB,SAAS,SAAS,OAAO,GAAG,KAAK,EACjC,aAAa,SAAS,MAAM,GAAG,KAAK,EACpC,WAAW,SAAS,MAAM,GAAG,KAAK,EAClC,WAAW,SAAS,MAAM,GAAG,KAAK,EAClC,MAAM,SAAS,gBAAgB,CAAC,MAAM,GAAG,QAAQ,EACjD,IAAI,SAAS,MAAM,GAAG,cAAc,CAAC,IAAI,GAAG,QAAQ;aAGlC,IAAI,EAAE,OAAO,CAC3B,gBAAgB,UAAU,CAAC,KAAK,CAAC,EAAE,EACnC,IAAI,EACJ,OAAO,EACP,QAAQ,EACR,IAAI,EACJ,MAAM,EACN,SAAS,EACT,aAAa,EACb,WAAW,EACX,WAAW,CACZ;gBAXe,IAAI,EAAE,OAAO,CAC3B,gBAAgB,UAAU,CAAC,KAAK,CAAC,EAAE,EACnC,IAAI,EACJ,OAAO,EACP,QAAQ,EACR,IAAI,EACJ,MAAM,EACN,SAAS,EACT,aAAa,EACb,WAAW,EACX,WAAW,CACZ;CAEJ"}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"Option.js","sourceRoot":"","sources":["../../../src/options/option/Option.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,OAAO,OAAO,MAAM;IAWP;IADlB,YACkB,IAWf;QAXe,SAAI,GAAJ,IAAI,CAWnB;IACA,CAAC;CACL"}
|
@@ -0,0 +1,18 @@
|
|
1
|
+
import JsOption from "./options/JsOption.js";
|
2
|
+
import TsOption from "./options/TsOption.js";
|
3
|
+
import SvelteOption from "./options/SvelteOption.js";
|
4
|
+
import HtmlOption from "./options/HtmlOption.js";
|
5
|
+
import JsonOption from "./options/JsonOption.js";
|
6
|
+
import JsoncOption from "./options/JsoncOption.js";
|
7
|
+
import YmlOption from "./options/YmlOption.js";
|
8
|
+
declare const _default: {
|
9
|
+
js: typeof JsOption;
|
10
|
+
ts: typeof TsOption;
|
11
|
+
svelte: typeof SvelteOption;
|
12
|
+
html: typeof HtmlOption;
|
13
|
+
json: typeof JsonOption;
|
14
|
+
jsonc: typeof JsoncOption;
|
15
|
+
yml: typeof YmlOption;
|
16
|
+
};
|
17
|
+
export default _default;
|
18
|
+
//# sourceMappingURL=options.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"options.d.ts","sourceRoot":"","sources":["../src/options.ts"],"names":[],"mappings":"AAAA,OAAO,QAAQ,MAAM,uBAAuB,CAAC;AAC7C,OAAO,QAAQ,MAAM,uBAAuB,CAAC;AAC7C,OAAO,YAAY,MAAM,2BAA2B,CAAC;AACrD,OAAO,UAAU,MAAM,yBAAyB,CAAC;AACjD,OAAO,UAAU,MAAM,yBAAyB,CAAC;AACjD,OAAO,WAAW,MAAM,0BAA0B,CAAC;AACnD,OAAO,SAAS,MAAM,wBAAwB,CAAC;;;;;;;;;;AAE/C,wBAQmC"}
|
package/dist/options.js
ADDED
@@ -0,0 +1,17 @@
|
|
1
|
+
import JsOption from "./options/JsOption.js";
|
2
|
+
import TsOption from "./options/TsOption.js";
|
3
|
+
import SvelteOption from "./options/SvelteOption.js";
|
4
|
+
import HtmlOption from "./options/HtmlOption.js";
|
5
|
+
import JsonOption from "./options/JsonOption.js";
|
6
|
+
import JsoncOption from "./options/JsoncOption.js";
|
7
|
+
import YmlOption from "./options/YmlOption.js";
|
8
|
+
export default {
|
9
|
+
js: JsOption,
|
10
|
+
ts: TsOption,
|
11
|
+
svelte: SvelteOption,
|
12
|
+
html: HtmlOption,
|
13
|
+
json: JsonOption,
|
14
|
+
jsonc: JsoncOption,
|
15
|
+
yml: YmlOption,
|
16
|
+
};
|
17
|
+
//# sourceMappingURL=options.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"options.js","sourceRoot":"","sources":["../src/options.ts"],"names":[],"mappings":"AAAA,OAAO,QAAQ,MAAM,uBAAuB,CAAC;AAC7C,OAAO,QAAQ,MAAM,uBAAuB,CAAC;AAC7C,OAAO,YAAY,MAAM,2BAA2B,CAAC;AACrD,OAAO,UAAU,MAAM,yBAAyB,CAAC;AACjD,OAAO,UAAU,MAAM,yBAAyB,CAAC;AACjD,OAAO,WAAW,MAAM,0BAA0B,CAAC;AACnD,OAAO,SAAS,MAAM,wBAAwB,CAAC;AAE/C,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;CACkB,CAAC"}
|
@@ -0,0 +1,12 @@
|
|
1
|
+
import Rule from "./rule/Rule.js";
|
2
|
+
export { default as Rule } from "./rule/Rule.js";
|
3
|
+
export default class Ruleset<Language extends string> {
|
4
|
+
protected readonly language: literalful<Language>;
|
5
|
+
readonly ruleset: readonly Rule[];
|
6
|
+
readonly overrides: Rule[];
|
7
|
+
constructor(language: literalful<Language>, ...ruleset: readonly Rule[]);
|
8
|
+
get id(): `ruleset:${literalful<Language>}`;
|
9
|
+
get flat(): IRule[];
|
10
|
+
override(...overrides: (undefined | IRule)[]): this;
|
11
|
+
}
|
12
|
+
//# sourceMappingURL=Ruleset.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"Ruleset.d.ts","sourceRoot":"","sources":["../../../src/rulesets/ruleset/Ruleset.ts"],"names":[],"mappings":"AAAA,OAAO,IAAI,MAAM,gBAAgB,CAAC;AAElC,OAAO,EAAE,OAAO,IAAI,IAAI,EAAE,MAAM,gBAAgB,CAAC;AACjD,MAAM,CAAC,OAAO,OAAO,OAAO,CAAC,QAAQ,SAAS,MAAM;IAKhD,SAAS,CAAC,QAAQ,CAAC,QAAQ,EAAE,UAAU,CAAC,QAAQ,CAAC;IAJnD,SAAgB,OAAO,EAAE,SAAS,IAAI,EAAE,CAAC;IACzC,SAAgB,SAAS,EAAE,IAAI,EAAE,CAAM;gBAGlB,QAAQ,EAAE,UAAU,CAAC,QAAQ,CAAC,EACjD,GAAG,OAAO,EAAE,SAAS,IAAI,EAAE;IAK7B,IAAW,EAAE,sCAEZ;IAED,IAAW,IAAI,YAWd;IAEM,QAAQ,CAAC,GAAG,SAAS,EAAE,CAAC,SAAS,GAAG,KAAK,CAAC,EAAE;CAkBpD"}
|
@@ -0,0 +1,27 @@
|
|
1
|
+
import Rule from "./rule/Rule.js";
|
2
|
+
export { default as Rule } from "./rule/Rule.js";
|
3
|
+
export default class Ruleset {
|
4
|
+
language;
|
5
|
+
ruleset;
|
6
|
+
overrides = [];
|
7
|
+
constructor(language, ...ruleset) {
|
8
|
+
this.language = language;
|
9
|
+
this.ruleset = [...ruleset];
|
10
|
+
}
|
11
|
+
get id() {
|
12
|
+
return `ruleset:${this.language}`;
|
13
|
+
}
|
14
|
+
get flat() {
|
15
|
+
return [
|
16
|
+
...this.ruleset.map(rules => rules.rules),
|
17
|
+
...this.overrides.map(rules => rules.rules),
|
18
|
+
];
|
19
|
+
}
|
20
|
+
override(...overrides) {
|
21
|
+
this.overrides.push(...overrides
|
22
|
+
.filter(override => typeof override !== "undefined")
|
23
|
+
.map(override => new Rule("override", override)));
|
24
|
+
return this;
|
25
|
+
}
|
26
|
+
}
|
27
|
+
//# sourceMappingURL=Ruleset.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"Ruleset.js","sourceRoot":"","sources":["../../../src/rulesets/ruleset/Ruleset.ts"],"names":[],"mappings":"AAAA,OAAO,IAAI,MAAM,gBAAgB,CAAC;AAElC,OAAO,EAAE,OAAO,IAAI,IAAI,EAAE,MAAM,gBAAgB,CAAC;AACjD,MAAM,CAAC,OAAO,OAAO,OAAO;IAKL;IAJL,OAAO,CAAkB;IACzB,SAAS,GAAW,EAAE,CAAC;IAEvC,YACqB,QAA8B,EACjD,GAAG,OAAwB;QADR,aAAQ,GAAR,QAAQ,CAAsB;QAGjD,IAAI,CAAC,OAAO,GAAG,CAAC,GAAG,OAAO,CAAC,CAAC;IAC9B,CAAC;IAED,IAAW,EAAE;QACX,OAAO,WAAW,IAAI,CAAC,QAAQ,EAAW,CAAC;IAC7C,CAAC;IAED,IAAW,IAAI;QACb,OAAO;YACL,GAAG,IAAI,CAAC,OAAO,CAAC,GAAG,CACjB,KAAK,CAAC,EAAE,CACN,KAAK,CAAC,KAAK,CACd;YACD,GAAG,IAAI,CAAC,SAAS,CAAC,GAAG,CACnB,KAAK,CAAC,EAAE,CACN,KAAK,CAAC,KAAK,CACd;SACF,CAAC;IACJ,CAAC;IAEM,QAAQ,CAAC,GAAG,SAAgC;QACjD,IAAI,CAAC,SAAS,CAAC,IAAI,CACjB,GAAG,SAAS;aACT,MAAM,CACL,QAAQ,CAAC,EAAE,CACT,OAAO,QAAQ,KAAK,WAAW,CAClC;aACA,GAAG,CACF,QAAQ,CAAC,EAAE,CACT,IAAI,IAAI,CACN,UAAU,EACV,QAAQ,CACT,CACJ,CACJ,CAAC;QAEF,OAAO,IAAI,CAAC;IACd,CAAC;CACF"}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"Rule.d.ts","sourceRoot":"","sources":["../../../../src/rulesets/ruleset/rule/Rule.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,OAAO,OAAO,IAAI;aAEL,EAAE,EAAE,MAAM;aACV,KAAK,EAAE,KAAK;gBADZ,EAAE,EAAE,MAAM,EACV,KAAK,EAAE,KAAK;CAE/B"}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"Rule.js","sourceRoot":"","sources":["../../../../src/rulesets/ruleset/rule/Rule.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,OAAO,OAAO,IAAI;IAEL;IACA;IAFlB,YACkB,EAAU,EACV,KAAY;QADZ,OAAE,GAAF,EAAE,CAAQ;QACV,UAAK,GAAL,KAAK,CAAO;IAC3B,CAAC;CACL"}
|
package/dist/scopes.d.ts
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"scopes.d.ts","sourceRoot":"","sources":["../src/scopes.ts"],"names":[],"mappings":"AAAA,QAAA,MAAM,MAAM,wDAQgB,CAAC;AAE7B,eAAe,MAAM,CAAC"}
|
package/dist/scopes.js
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"scopes.js","sourceRoot":"","sources":["../src/scopes.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,GAAG;IACb,IAAI;IACJ,IAAI;IACJ,QAAQ;IACR,MAAM;IACN,MAAM;IACN,OAAO;IACP,KAAK;CACqB,CAAC;AAE7B,eAAe,MAAM,CAAC"}
|
@@ -0,0 +1,21 @@
|
|
1
|
+
declare interface IConfig {
|
2
|
+
rules: IRule;
|
3
|
+
files: string[];
|
4
|
+
name: `linted/scope:${string}`;
|
5
|
+
linterOptions: {
|
6
|
+
noInlineConfig: true;
|
7
|
+
reportUnusedDisableDirectives: "error";
|
8
|
+
};
|
9
|
+
languageOptions: {
|
10
|
+
sourceType?:
|
11
|
+
| "module"
|
12
|
+
| "script"
|
13
|
+
;
|
14
|
+
ecmaVersion?: "latest";
|
15
|
+
globals?: Record<string, true>;
|
16
|
+
parser?: unknown;
|
17
|
+
parserOptions?: Record<string, unknown>;
|
18
|
+
};
|
19
|
+
plugins: Record<string, Record<"configs", unknown>>;
|
20
|
+
processor?: string;
|
21
|
+
}
|
@@ -0,0 +1 @@
|
|
1
|
+
declare interface IFiles { files: string[] }
|
@@ -0,0 +1,25 @@
|
|
1
|
+
declare type IOption<
|
2
|
+
Name extends string,
|
3
|
+
NoInline extends boolean,
|
4
|
+
ReportUnused extends boolean | IOLinter.States,
|
5
|
+
PluginId extends string,
|
6
|
+
Ecma extends number | IOLanguageEcma.Ecma,
|
7
|
+
Source extends IOLanguageSource.Source,
|
8
|
+
UseParser extends boolean,
|
9
|
+
ParserOptions extends object,
|
10
|
+
GlobalTypes extends string,
|
11
|
+
ProcessorId extends string,
|
12
|
+
> =
|
13
|
+
& IFiles
|
14
|
+
& IOName<Name>
|
15
|
+
& IOLinter<NoInline, ReportUnused>
|
16
|
+
& IOPlugins<PluginId>
|
17
|
+
& IOLanguage<
|
18
|
+
Ecma,
|
19
|
+
Source,
|
20
|
+
UseParser,
|
21
|
+
ParserOptions,
|
22
|
+
GlobalTypes
|
23
|
+
>
|
24
|
+
& IOProcessor<ProcessorId>
|
25
|
+
;
|
@@ -0,0 +1,15 @@
|
|
1
|
+
declare type IOLanguage<
|
2
|
+
Ecma extends number | IOLanguageEcma.Ecma,
|
3
|
+
Source extends IOLanguageSource.Source,
|
4
|
+
UseParser extends boolean,
|
5
|
+
ParserOptions extends object,
|
6
|
+
GlobalTypes extends string,
|
7
|
+
> = {
|
8
|
+
languageOptions:
|
9
|
+
& IOLanguageEcma<Ecma>
|
10
|
+
& IOLanguageSource<Source>
|
11
|
+
& IOLanguageGlobals<GlobalTypes>
|
12
|
+
& IOLanguageParser<UseParser>
|
13
|
+
& IOLanguageParserOptions<ParserOptions>
|
14
|
+
;
|
15
|
+
};
|