@eslinted/core 2.0.0 → 2.1.0-rc.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (81) hide show
  1. package/dist/dependency/parsers/index.d.ts +2 -1
  2. package/dist/dependency/parsers/index.d.ts.map +1 -1
  3. package/dist/dependency/plugins/index.d.ts +1 -1
  4. package/dist/dependency/plugins/index.d.ts.map +1 -1
  5. package/dist/factory/options/Options.d.ts +16 -14
  6. package/dist/factory/options/Options.d.ts.map +1 -1
  7. package/dist/factory/options/Options.js +16 -14
  8. package/dist/factory/options/Options.js.map +1 -1
  9. package/dist/factory/options/option/html/index.d.ts +1 -1
  10. package/dist/factory/options/option/html/index.d.ts.map +1 -1
  11. package/dist/factory/options/option/html/index.js +1 -1
  12. package/dist/factory/options/option/html/index.js.map +1 -1
  13. package/dist/factory/options/option/js/index.d.ts +1 -1
  14. package/dist/factory/options/option/js/index.d.ts.map +1 -1
  15. package/dist/factory/options/option/js/index.js +1 -1
  16. package/dist/factory/options/option/js/index.js.map +1 -1
  17. package/dist/factory/options/option/json/index.d.ts +1 -1
  18. package/dist/factory/options/option/json/index.d.ts.map +1 -1
  19. package/dist/factory/options/option/json/index.js +1 -1
  20. package/dist/factory/options/option/json/index.js.map +1 -1
  21. package/dist/factory/options/option/jsonc/index.d.ts +1 -1
  22. package/dist/factory/options/option/jsonc/index.d.ts.map +1 -1
  23. package/dist/factory/options/option/jsonc/index.js +1 -1
  24. package/dist/factory/options/option/jsonc/index.js.map +1 -1
  25. package/dist/factory/options/option/md/index.d.ts +9 -0
  26. package/dist/factory/options/option/md/index.d.ts.map +1 -0
  27. package/dist/factory/options/option/md/index.js +15 -0
  28. package/dist/factory/options/option/md/index.js.map +1 -0
  29. package/dist/factory/options/option/svelte/index.d.ts +2 -2
  30. package/dist/factory/options/option/svelte/index.d.ts.map +1 -1
  31. package/dist/factory/options/option/svelte/index.js +1 -1
  32. package/dist/factory/options/option/svelte/index.js.map +1 -1
  33. package/dist/factory/options/option/ts/index.d.ts +2 -2
  34. package/dist/factory/options/option/ts/index.d.ts.map +1 -1
  35. package/dist/factory/options/option/ts/index.js +1 -1
  36. package/dist/factory/options/option/ts/index.js.map +1 -1
  37. package/dist/factory/options/option/yml/index.d.ts +1 -1
  38. package/dist/factory/options/option/yml/index.d.ts.map +1 -1
  39. package/dist/factory/options/option/yml/index.js +1 -1
  40. package/dist/factory/options/option/yml/index.js.map +1 -1
  41. package/dist/index.d.ts.map +1 -1
  42. package/dist/index.js +7 -0
  43. package/dist/index.js.map +1 -1
  44. package/dist/scopes/Scopes.d.ts +1 -1
  45. package/dist/scopes/Scopes.d.ts.map +1 -1
  46. package/dist/scopes/Scopes.js +1 -0
  47. package/dist/scopes/Scopes.js.map +1 -1
  48. package/package.json +2 -2
  49. package/src/dependency/parsers/index.ts +4 -0
  50. package/src/dependency/plugins/index.ts +1 -0
  51. package/src/factory/options/Options.ts +16 -14
  52. package/src/factory/options/option/html/index.ts +1 -1
  53. package/src/factory/options/option/js/index.ts +1 -1
  54. package/src/factory/options/option/json/index.ts +1 -1
  55. package/src/factory/options/option/jsonc/index.ts +1 -1
  56. package/src/factory/options/option/md/index.ts +26 -0
  57. package/src/factory/options/option/svelte/index.ts +4 -4
  58. package/src/factory/options/option/ts/index.ts +4 -4
  59. package/src/factory/options/option/yml/index.ts +1 -1
  60. package/src/index.ts +16 -0
  61. package/src/scopes/Scopes.ts +1 -0
  62. package/dist/boundary/input/files/list/list.d.ts +0 -3
  63. package/dist/boundary/input/files/list/list.d.ts.map +0 -1
  64. package/dist/boundary/input/files/list/list.js +0 -2
  65. package/dist/boundary/input/files/list/list.js.map +0 -1
  66. package/dist/boundary/input/overrides/overrides.d.ts +0 -5
  67. package/dist/boundary/input/overrides/overrides.d.ts.map +0 -1
  68. package/dist/boundary/input/overrides/overrides.js +0 -2
  69. package/dist/boundary/input/overrides/overrides.js.map +0 -1
  70. package/dist/boundary/input/rules/entry/entry.d.ts +0 -4
  71. package/dist/boundary/input/rules/entry/entry.d.ts.map +0 -1
  72. package/dist/boundary/input/rules/entry/entry.js +0 -2
  73. package/dist/boundary/input/rules/entry/entry.js.map +0 -1
  74. package/dist/boundary/input/rules/entry/object/object.d.ts +0 -4
  75. package/dist/boundary/input/rules/entry/object/object.d.ts.map +0 -1
  76. package/dist/boundary/input/rules/entry/object/object.js +0 -2
  77. package/dist/boundary/input/rules/entry/object/object.js.map +0 -1
  78. package/dist/boundary/input/rules/entry/object/state/level.d.ts +0 -3
  79. package/dist/boundary/input/rules/entry/object/state/level.d.ts.map +0 -1
  80. package/dist/boundary/input/rules/entry/object/state/level.js +0 -2
  81. package/dist/boundary/input/rules/entry/object/state/level.js.map +0 -1
