@eslinted/core 2.0.1 → 2.1.0
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/dependency/parsers/index.d.ts +2 -1
- package/dist/dependency/parsers/index.d.ts.map +1 -1
- package/dist/dependency/plugins/index.d.ts +1 -1
- package/dist/dependency/plugins/index.d.ts.map +1 -1
- package/dist/factory/options/Options.d.ts +16 -14
- package/dist/factory/options/Options.d.ts.map +1 -1
- package/dist/factory/options/Options.js +16 -14
- package/dist/factory/options/Options.js.map +1 -1
- 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 +1 -1
- package/dist/factory/options/option/html/index.js.map +1 -1
- 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 +1 -1
- 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 +1 -1
- 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 +1 -1
- package/dist/factory/options/option/jsonc/index.js.map +1 -1
- package/dist/factory/options/option/md/index.d.ts +9 -0
- package/dist/factory/options/option/md/index.d.ts.map +1 -0
- package/dist/factory/options/option/md/index.js +15 -0
- package/dist/factory/options/option/md/index.js.map +1 -0
- package/dist/factory/options/option/svelte/index.d.ts +2 -2
- package/dist/factory/options/option/svelte/index.d.ts.map +1 -1
- package/dist/factory/options/option/svelte/index.js +1 -1
- package/dist/factory/options/option/svelte/index.js.map +1 -1
- package/dist/factory/options/option/ts/index.d.ts +2 -2
- package/dist/factory/options/option/ts/index.d.ts.map +1 -1
- package/dist/factory/options/option/ts/index.js +1 -1
- 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 +1 -1
- package/dist/factory/options/option/yml/index.js.map +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +7 -0
- package/dist/index.js.map +1 -1
- package/dist/scopes/Scopes.d.ts +1 -1
- package/dist/scopes/Scopes.d.ts.map +1 -1
- package/dist/scopes/Scopes.js +1 -0
- package/dist/scopes/Scopes.js.map +1 -1
- package/package.json +1 -1
- package/src/dependency/parsers/index.ts +4 -0
- package/src/dependency/plugins/index.ts +1 -0
- package/src/factory/options/Options.ts +16 -14
- package/src/factory/options/option/html/index.ts +1 -1
- package/src/factory/options/option/js/index.ts +1 -1
- package/src/factory/options/option/json/index.ts +1 -1
- package/src/factory/options/option/jsonc/index.ts +1 -1
- package/src/factory/options/option/md/index.ts +26 -0
- package/src/factory/options/option/svelte/index.ts +4 -4
- package/src/factory/options/option/ts/index.ts +4 -4
- package/src/factory/options/option/yml/index.ts +1 -1
- package/src/index.ts +16 -0
- package/src/scopes/Scopes.ts +1 -0
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/dependency/parsers/index.ts"],"names":[],"mappings":"AAAA,KAAK,OAAO,GACR,IAAI,GACJ,QAAQ,GACR,MAAM,GACN,OAAO,GACP,KAAK,CACR;AAED,YAAY,EAAE,OAAO,IAAI,OAAO,EAAE,CAAC"}
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/dependency/parsers/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,wBAAwB,CAAC;AAEpD,KAAK,OAAO,GACR,IAAI,GACJ,QAAQ,GACR,MAAM,GACN,OAAO,GACP,KAAK,GACL,IAAI,GACJ,KAAK,CACR;AAED,YAAY,EAAE,OAAO,IAAI,OAAO,EAAE,CAAC"}
|
@@ -1,3 +1,3 @@
|
|
1
|
-
type Plugins = "@stylistic" | "@typescript-eslint" | "svelte" | "@html-eslint" | "jsonc" | "yml";
|
1
|
+
type Plugins = "@stylistic" | "@typescript-eslint" | "svelte" | "@html-eslint" | "jsonc" | "yml" | "markdownlint";
|
2
2
|
export type { Plugins as default };
|
3
3
|
//# sourceMappingURL=index.d.ts.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/dependency/plugins/index.ts"],"names":[],"mappings":"AAAA,KAAK,OAAO,GACR,YAAY,GACZ,oBAAoB,GACpB,QAAQ,GACR,cAAc,GACd,OAAO,GACP,KAAK,
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/dependency/plugins/index.ts"],"names":[],"mappings":"AAAA,KAAK,OAAO,GACR,YAAY,GACZ,oBAAoB,GACpB,QAAQ,GACR,cAAc,GACd,OAAO,GACP,KAAK,GACL,cAAc,CACjB;AAED,YAAY,EAAE,OAAO,IAAI,OAAO,EAAE,CAAC"}
|
@@ -1,18 +1,20 @@
|
|
1
|
-
import
|
2
|
-
import
|
3
|
-
import
|
4
|
-
import
|
5
|
-
import
|
6
|
-
import
|
7
|
-
import
|
1
|
+
import js from "./option/js/index.js";
|
2
|
+
import ts from "./option/ts/index.js";
|
3
|
+
import svelte from "./option/svelte/index.js";
|
4
|
+
import html from "./option/html/index.js";
|
5
|
+
import json from "./option/json/index.js";
|
6
|
+
import jsonc from "./option/jsonc/index.js";
|
7
|
+
import yml from "./option/yml/index.js";
|
8
|
+
import md from "./option/md/index.js";
|
8
9
|
declare const _default: {
|
9
|
-
readonly js: typeof
|
10
|
-
readonly ts: typeof
|
11
|
-
readonly svelte: typeof
|
12
|
-
readonly html: typeof
|
13
|
-
readonly json: typeof
|
14
|
-
readonly jsonc: typeof
|
15
|
-
readonly yml: typeof
|
10
|
+
readonly js: typeof js;
|
11
|
+
readonly ts: typeof ts;
|
12
|
+
readonly svelte: typeof svelte;
|
13
|
+
readonly html: typeof html;
|
14
|
+
readonly json: typeof json;
|
15
|
+
readonly jsonc: typeof jsonc;
|
16
|
+
readonly yml: typeof yml;
|
17
|
+
readonly md: typeof md;
|
16
18
|
};
|
17
19
|
export default _default;
|
18
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,
|
1
|
+
{"version":3,"file":"Options.d.ts","sourceRoot":"","sources":["../../../src/factory/options/Options.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,sBAAsB,CAAC;AACtC,OAAO,EAAE,MAAM,sBAAsB,CAAC;AACtC,OAAO,MAAM,MAAM,0BAA0B,CAAC;AAC9C,OAAO,IAAI,MAAM,wBAAwB,CAAC;AAC1C,OAAO,IAAI,MAAM,wBAAwB,CAAC;AAC1C,OAAO,KAAK,MAAM,yBAAyB,CAAC;AAC5C,OAAO,GAAG,MAAM,uBAAuB,CAAC;AACxC,OAAO,EAAE,MAAM,sBAAsB,CAAC;;;;;;;;;;;AAEtC,wBASW"}
|
@@ -1,17 +1,19 @@
|
|
1
|
-
import
|
2
|
-
import
|
3
|
-
import
|
4
|
-
import
|
5
|
-
import
|
6
|
-
import
|
7
|
-
import
|
1
|
+
import js from "./option/js/index.js";
|
2
|
+
import ts from "./option/ts/index.js";
|
3
|
+
import svelte from "./option/svelte/index.js";
|
4
|
+
import html from "./option/html/index.js";
|
5
|
+
import json from "./option/json/index.js";
|
6
|
+
import jsonc from "./option/jsonc/index.js";
|
7
|
+
import yml from "./option/yml/index.js";
|
8
|
+
import md from "./option/md/index.js";
|
8
9
|
export default {
|
9
|
-
js
|
10
|
-
ts
|
11
|
-
svelte
|
12
|
-
html
|
13
|
-
json
|
14
|
-
jsonc
|
15
|
-
yml
|
10
|
+
js,
|
11
|
+
ts,
|
12
|
+
svelte,
|
13
|
+
html,
|
14
|
+
json,
|
15
|
+
jsonc,
|
16
|
+
yml,
|
17
|
+
md,
|
16
18
|
};
|
17
19
|
//# sourceMappingURL=Options.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"Options.js","sourceRoot":"","sources":["../../../src/factory/options/Options.ts"],"names":[],"mappings":"AAAA,OAAO,
|
1
|
+
{"version":3,"file":"Options.js","sourceRoot":"","sources":["../../../src/factory/options/Options.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,sBAAsB,CAAC;AACtC,OAAO,EAAE,MAAM,sBAAsB,CAAC;AACtC,OAAO,MAAM,MAAM,0BAA0B,CAAC;AAC9C,OAAO,IAAI,MAAM,wBAAwB,CAAC;AAC1C,OAAO,IAAI,MAAM,wBAAwB,CAAC;AAC1C,OAAO,KAAK,MAAM,yBAAyB,CAAC;AAC5C,OAAO,GAAG,MAAM,uBAAuB,CAAC;AACxC,OAAO,EAAE,MAAM,sBAAsB,CAAC;AAEtC,eAAe;IACb,EAAE;IACF,EAAE;IACF,MAAM;IACN,IAAI;IACJ,IAAI;IACJ,KAAK;IACL,GAAG;IACH,EAAE;CACM,CAAC"}
|
@@ -1,5 +1,5 @@
|
|
1
1
|
import Option from "../Option.js";
|
2
|
-
export default class
|
2
|
+
export default class Html extends Option<"html", "@html-eslint", false, true, 1> {
|
3
3
|
readonly scope = "html";
|
4
4
|
readonly processor: {};
|
5
5
|
get languageOptions(): {
|
@@ -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,
|
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,IAAK,SAAQ,MAAM,CACtC,MAAM,EACN,cAAc,EACd,KAAK,EACL,IAAI,EACJ,CAAC,CACF;IACC,SAAgB,KAAK,UAAU;IAC/B,SAAgB,SAAS,KAAe;IAExC,IAAW,eAAe;;MAYzB;CACF"}
|
@@ -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,
|
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,IAAK,SAAQ,MAMjC;IACiB,KAAK,GAAG,MAAM,CAAC;IACf,SAAS,GAAG,EAAW,CAAC;IAExC,IAAW,eAAe;QACxB,IAAI,CAAC;YACH,MAAM,CAAC,MAAM,CAAC,GAAG,IAAI,CAAC,MAAM,CAAC;YAE7B,OAAO,EAAE,MAAM,EAAW,CAAC;QAC7B,CAAC;QACD,OAAO,CAAC,EAAE,CAAC;YACT,MAAM,IAAI,KAAK,CACb,8CAA8C,EAC9C,EAAE,KAAK,EAAE,CAAC,EAAE,CACb,CAAC;QACJ,CAAC;IACH,CAAC;CACF"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/factory/options/option/js/index.ts"],"names":[],"mappings":"AAAA,OAAO,MAAM,MAAM,cAAc,CAAC;AAElC,MAAM,CAAC,OAAO,OAAO,
|
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,EAAG,SAAQ,MAAM,CAAC,IAAI,EAAE,YAAY,CAAC;IACxD,SAAgB,KAAK,QAAQ;IAC7B,SAAgB,SAAS,KAAM;IAE/B,IAAW,eAAe;;;MAazB;CACF"}
|
@@ -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,
|
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,EAAG,SAAQ,MAA0B;IACxC,KAAK,GAAG,IAAI,CAAC;IACb,SAAS,GAAG,EAAE,CAAC;IAE/B,IAAW,eAAe;QACxB,IAAI,CAAC;YACH,OAAO;gBACL,WAAW,EAAE,QAAQ;gBACrB,UAAU,EAAE,QAAQ;aACZ,CAAC;QACb,CAAC;QACD,OAAO,CAAC,EAAE,CAAC;YACT,MAAM,IAAI,KAAK,CACb,4CAA4C,EAC5C,EAAE,KAAK,EAAE,CAAC,EAAE,CACb,CAAC;QACJ,CAAC;IACH,CAAC;CACF"}
|
@@ -1,5 +1,5 @@
|
|
1
1
|
import Option from "../Option.js";
|
2
|
-
export default class
|
2
|
+
export default class Json extends Option<"json", "jsonc", false, true, 1> {
|
3
3
|
readonly scope = "json";
|
4
4
|
readonly processor: {};
|
5
5
|
get languageOptions(): {
|
@@ -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,
|
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,IAAK,SAAQ,MAAM,CACtC,MAAM,EACN,OAAO,EACP,KAAK,EACL,IAAI,EACJ,CAAC,CACF;IACC,SAAgB,KAAK,UAAU;IAC/B,SAAgB,SAAS,KAAe;IAExC,IAAW,eAAe;;MAYzB;CACF"}
|
@@ -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,
|
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,IAAK,SAAQ,MAMjC;IACiB,KAAK,GAAG,MAAM,CAAC;IACf,SAAS,GAAG,EAAW,CAAC;IAExC,IAAW,eAAe;QACxB,IAAI,CAAC;YACH,MAAM,CAAC,MAAM,CAAC,GAAG,IAAI,CAAC,MAAM,CAAC;YAE7B,OAAO,EAAE,MAAM,EAAW,CAAC;QAC7B,CAAC;QACD,OAAO,CAAC,EAAE,CAAC;YACT,MAAM,IAAI,KAAK,CACb,8CAA8C,EAC9C,EAAE,KAAK,EAAE,CAAC,EAAE,CACb,CAAC;QACJ,CAAC;IACH,CAAC;CACF"}
|
@@ -1,5 +1,5 @@
|
|
1
1
|
import Option from "../Option.js";
|
2
|
-
export default class
|
2
|
+
export default class Jsonc extends Option<"jsonc", "jsonc", false, true, 1> {
|
3
3
|
readonly scope = "jsonc";
|
4
4
|
readonly processor: {};
|
5
5
|
get languageOptions(): {
|
@@ -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,
|
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,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;;MAYzB;CACF"}
|
@@ -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,
|
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,KAAM,SAAQ,MAMlC;IACiB,KAAK,GAAG,OAAO,CAAC;IAChB,SAAS,GAAG,EAAW,CAAC;IAExC,IAAW,eAAe;QACxB,IAAI,CAAC;YACH,MAAM,CAAC,MAAM,CAAC,GAAG,IAAI,CAAC,MAAM,CAAC;YAE7B,OAAO,EAAE,MAAM,EAAW,CAAC;QAC7B,CAAC;QACD,OAAO,CAAC,EAAE,CAAC;YACT,MAAM,IAAI,KAAK,CACb,+CAA+C,EAC/C,EAAE,KAAK,EAAE,CAAC,EAAE,CACb,CAAC;QACJ,CAAC;IACH,CAAC;CACF"}
|
@@ -0,0 +1,9 @@
|
|
1
|
+
import Option from "../Option.js";
|
2
|
+
export default class Md extends Option<"md", "markdownlint", false, true, 1> {
|
3
|
+
readonly scope = "md";
|
4
|
+
readonly processor: {};
|
5
|
+
get languageOptions(): {
|
6
|
+
readonly parser: unknown;
|
7
|
+
};
|
8
|
+
}
|
9
|
+
//# sourceMappingURL=index.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/factory/options/option/md/index.ts"],"names":[],"mappings":"AAAA,OAAO,MAAM,MAAM,cAAc,CAAC;AAElC,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;;MAYzB;CACF"}
|
@@ -0,0 +1,15 @@
|
|
1
|
+
import Option from "../Option.js";
|
2
|
+
export default class Md extends Option {
|
3
|
+
scope = "md";
|
4
|
+
processor = {};
|
5
|
+
get languageOptions() {
|
6
|
+
try {
|
7
|
+
const [parser] = this.parser;
|
8
|
+
return { parser };
|
9
|
+
}
|
10
|
+
catch (e) {
|
11
|
+
throw new Error(`linted.factory.options.md: languageOptions`, { cause: e });
|
12
|
+
}
|
13
|
+
}
|
14
|
+
}
|
15
|
+
//# sourceMappingURL=index.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/factory/options/option/md/index.ts"],"names":[],"mappings":"AAAA,OAAO,MAAM,MAAM,cAAc,CAAC;AAElC,MAAM,CAAC,OAAO,OAAO,EAAG,SAAQ,MAM/B;IACiB,KAAK,GAAG,IAAI,CAAC;IACb,SAAS,GAAG,EAAW,CAAC;IAExC,IAAW,eAAe;QACxB,IAAI,CAAC;YACH,MAAM,CAAC,MAAM,CAAC,GAAG,IAAI,CAAC,MAAM,CAAC;YAE7B,OAAO,EAAE,MAAM,EAAW,CAAC;QAC7B,CAAC;QACD,OAAO,CAAC,EAAE,CAAC;YACT,MAAM,IAAI,KAAK,CACb,4CAA4C,EAC5C,EAAE,KAAK,EAAE,CAAC,EAAE,CACb,CAAC;QACJ,CAAC;IACH,CAAC;CACF"}
|
@@ -1,6 +1,6 @@
|
|
1
1
|
import Option from "../Option.js";
|
2
|
-
import type
|
3
|
-
export default class
|
2
|
+
import type Ts from "../ts/index.js";
|
3
|
+
export default class Svelte extends Option<"svelte", "svelte" | keyof Ts["option"]["plugins"], true, Ts["option"]["languageOptions"]["parserOptions"] & {
|
4
4
|
parser: unknown;
|
5
5
|
} & {
|
6
6
|
extraFileExtensions: readonly [".svelte"];
|
@@ -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,
|
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,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,EACF,EAAE,CAAC,QAAQ,CAAC,CAAC,iBAAiB,CAAC,CAAC,eAAe,CAAC,GAChD;IAAE,MAAM,EAAE,OAAO,CAAA;CAAE,GACnB;IAAE,mBAAmB,EAAE,SAAS,CAAC,SAAS,CAAC,CAAA;CAAE,EAC/C,CAAC,EACD,KAAK,EACL;IAAE,SAAS,EAAE,eAAe,CAAA;CAAE,CAC/B;IACC,SAAgB,KAAK,YAAY;IACjC,SAAgB,SAAS;;MAA2C;IAEpE,IAAW,eAAe;;;;;;;;;;;MAuBzB;CACF"}
|
@@ -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,
|
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,MAAO,SAAQ,MAUnC;IACiB,KAAK,GAAG,QAAQ,CAAC;IACjB,SAAS,GAAG,EAAE,SAAS,EAAE,eAAe,EAAW,CAAC;IAEpE,IAAW,eAAe;QACxB,IAAI,CAAC;YACH,MAAM,CAAC,MAAM,EAAE,QAAQ,CAAC,GAAG,IAAI,CAAC,MAAM,CAAC;YAEvC,OAAO;gBACL,WAAW,EAAE,QAAQ;gBACrB,UAAU,EAAE,QAAQ;gBACpB,MAAM;gBACN,aAAa,EAAE;oBACb,WAAW,EAAE,QAAQ;oBACrB,UAAU,EAAE,QAAQ;oBACpB,OAAO,EAAE,eAAe;oBACxB,mBAAmB,EAAE,CAAC,SAAS,CAAU;oBACzC,MAAM,EAAE,QAAQ;iBACjB;aACO,CAAC;QACb,CAAC;QACD,OAAO,CAAC,EAAE,CAAC;YACT,MAAM,IAAI,KAAK,CACb,gDAAgD,EAChD,EAAE,KAAK,EAAE,CAAC,EAAE,CACb,CAAC;QACJ,CAAC;IACH,CAAC;CACF"}
|
@@ -1,6 +1,6 @@
|
|
1
1
|
import Option from "../Option.js";
|
2
|
-
import type
|
3
|
-
export default class
|
2
|
+
import type Js from "../js/index.js";
|
3
|
+
export default class Ts extends Option<"ts", "@typescript-eslint" | keyof Js["option"]["plugins"], true, Js["option"]["languageOptions"] & {
|
4
4
|
project: "tsconfig.json";
|
5
5
|
}, 1> {
|
6
6
|
readonly scope = "ts";
|
@@ -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,
|
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,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,EACF,EAAE,CAAC,QAAQ,CAAC,CAAC,iBAAiB,CAAC,GAC/B;IAAE,OAAO,EAAE,eAAe,CAAA;CAAE,EAC9B,CAAC,CACF;IACC,SAAgB,KAAK,QAAQ;IAC7B,SAAgB,SAAS,KAAe;IAExC,IAAW,eAAe;;;;;;;;;MAqBzB;CACF"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/factory/options/option/ts/index.ts"],"names":[],"mappings":"AAAA,OAAO,MAAM,MAAM,cAAc,CAAC;AAGlC,MAAM,CAAC,OAAO,OAAO,
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/factory/options/option/ts/index.ts"],"names":[],"mappings":"AAAA,OAAO,MAAM,MAAM,cAAc,CAAC;AAGlC,MAAM,CAAC,OAAO,OAAO,EAAG,SAAQ,MAO/B;IACiB,KAAK,GAAG,IAAI,CAAC;IACb,SAAS,GAAG,EAAW,CAAC;IAExC,IAAW,eAAe;QACxB,IAAI,CAAC;YACH,MAAM,CAAC,MAAM,CAAC,GAAG,IAAI,CAAC,MAAM,CAAC;YAE7B,OAAO;gBACL,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;aACO,CAAC;QACb,CAAC;QACD,OAAO,CAAC,EAAE,CAAC;YACT,MAAM,IAAI,KAAK,CACb,4CAA4C,EAC5C,EAAE,KAAK,EAAE,CAAC,EAAE,CACb,CAAC;QACJ,CAAC;IACH,CAAC;CACF"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/factory/options/option/yml/index.ts"],"names":[],"mappings":"AAAA,OAAO,MAAM,MAAM,cAAc,CAAC;AAElC,MAAM,CAAC,OAAO,OAAO,
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/factory/options/option/yml/index.ts"],"names":[],"mappings":"AAAA,OAAO,MAAM,MAAM,cAAc,CAAC;AAElC,MAAM,CAAC,OAAO,OAAO,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;;MAYzB;CACF"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/factory/options/option/yml/index.ts"],"names":[],"mappings":"AAAA,OAAO,MAAM,MAAM,cAAc,CAAC;AAElC,MAAM,CAAC,OAAO,OAAO,
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/factory/options/option/yml/index.ts"],"names":[],"mappings":"AAAA,OAAO,MAAM,MAAM,cAAc,CAAC;AAElC,MAAM,CAAC,OAAO,OAAO,GAAI,SAAQ,MAMhC;IACiB,KAAK,GAAG,KAAK,CAAC;IACd,SAAS,GAAG,EAAW,CAAC;IAExC,IAAW,eAAe;QACxB,IAAI,CAAC;YACH,MAAM,CAAC,MAAM,CAAC,GAAG,IAAI,CAAC,MAAM,CAAC;YAE7B,OAAO,EAAE,MAAM,EAAW,CAAC;QAC7B,CAAC;QACD,OAAO,CAAC,EAAE,CAAC;YACT,MAAM,IAAI,KAAK,CACb,6CAA6C,EAC7C,EAAE,KAAK,EAAE,CAAC,EAAE,CACb,CAAC;QACJ,CAAC;IACH,CAAC;CACF"}
|
package/dist/index.d.ts.map
CHANGED
@@ -1 +1 @@
|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3C,GACA,QAAQ,CAAC,MAAM,EAAE,CAqJnB"}
|
package/dist/index.js
CHANGED
@@ -10,6 +10,7 @@ export default function (plugins, parsers, files, rules) {
|
|
10
10
|
json: new Ruleset("json", ...rules.preset.json.map(args => new Rule(...args))),
|
11
11
|
jsonc: new Ruleset("jsonc", ...rules.preset.jsonc.map(args => new Rule(...args))),
|
12
12
|
yml: new Ruleset("yml", ...rules.preset.yml.map(args => new Rule(...args))),
|
13
|
+
md: new Ruleset("md", ...rules.preset.md.map(args => new Rule(...args))),
|
13
14
|
}, scopedParsers = {
|
14
15
|
js: [],
|
15
16
|
ts: [parsers.ts],
|
@@ -18,6 +19,7 @@ export default function (plugins, parsers, files, rules) {
|
|
18
19
|
json: [parsers.jsonc],
|
19
20
|
jsonc: [parsers.jsonc],
|
20
21
|
yml: [parsers.yml],
|
22
|
+
md: [parsers.md],
|
21
23
|
};
|
22
24
|
for (const scope of scopes)
|
23
25
|
rulesets[scope].override(rules.overrides[scope]);
|
@@ -52,6 +54,11 @@ export default function (plugins, parsers, files, rules) {
|
|
52
54
|
yml: new Options
|
53
55
|
.yml(f.files("yml"), rulesets.yml, { yml: plugins.yml }, scopedParsers.yml)
|
54
56
|
.configs,
|
57
|
+
md: new Options
|
58
|
+
.md(f.files("md"), rulesets.md, {
|
59
|
+
markdownlint: plugins.markdownlint,
|
60
|
+
}, scopedParsers.md)
|
61
|
+
.configs,
|
55
62
|
};
|
56
63
|
return scopes
|
57
64
|
.map(scope => options[scope])
|
package/dist/index.js.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AACA,OAAO,MAAM,EAAE,EAAc,MAAM,oBAAoB,CAAC;AACxD,OAAO,EACL,OAAO,EACP,KAAK,EACL,OAAO,EACP,IAAI,GACL,MAAM,sBAAsB,CAAC;AAG9B,MAAM,CAAC,OAAO,WACZ,OAA+B,EAC/B,OAA+B,EAC/B,KAGC,EACD,K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declare const scopes: readonly ["js", "ts", "svelte", "html", "json", "jsonc", "yml", "md"];
|
2
2
|
export default scopes;
|
3
3
|
export type Scope = (typeof scopes)[number];
|
4
4
|
//# sourceMappingURL=Scopes.d.ts.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"Scopes.d.ts","sourceRoot":"","sources":["../../src/scopes/Scopes.ts"],"names":[],"mappings":"AAAA,QAAA,MAAM,MAAM,
|
1
|
+
{"version":3,"file":"Scopes.d.ts","sourceRoot":"","sources":["../../src/scopes/Scopes.ts"],"names":[],"mappings":"AAAA,QAAA,MAAM,MAAM,uEASF,CAAC;AAEX,eAAe,MAAM,CAAC;AACtB,MAAM,MAAM,KAAK,GAAG,CAAC,OAAO,MAAM,CAAC,CAAC,MAAM,CAAC,CAAC"}
|
package/dist/scopes/Scopes.js
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"Scopes.js","sourceRoot":"","sources":["../../src/scopes/Scopes.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,GAAG;IACb,IAAI;IACJ,IAAI;IACJ,QAAQ;IACR,MAAM;IACN,MAAM;IACN,OAAO;IACP,KAAK;
|
1
|
+
{"version":3,"file":"Scopes.js","sourceRoot":"","sources":["../../src/scopes/Scopes.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,GAAG;IACb,IAAI;IACJ,IAAI;IACJ,QAAQ;IACR,MAAM;IACN,MAAM;IACN,OAAO;IACP,KAAK;IACL,IAAI;CACI,CAAC;AAEX,eAAe,MAAM,CAAC"}
|
package/package.json
CHANGED
@@ -1,17 +1,19 @@
|
|
1
|
-
import
|
2
|
-
import
|
3
|
-
import
|
4
|
-
import
|
5
|
-
import
|
6
|
-
import
|
7
|
-
import
|
1
|
+
import js from "./option/js/index.js";
|
2
|
+
import ts from "./option/ts/index.js";
|
3
|
+
import svelte from "./option/svelte/index.js";
|
4
|
+
import html from "./option/html/index.js";
|
5
|
+
import json from "./option/json/index.js";
|
6
|
+
import jsonc from "./option/jsonc/index.js";
|
7
|
+
import yml from "./option/yml/index.js";
|
8
|
+
import md from "./option/md/index.js";
|
8
9
|
|
9
10
|
export default {
|
10
|
-
js
|
11
|
-
ts
|
12
|
-
svelte
|
13
|
-
html
|
14
|
-
json
|
15
|
-
jsonc
|
16
|
-
yml
|
11
|
+
js,
|
12
|
+
ts,
|
13
|
+
svelte,
|
14
|
+
html,
|
15
|
+
json,
|
16
|
+
jsonc,
|
17
|
+
yml,
|
18
|
+
md,
|
17
19
|
} as const;
|
@@ -0,0 +1,26 @@
|
|
1
|
+
import Option from "../Option.js";
|
2
|
+
|
3
|
+
export default class Md extends Option<
|
4
|
+
"md",
|
5
|
+
"markdownlint",
|
6
|
+
false,
|
7
|
+
true,
|
8
|
+
1
|
9
|
+
> {
|
10
|
+
public readonly scope = "md";
|
11
|
+
public readonly processor = {} as const;
|
12
|
+
|
13
|
+
public get languageOptions() {
|
14
|
+
try {
|
15
|
+
const [parser] = this.parser;
|
16
|
+
|
17
|
+
return { parser } as const;
|
18
|
+
}
|
19
|
+
catch (e) {
|
20
|
+
throw new Error(
|
21
|
+
`linted.factory.options.md: languageOptions`,
|
22
|
+
{ cause: e },
|
23
|
+
);
|
24
|
+
}
|
25
|
+
}
|
26
|
+
}
|
@@ -1,11 +1,11 @@
|
|
1
1
|
import Option from "../Option.js";
|
2
|
-
import type
|
2
|
+
import type Ts from "../ts/index.js";
|
3
3
|
|
4
|
-
export default class
|
4
|
+
export default class Svelte extends Option<
|
5
5
|
"svelte",
|
6
|
-
"svelte" | keyof
|
6
|
+
"svelte" | keyof Ts["option"]["plugins"],
|
7
7
|
true,
|
8
|
-
&
|
8
|
+
& Ts["option"]["languageOptions"]["parserOptions"]
|
9
9
|
& { parser: unknown }
|
10
10
|
& { extraFileExtensions: readonly [".svelte"] },
|
11
11
|
2,
|
@@ -1,11 +1,11 @@
|
|
1
1
|
import Option from "../Option.js";
|
2
|
-
import type
|
2
|
+
import type Js from "../js/index.js";
|
3
3
|
|
4
|
-
export default class
|
4
|
+
export default class Ts extends Option<
|
5
5
|
"ts",
|
6
|
-
"@typescript-eslint" | keyof
|
6
|
+
"@typescript-eslint" | keyof Js["option"]["plugins"],
|
7
7
|
true,
|
8
|
-
&
|
8
|
+
& Js["option"]["languageOptions"]
|
9
9
|
& { project: "tsconfig.json" },
|
10
10
|
1
|
11
11
|
> {
|
package/src/index.ts
CHANGED
@@ -54,6 +54,10 @@ export default function (
|
|
54
54
|
"yml",
|
55
55
|
...rules.preset.yml.map(args => new Rule(...args)),
|
56
56
|
),
|
57
|
+
md: new Ruleset(
|
58
|
+
"md",
|
59
|
+
...rules.preset.md.map(args => new Rule(...args)),
|
60
|
+
),
|
57
61
|
},
|
58
62
|
scopedParsers: {
|
59
63
|
[S in Scope]: ConstructorParameters<typeof Options[S]>[3];
|
@@ -65,6 +69,7 @@ export default function (
|
|
65
69
|
json: [parsers.jsonc] as const,
|
66
70
|
jsonc: [parsers.jsonc] as const,
|
67
71
|
yml: [parsers.yml] as const,
|
72
|
+
md: [parsers.md] as const,
|
68
73
|
} as const;
|
69
74
|
|
70
75
|
for (const scope of scopes)
|
@@ -140,6 +145,17 @@ export default function (
|
|
140
145
|
scopedParsers.yml,
|
141
146
|
)
|
142
147
|
.configs,
|
148
|
+
md: new Options
|
149
|
+
.md(
|
150
|
+
f.files("md"),
|
151
|
+
rulesets.md,
|
152
|
+
{
|
153
|
+
markdownlint: plugins.markdownlint,
|
154
|
+
},
|
155
|
+
scopedParsers.md,
|
156
|
+
)
|
157
|
+
.configs,
|
158
|
+
|
143
159
|
};
|
144
160
|
|
145
161
|
return scopes
|