@@ -1,3 +1,4 @@
1
- type Parsers = "ts" | "svelte" | "html" | "jsonc" | "yml";
1
+ import type { Scope } from "../../scopes/Scopes.js";
2
+ type Parsers = "ts" | "svelte" | "html" | "jsonc" | "yml" | "md" & Scope;
2
3
  export type { Parsers as default };
3
4
  //# sourceMappingURL=index.d.ts.map
@@ -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,CACR;AAED,YAAY,EAAE,OAAO,IAAI,OAAO,EAAE,CAAC"}
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 JsOption from "./option/js/index.js";
2
- import TsOption from "./option/ts/index.js";
3
- import SvelteOption from "./option/svelte/index.js";
4
- import HtmlOption from "./option/html/index.js";
5
- import JsonOption from "./option/json/index.js";
6
- import JsoncOption from "./option/jsonc/index.js";
7
- import YmlOption from "./option/yml/index.js";
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 JsOption;
10
- readonly ts: typeof TsOption;
11
- readonly svelte: typeof SvelteOption;
12
- readonly html: typeof HtmlOption;
13
- readonly json: typeof JsonOption;
14
- readonly jsonc: typeof JsoncOption;
15
- readonly yml: typeof YmlOption;
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,QAAQ,MAAM,sBAAsB,CAAC;AAC5C,OAAO,QAAQ,MAAM,sBAAsB,CAAC;AAC5C,OAAO,YAAY,MAAM,0BAA0B,CAAC;AACpD,OAAO,UAAU,MAAM,wBAAwB,CAAC;AAChD,OAAO,UAAU,MAAM,wBAAwB,CAAC;AAChD,OAAO,WAAW,MAAM,yBAAyB,CAAC;AAClD,OAAO,SAAS,MAAM,uBAAuB,CAAC;;;;;;;;;;AAE9C,wBAQW"}
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 JsOption from "./option/js/index.js";
2
- import TsOption from "./option/ts/index.js";
3
- import SvelteOption from "./option/svelte/index.js";
4
- import HtmlOption from "./option/html/index.js";
5
- import JsonOption from "./option/json/index.js";
6
- import JsoncOption from "./option/jsonc/index.js";
7
- import YmlOption from "./option/yml/index.js";
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: JsOption,
10
- ts: TsOption,
11
- svelte: SvelteOption,
12
- html: HtmlOption,
13
- json: JsonOption,
14
- jsonc: JsoncOption,
15
- yml: YmlOption,
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,QAAQ,MAAM,sBAAsB,CAAC;AAC5C,OAAO,QAAQ,MAAM,sBAAsB,CAAC;AAC5C,OAAO,YAAY,MAAM,0BAA0B,CAAC;AACpD,OAAO,UAAU,MAAM,wBAAwB,CAAC;AAChD,OAAO,UAAU,MAAM,wBAAwB,CAAC;AAChD,OAAO,WAAW,MAAM,yBAAyB,CAAC;AAClD,OAAO,SAAS,MAAM,uBAAuB,CAAC;AAE9C,eAAe;IACb,EAAE,EAAE,QAAQ;IACZ,EAAE,EAAE,QAAQ;IACZ,MAAM,EAAE,YAAY;IACpB,IAAI,EAAE,UAAU;IAChB,IAAI,EAAE,UAAU;IAChB,KAAK,EAAE,WAAW;IAClB,GAAG,EAAE,SAAS;CACN,CAAC"}
1
+ {"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 HtmlOption extends Option<"html", "@html-eslint", false, true, 1> {
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,UAAW,SAAQ,MAAM,CAC5C,MAAM,EACN,cAAc,EACd,KAAK,EACL,IAAI,EACJ,CAAC,CACF;IACC,SAAgB,KAAK,UAAU;IAC/B,SAAgB,SAAS,KAAe;IAExC,IAAW,eAAe;;MAYzB;CACF"}
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,5 +1,5 @@
1
1
  import Option from "../Option.js";
2
- export default class HtmlOption extends Option {
2
+ export default class Html extends Option {
3
3
  scope = "html";
4
4
  processor = {};
5
5
  get languageOptions() {
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/factory/options/option/html/index.ts"],"names":[],"mappings":"AAAA,OAAO,MAAM,MAAM,cAAc,CAAC;AAElC,MAAM,CAAC,OAAO,OAAO,UAAW,SAAQ,MAMvC;IACiB,KAAK,GAAG,MAAM,CAAC;IACf,SAAS,GAAG,EAAW,CAAC;IAExC,IAAW,eAAe;QACxB,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
+ {"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,5 +1,5 @@
1
1
  import Option from "../Option.js";
2
- export default class JsOption extends Option<"js", "@stylistic"> {
2
+ export default class Js extends Option<"js", "@stylistic"> {
3
3
  readonly scope = "js";
4
4
  readonly processor: {};
5
5
  get languageOptions(): {
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/factory/options/option/js/index.ts"],"names":[],"mappings":"AAAA,OAAO,MAAM,MAAM,cAAc,CAAC;AAElC,MAAM,CAAC,OAAO,OAAO,QAAS,SAAQ,MAAM,CAAC,IAAI,EAAE,YAAY,CAAC;IAC9D,SAAgB,KAAK,QAAQ;IAC7B,SAAgB,SAAS,KAAM;IAE/B,IAAW,eAAe;;;MAazB;CACF"}
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,5 +1,5 @@
1
1
  import Option from "../Option.js";
2
- export default class JsOption extends Option {
2
+ export default class Js extends Option {
3
3
  scope = "js";
4
4
  processor = {};
5
5
  get languageOptions() {
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/factory/options/option/js/index.ts"],"names":[],"mappings":"AAAA,OAAO,MAAM,MAAM,cAAc,CAAC;AAElC,MAAM,CAAC,OAAO,OAAO,QAAS,SAAQ,MAA0B;IAC9C,KAAK,GAAG,IAAI,CAAC;IACb,SAAS,GAAG,EAAE,CAAC;IAE/B,IAAW,eAAe;QACxB,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
+ {"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 JsonOption extends Option<"json", "jsonc", false, true, 1> {
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,UAAW,SAAQ,MAAM,CAC5C,MAAM,EACN,OAAO,EACP,KAAK,EACL,IAAI,EACJ,CAAC,CACF;IACC,SAAgB,KAAK,UAAU;IAC/B,SAAgB,SAAS,KAAe;IAExC,IAAW,eAAe;;MAYzB;CACF"}
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,5 +1,5 @@
1
1
  import Option from "../Option.js";
2
- export default class JsonOption extends Option {
2
+ export default class Json extends Option {
3
3
  scope = "json";
4
4
  processor = {};
5
5
  get languageOptions() {
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/factory/options/option/json/index.ts"],"names":[],"mappings":"AAAA,OAAO,MAAM,MAAM,cAAc,CAAC;AAElC,MAAM,CAAC,OAAO,OAAO,UAAW,SAAQ,MAMvC;IACiB,KAAK,GAAG,MAAM,CAAC;IACf,SAAS,GAAG,EAAW,CAAC;IAExC,IAAW,eAAe;QACxB,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
+ {"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 JsoncOption extends Option<"jsonc", "jsonc", false, true, 1> {
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,WAAY,SAAQ,MAAM,CAC7C,OAAO,EACP,OAAO,EACP,KAAK,EACL,IAAI,EACJ,CAAC,CACF;IACC,SAAgB,KAAK,WAAW;IAChC,SAAgB,SAAS,KAAe;IAExC,IAAW,eAAe;;MAYzB;CACF"}
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,5 +1,5 @@
1
1
  import Option from "../Option.js";
2
- export default class JsoncOption extends Option {
2
+ export default class Jsonc extends Option {
3
3
  scope = "jsonc";
4
4
  processor = {};
5
5
  get languageOptions() {
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/factory/options/option/jsonc/index.ts"],"names":[],"mappings":"AAAA,OAAO,MAAM,MAAM,cAAc,CAAC;AAElC,MAAM,CAAC,OAAO,OAAO,WAAY,SAAQ,MAMxC;IACiB,KAAK,GAAG,OAAO,CAAC;IAChB,SAAS,GAAG,EAAW,CAAC;IAExC,IAAW,eAAe;QACxB,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"}
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 TsOption from "../ts/index.js";
3
- export default class SvelteOption extends Option<"svelte", "svelte" | keyof TsOption["option"]["plugins"], true, TsOption["option"]["languageOptions"]["parserOptions"] & {
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,QAAQ,MAAM,gBAAgB,CAAC;AAE3C,MAAM,CAAC,OAAO,OAAO,YAAa,SAAQ,MAAM,CAC9C,QAAQ,EACR,QAAQ,GAAG,MAAM,QAAQ,CAAC,QAAQ,CAAC,CAAC,SAAS,CAAC,EAC9C,IAAI,EACF,QAAQ,CAAC,QAAQ,CAAC,CAAC,iBAAiB,CAAC,CAAC,eAAe,CAAC,GACtD;IAAE,MAAM,EAAE,OAAO,CAAA;CAAE,GACnB;IAAE,mBAAmB,EAAE,SAAS,CAAC,SAAS,CAAC,CAAA;CAAE,EAC/C,CAAC,EACD,KAAK,EACL;IAAE,SAAS,EAAE,eAAe,CAAA;CAAE,CAC/B;IACC,SAAgB,KAAK,YAAY;IACjC,SAAgB,SAAS;;MAA2C;IAEpE,IAAW,eAAe;;;;;;;;;;;MAuBzB;CACF"}
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,5 +1,5 @@
1
1
  import Option from "../Option.js";
2
- export default class SvelteOption extends Option {
2
+ export default class Svelte extends Option {
3
3
  scope = "svelte";
4
4
  processor = { processor: "svelte/svelte" };
5
5
  get languageOptions() {
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/factory/options/option/svelte/index.ts"],"names":[],"mappings":"AAAA,OAAO,MAAM,MAAM,cAAc,CAAC;AAGlC,MAAM,CAAC,OAAO,OAAO,YAAa,SAAQ,MAUzC;IACiB,KAAK,GAAG,QAAQ,CAAC;IACjB,SAAS,GAAG,EAAE,SAAS,EAAE,eAAe,EAAW,CAAC;IAEpE,IAAW,eAAe;QACxB,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
+ {"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 JsOption from "../js/index.js";
3
- export default class TsOption extends Option<"ts", "@typescript-eslint" | keyof JsOption["option"]["plugins"], true, JsOption["option"]["languageOptions"] & {
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,QAAQ,MAAM,gBAAgB,CAAC;AAE3C,MAAM,CAAC,OAAO,OAAO,QAAS,SAAQ,MAAM,CAC1C,IAAI,EACJ,oBAAoB,GAAG,MAAM,QAAQ,CAAC,QAAQ,CAAC,CAAC,SAAS,CAAC,EAC1D,IAAI,EACF,QAAQ,CAAC,QAAQ,CAAC,CAAC,iBAAiB,CAAC,GACrC;IAAE,OAAO,EAAE,eAAe,CAAA;CAAE,EAC9B,CAAC,CACF;IACC,SAAgB,KAAK,QAAQ;IAC7B,SAAgB,SAAS,KAAe;IAExC,IAAW,eAAe;;;;;;;;;MAqBzB;CACF"}
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,5 +1,5 @@
1
1
  import Option from "../Option.js";
2
- export default class TsOption extends Option {
2
+ export default class Ts extends Option {
3
3
  scope = "ts";
4
4
  processor = {};
5
5
  get languageOptions() {
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/factory/options/option/ts/index.ts"],"names":[],"mappings":"AAAA,OAAO,MAAM,MAAM,cAAc,CAAC;AAGlC,MAAM,CAAC,OAAO,OAAO,QAAS,SAAQ,MAOrC;IACiB,KAAK,GAAG,IAAI,CAAC;IACb,SAAS,GAAG,EAAW,CAAC;IAExC,IAAW,eAAe;QACxB,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
+ {"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,5 +1,5 @@
1
1
  import Option from "../Option.js";
2
- export default class YmlOption extends Option<"yml", "yml", false, true, 1> {
2
+ export default class Yml extends Option<"yml", "yml", false, true, 1> {
3
3
  readonly scope = "yml";
4
4
  readonly processor: {};
5
5
  get languageOptions(): {
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/factory/options/option/yml/index.ts"],"names":[],"mappings":"AAAA,OAAO,MAAM,MAAM,cAAc,CAAC;AAElC,MAAM,CAAC,OAAO,OAAO,SAAU,SAAQ,MAAM,CAC3C,KAAK,EACL,KAAK,EACL,KAAK,EACL,IAAI,EACJ,CAAC,CACF;IACC,SAAgB,KAAK,SAAS;IAC9B,SAAgB,SAAS,KAAe;IAExC,IAAW,eAAe;;MAYzB;CACF"}
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,5 +1,5 @@
1
1
  import Option from "../Option.js";
2
- export default class YmlOption extends Option {
2
+ export default class Yml extends Option {
3
3
  scope = "yml";
4
4
  processor = {};
5
5
  get languageOptions() {
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/factory/options/option/yml/index.ts"],"names":[],"mappings":"AAAA,OAAO,MAAM,MAAM,cAAc,CAAC;AAElC,MAAM,CAAC,OAAO,OAAO,SAAU,SAAQ,MAMtC;IACiB,KAAK,GAAG,KAAK,CAAC;IACd,SAAS,GAAG,EAAW,CAAC;IAExC,IAAW,eAAe;QACxB,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"}
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"}
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,QAAQ,MAAM,wBAAwB,CAAC;AASxD,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,CAqInB"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,QAAQ,MAAM,wBAAwB,CAAC;AASxD,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,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,KAGC;IAED,I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,CAAC,KAAK,CAAC,EACd,QAAQ,CAAC,GAAG,EACZ,EAAE,GAAG,EAAE,OAAO,CAAC,GAAG,EAAE,EACpB,aAAa,CAAC,GAAG,CAClB;iBACA,OAAO;YACV,EAAE,EAAE,IAAI,OAAO;iBACZ,EAAE,CACD,CAAC,CAAC,KAAK,CAAC,IAAI,CAAC,EACb,QAAQ,CAAC,EAAE,EACX;gBACE,YAAY,EAAE,OAAO,CAAC,YAAY;aACnC,EACD,aAAa,CAAC,EAAE,CACjB;iBACA,OAAO;SAEX,CAAC;QAEF,OAAO,MAAM;aACV,GAAG,CAAC,KAAK,CAAC,EAAE,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC;aAC5B,IAAI,EAAE,CAAC;IACZ,CAAC;IACD,OAAO,CAAC,EAAE,CAAC;QACT,MAAM,IAAI,KAAK,CACb,aAAa,EACb,EAAE,KAAK,EAAE,CAAC,EAAE,CACb,CAAC;IACJ,CAAC;AACH,CAAC"}
@@ -1,4 +1,4 @@
1
- declare const scopes: readonly ["js", "ts", "svelte", "html", "json", "jsonc", "yml"];
1
+ 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,iEAQF,CAAC;AAEX,eAAe,MAAM,CAAC;AACtB,MAAM,MAAM,KAAK,GAAG,CAAC,OAAO,MAAM,CAAC,CAAC,MAAM,CAAC,CAAC"}
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"}
@@ -6,6 +6,7 @@ const scopes = [
6
6
  "json",
7
7
  "jsonc",
8
8
  "yml",
9
+ "md",
9
10
  ];
10
11
  export default scopes;
11
12
  //# sourceMappingURL=Scopes.js.map
@@ -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;CACG,CAAC;AAEX,eAAe,MAAM,CAAC"}
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,7 +1,7 @@
1
1
  {
2
2
  "_schemaVersion": "20.13.0",
3
3
  "name": "@eslinted/core",
4
- "version": "2.0.0",
4
+ "version": "2.1.0-rc.1",
5
5
  "description": "Core ESLint flat config factory npm package `linted`.",
6
6
  "keywords": [],
7
7
  "license": "MIT",
@@ -26,7 +26,7 @@
26
26
  "dependencies": {},
27
27
  "devDependencies": {
28
28
  "eslint": "~8.57.0",
29
- "linted": "~15.4.14",
29
+ "linted": "~15.4.15",
30
30
  "npm-run-all": "^4.1.5",
31
31
  "typescript": "^5.5.4"
32
32
  },
@@ -1,9 +1,13 @@
1
+ import type { Scope } from "../../scopes/Scopes.js";
2
+
1
3
  type Parsers =
2
4
  | "ts"
3
5
  | "svelte"
4
6
  | "html"
5
7
  | "jsonc"
6
8
  | "yml"
9
+ | "md"
10
+ & Scope
7
11
  ;
8
12
 
9
13
  export type { Parsers as default };
@@ -5,6 +5,7 @@ type Plugins =
5
5
  | "@html-eslint"
6
6
  | "jsonc"
7
7
  | "yml"
8
+ | "markdownlint"
8
9
  ;
9
10
 
10
11
  export type { Plugins as default };
@@ -1,17 +1,19 @@
1
- import JsOption from "./option/js/index.js";
2
- import TsOption from "./option/ts/index.js";
3
- import SvelteOption from "./option/svelte/index.js";
4
- import HtmlOption from "./option/html/index.js";
5
- import JsonOption from "./option/json/index.js";
6
- import JsoncOption from "./option/jsonc/index.js";
7
- import YmlOption from "./option/yml/index.js";
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: JsOption,
11
- ts: TsOption,
12
- svelte: SvelteOption,
13
- html: HtmlOption,
14
- json: JsonOption,
15
- jsonc: JsoncOption,
16
- yml: YmlOption,
11
+ js,
12
+ ts,
13
+ svelte,
14
+ html,
15
+ json,
16
+ jsonc,
17
+ yml,
18
+ md,
17
19
  } as const;
@@ -1,6 +1,6 @@
1
1
  import Option from "../Option.js";
2
2
 
3
- export default class HtmlOption extends Option<
3
+ export default class Html extends Option<
4
4
  "html",
5
5
  "@html-eslint",
6
6
  false,
@@ -1,6 +1,6 @@
1
1
  import Option from "../Option.js";
2
2
 
3
- export default class JsOption extends Option<"js", "@stylistic"> {
3
+ export default class Js extends Option<"js", "@stylistic"> {
4
4
  public readonly scope = "js";
5
5
  public readonly processor = {};
6
6
 
@@ -1,6 +1,6 @@
1
1
  import Option from "../Option.js";
2
2
 
3
- export default class JsonOption extends Option<
3
+ export default class Json extends Option<
4
4
  "json",
5
5
  "jsonc",
6
6
  false,
@@ -1,6 +1,6 @@
1
1
  import Option from "../Option.js";
2
2
 
3
- export default class JsoncOption extends Option<
3
+ export default class Jsonc extends Option<
4
4
  "jsonc",
5
5
  "jsonc",
6
6
  false,
@@ -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 TsOption from "../ts/index.js";
2
+ import type Ts from "../ts/index.js";
3
3
 
4
- export default class SvelteOption extends Option<
4
+ export default class Svelte extends Option<
5
5
  "svelte",
6
- "svelte" | keyof TsOption["option"]["plugins"],
6
+ "svelte" | keyof Ts["option"]["plugins"],
7
7
  true,
8
- & TsOption["option"]["languageOptions"]["parserOptions"]
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 JsOption from "../js/index.js";
2
+ import type Js from "../js/index.js";
3
3
 
4
- export default class TsOption extends Option<
4
+ export default class Ts extends Option<
5
5
  "ts",
6
- "@typescript-eslint" | keyof JsOption["option"]["plugins"],
6
+ "@typescript-eslint" | keyof Js["option"]["plugins"],
7
7
  true,
8
- & JsOption["option"]["languageOptions"]
8
+ & Js["option"]["languageOptions"]
9
9
  & { project: "tsconfig.json" },
10
10
  1
11
11
  > {
@@ -1,6 +1,6 @@
1
1
  import Option from "../Option.js";
2
2
 
3
- export default class YmlOption extends Option<
3
+ export default class Yml extends Option<
4
4
  "yml",
5
5
  "yml",
6
6
  false,
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
@@ -6,6 +6,7 @@ const scopes = [
6
6
  "json",
7
7
  "jsonc",
8
8
  "yml",
9
+ "md",
9
10
  ] as const;
10
11
 
11
12
  export default scopes;
@@ -1,3 +0,0 @@
1
- type List = readonly string[];
2
- export type { List as default, List, };
3
- //# sourceMappingURL=list.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"list.d.ts","sourceRoot":"","sources":["../../../../../src/boundary/input/files/list/list.ts"],"names":[],"mappings":"AAAA,KAAK,IAAI,GAAG,SAAS,MAAM,EAAE,CAAC;AAE9B,YAAY,EACV,IAAI,IAAI,OAAO,EACf,IAAI,GACL,CAAC"}
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=list.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"list.js","sourceRoot":"","sources":["../../../../../src/boundary/input/files/list/list.ts"],"names":[],"mappings":""}
@@ -1,5 +0,0 @@
1
- import type { Scope } from "../../../scopes/Scopes.js";
2
- import type { Rules } from "../input.js";
3
- type Overrides = Readonly<Particord<Scope, Rules.Entry.Object>>;
4
- export type { Overrides as default, Overrides, };
5
- //# sourceMappingURL=overrides.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"overrides.d.ts","sourceRoot":"","sources":["../../../../src/boundary/input/overrides/overrides.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,2BAA2B,CAAC;AACvD,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,aAAa,CAAC;AAEzC,KAAK,SAAS,GAAG,QAAQ,CAAC,SAAS,CAAC,KAAK,EAAE,KAAK,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC,CAAC;AAEhE,YAAY,EACV,SAAS,IAAI,OAAO,EACpB,SAAS,GACV,CAAC"}
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=overrides.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"overrides.js","sourceRoot":"","sources":["../../../../src/boundary/input/overrides/overrides.ts"],"names":[],"mappings":""}
@@ -1,4 +0,0 @@
1
- import type * as Entry from "./object/object.js";
2
- type Entry = readonly [string, Entry.Object];
3
- export type { Entry as default, Entry, };
4
- //# sourceMappingURL=entry.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"entry.d.ts","sourceRoot":"","sources":["../../../../../src/boundary/input/rules/entry/entry.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,KAAK,MAAM,oBAAoB,CAAC;AAEjD,KAAK,KAAK,GAAG,SAAS,CAAC,MAAM,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;AAE7C,YAAY,EACV,KAAK,IAAI,OAAO,EAChB,KAAK,GACN,CAAC"}
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=entry.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"entry.js","sourceRoot":"","sources":["../../../../../src/boundary/input/rules/entry/entry.ts"],"names":[],"mappings":""}
@@ -1,4 +0,0 @@
1
- import type * as Object from "./state/level.js";
2
- type Object = Readonly<Record<string, Object.Level | readonly [Object.Level, ...unknown[]]>>;
3
- export type { Object as default, Object, };
4
- //# sourceMappingURL=object.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"object.d.ts","sourceRoot":"","sources":["../../../../../../src/boundary/input/rules/entry/object/object.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,MAAM,kBAAkB,CAAC;AAEhD,KAAK,MAAM,GAAG,QAAQ,CAAC,MAAM,CAC3B,MAAM,EACJ,MAAM,CAAC,KAAK,GACZ,SAAS,CAAC,MAAM,CAAC,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CACxC,CAAC,CAAC;AAEH,YAAY,EACV,MAAM,IAAI,OAAO,EACjB,MAAM,GACP,CAAC"}
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=object.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"object.js","sourceRoot":"","sources":["../../../../../../src/boundary/input/rules/entry/object/object.ts"],"names":[],"mappings":""}
@@ -1,3 +0,0 @@
1
- type Level = "error" | "warn" | "off";
2
- export type { Level as default, Level, };
3
- //# sourceMappingURL=level.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"level.d.ts","sourceRoot":"","sources":["../../../../../../../src/boundary/input/rules/entry/object/state/level.ts"],"names":[],"mappings":"AAAA,KAAK,KAAK,GACN,OAAO,GACP,MAAM,GACN,KAAK,CAAC;AAEV,YAAY,EACV,KAAK,IAAI,OAAO,EAChB,KAAK,GACN,CAAC"}
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=level.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"level.js","sourceRoot":"","sources":["../../../../../../../src/boundary/input/rules/entry/object/state/level.ts"],"names":[],"mappings":""}