@eslinted/core 4.0.5-rc.2 → 4.0.5-rc.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (165) hide show
  1. package/package.json +1 -2
  2. package/dist/factory/files.d.ts +0 -8
  3. package/dist/factory/files.d.ts.map +0 -1
  4. package/dist/factory/files.js +0 -16
  5. package/dist/factory/files.js.map +0 -1
  6. package/dist/factory/index.d.ts +0 -5
  7. package/dist/factory/index.d.ts.map +0 -1
  8. package/dist/factory/index.js +0 -5
  9. package/dist/factory/index.js.map +0 -1
  10. package/dist/factory/options/html.d.ts +0 -9
  11. package/dist/factory/options/html.d.ts.map +0 -1
  12. package/dist/factory/options/html.js +0 -10
  13. package/dist/factory/options/html.js.map +0 -1
  14. package/dist/factory/options/index.d.ts +0 -22
  15. package/dist/factory/options/index.d.ts.map +0 -1
  16. package/dist/factory/options/index.js +0 -21
  17. package/dist/factory/options/index.js.map +0 -1
  18. package/dist/factory/options/js.d.ts +0 -10
  19. package/dist/factory/options/js.d.ts.map +0 -1
  20. package/dist/factory/options/js.js +0 -12
  21. package/dist/factory/options/js.js.map +0 -1
  22. package/dist/factory/options/json.d.ts +0 -9
  23. package/dist/factory/options/json.d.ts.map +0 -1
  24. package/dist/factory/options/json.js +0 -10
  25. package/dist/factory/options/json.js.map +0 -1
  26. package/dist/factory/options/jsonc.d.ts +0 -9
  27. package/dist/factory/options/jsonc.d.ts.map +0 -1
  28. package/dist/factory/options/jsonc.js +0 -10
  29. package/dist/factory/options/jsonc.js.map +0 -1
  30. package/dist/factory/options/md.d.ts +0 -9
  31. package/dist/factory/options/md.d.ts.map +0 -1
  32. package/dist/factory/options/md.js +0 -10
  33. package/dist/factory/options/md.js.map +0 -1
  34. package/dist/factory/options/mocha.d.ts +0 -40
  35. package/dist/factory/options/mocha.d.ts.map +0 -1
  36. package/dist/factory/options/mocha.js +0 -17
  37. package/dist/factory/options/mocha.js.map +0 -1
  38. package/dist/factory/options/option/index.d.ts +0 -2989
  39. package/dist/factory/options/option/index.d.ts.map +0 -1
  40. package/dist/factory/options/option/index.js +0 -56
  41. package/dist/factory/options/option/index.js.map +0 -1
  42. package/dist/factory/options/option/params/globals.d.ts +0 -3
  43. package/dist/factory/options/option/params/globals.d.ts.map +0 -1
  44. package/dist/factory/options/option/params/globals.js +0 -2
  45. package/dist/factory/options/option/params/globals.js.map +0 -1
  46. package/dist/factory/options/option/params/language.d.ts +0 -14
  47. package/dist/factory/options/option/params/language.d.ts.map +0 -1
  48. package/dist/factory/options/option/params/language.js +0 -2
  49. package/dist/factory/options/option/params/language.js.map +0 -1
  50. package/dist/factory/options/option/params/languageOptions/ecma.d.ts +0 -2
  51. package/dist/factory/options/option/params/languageOptions/ecma.d.ts.map +0 -1
  52. package/dist/factory/options/option/params/languageOptions/ecma.js +0 -2
  53. package/dist/factory/options/option/params/languageOptions/ecma.js.map +0 -1
  54. package/dist/factory/options/option/params/languageOptions/source.d.ts +0 -2
  55. package/dist/factory/options/option/params/languageOptions/source.d.ts.map +0 -1
  56. package/dist/factory/options/option/params/languageOptions/source.js +0 -2
  57. package/dist/factory/options/option/params/languageOptions/source.js.map +0 -1
  58. package/dist/factory/options/option/params/linter.d.ts +0 -5
  59. package/dist/factory/options/option/params/linter.d.ts.map +0 -1
  60. package/dist/factory/options/option/params/linter.js +0 -2
  61. package/dist/factory/options/option/params/linter.js.map +0 -1
  62. package/dist/factory/options/option/params/plugins.d.ts +0 -4
  63. package/dist/factory/options/option/params/plugins.d.ts.map +0 -1
  64. package/dist/factory/options/option/params/plugins.js +0 -2
  65. package/dist/factory/options/option/params/plugins.js.map +0 -1
  66. package/dist/factory/options/option/template.d.ts +0 -14
  67. package/dist/factory/options/option/template.d.ts.map +0 -1
  68. package/dist/factory/options/option/template.js +0 -2
  69. package/dist/factory/options/option/template.js.map +0 -1
  70. package/dist/factory/options/svelte.d.ts +0 -27
  71. package/dist/factory/options/svelte.d.ts.map +0 -1
  72. package/dist/factory/options/svelte.js +0 -21
  73. package/dist/factory/options/svelte.js.map +0 -1
  74. package/dist/factory/options/ts.d.ts +0 -19
  75. package/dist/factory/options/ts.d.ts.map +0 -1
  76. package/dist/factory/options/ts.js +0 -15
  77. package/dist/factory/options/ts.js.map +0 -1
  78. package/dist/factory/options/yml.d.ts +0 -9
  79. package/dist/factory/options/yml.d.ts.map +0 -1
  80. package/dist/factory/options/yml.js +0 -10
  81. package/dist/factory/options/yml.js.map +0 -1
  82. package/dist/factory/ruleset/index.d.ts +0 -14
  83. package/dist/factory/ruleset/index.d.ts.map +0 -1
  84. package/dist/factory/ruleset/index.js +0 -38
  85. package/dist/factory/ruleset/index.js.map +0 -1
  86. package/dist/factory/ruleset/rule.d.ts +0 -7
  87. package/dist/factory/ruleset/rule.d.ts.map +0 -1
  88. package/dist/factory/ruleset/rule.js +0 -9
  89. package/dist/factory/ruleset/rule.js.map +0 -1
  90. package/dist/factory/rulesets.d.ts +0 -9
  91. package/dist/factory/rulesets.d.ts.map +0 -1
  92. package/dist/factory/rulesets.js +0 -17
  93. package/dist/factory/rulesets.js.map +0 -1
  94. package/dist/index.d.ts +0 -25
  95. package/dist/index.d.ts.map +0 -1
  96. package/dist/index.js +0 -31
  97. package/dist/index.js.map +0 -1
  98. package/dist/input.d.ts +0 -11
  99. package/dist/input.d.ts.map +0 -1
  100. package/dist/input.js +0 -2
  101. package/dist/input.js.map +0 -1
  102. package/dist/inputs/files/base.d.ts +0 -3
  103. package/dist/inputs/files/base.d.ts.map +0 -1
  104. package/dist/inputs/files/base.js +0 -2
  105. package/dist/inputs/files/base.js.map +0 -1
  106. package/dist/inputs/files/includes.d.ts +0 -3
  107. package/dist/inputs/files/includes.d.ts.map +0 -1
  108. package/dist/inputs/files/includes.js +0 -2
  109. package/dist/inputs/files/includes.js.map +0 -1
  110. package/dist/inputs/files.d.ts +0 -7
  111. package/dist/inputs/files.d.ts.map +0 -1
  112. package/dist/inputs/files.js +0 -2
  113. package/dist/inputs/files.js.map +0 -1
  114. package/dist/inputs/imports/parsers.d.ts +0 -3
  115. package/dist/inputs/imports/parsers.d.ts.map +0 -1
  116. package/dist/inputs/imports/parsers.js +0 -2
  117. package/dist/inputs/imports/parsers.js.map +0 -1
  118. package/dist/inputs/imports/plugins.d.ts +0 -2
  119. package/dist/inputs/imports/plugins.d.ts.map +0 -1
  120. package/dist/inputs/imports/plugins.js +0 -2
  121. package/dist/inputs/imports/plugins.js.map +0 -1
  122. package/dist/inputs/imports.d.ts +0 -3
  123. package/dist/inputs/imports.d.ts.map +0 -1
  124. package/dist/inputs/imports.js +0 -2
  125. package/dist/inputs/imports.js.map +0 -1
  126. package/dist/inputs/parsers.d.ts +0 -3
  127. package/dist/inputs/parsers.d.ts.map +0 -1
  128. package/dist/inputs/parsers.js +0 -2
  129. package/dist/inputs/parsers.js.map +0 -1
  130. package/dist/inputs/plugins.d.ts +0 -5
  131. package/dist/inputs/plugins.d.ts.map +0 -1
  132. package/dist/inputs/plugins.js +0 -2
  133. package/dist/inputs/plugins.js.map +0 -1
  134. package/dist/inputs/rules/entry/index.d.ts +0 -3
  135. package/dist/inputs/rules/entry/index.d.ts.map +0 -1
  136. package/dist/inputs/rules/entry/index.js +0 -2
  137. package/dist/inputs/rules/entry/index.js.map +0 -1
  138. package/dist/inputs/rules/entry/object/index.d.ts +0 -3
  139. package/dist/inputs/rules/entry/object/index.d.ts.map +0 -1
  140. package/dist/inputs/rules/entry/object/index.js +0 -2
  141. package/dist/inputs/rules/entry/object/index.js.map +0 -1
  142. package/dist/inputs/rules/entry/object/state/index.d.ts +0 -2
  143. package/dist/inputs/rules/entry/object/state/index.d.ts.map +0 -1
  144. package/dist/inputs/rules/entry/object/state/index.js +0 -2
  145. package/dist/inputs/rules/entry/object/state/index.js.map +0 -1
  146. package/dist/inputs/rules/overrides.d.ts +0 -4
  147. package/dist/inputs/rules/overrides.d.ts.map +0 -1
  148. package/dist/inputs/rules/overrides.js +0 -2
  149. package/dist/inputs/rules/overrides.js.map +0 -1
  150. package/dist/inputs/rules/preset.d.ts +0 -4
  151. package/dist/inputs/rules/preset.d.ts.map +0 -1
  152. package/dist/inputs/rules/preset.js +0 -2
  153. package/dist/inputs/rules/preset.js.map +0 -1
  154. package/dist/inputs/rules.d.ts +0 -7
  155. package/dist/inputs/rules.d.ts.map +0 -1
  156. package/dist/inputs/rules.js +0 -2
  157. package/dist/inputs/rules.js.map +0 -1
  158. package/dist/output.d.ts +0 -22
  159. package/dist/output.d.ts.map +0 -1
  160. package/dist/output.js +0 -2
  161. package/dist/output.js.map +0 -1
  162. package/dist/scopes.d.ts +0 -3
  163. package/dist/scopes.d.ts.map +0 -1
  164. package/dist/scopes.js +0 -12
  165. package/dist/scopes.js.map +0 -1
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/factory/options/option/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,gBAAgB,CAAC;AAC5C,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,gBAAgB,CAAC;AAC5C,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,gBAAgB,CAAC;AAC7C,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,eAAe,CAAC;AAC7C,OAAO,KAAK,EAEV,eAAe,EACf,OAAO,EACP,OAAO,EACR,MAAM,YAAY,CAAC;AAGpB,MAAM,CAAC,OAAO,CAAC,QAAQ,OAAO,MAAM,CAClC,CAAC,SAAS,KAAK,EACf,MAAM,SAAS,MAAM,KAAK,CAAC,SAAS,CAAC,EACrC,MAAM,SAAS,OAAO,GAAG,IAAI,EAC7B,aAAa,SAAS,MAAM,GAAG,OAAO,GAAG,KAAK,EAC9C,WAAW,SAAS,CAAC,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,EACjC,MAAM,SAAS,OAAO,GAAG,KAAK,EAC9B,SAAS,SAAS,MAAM,GAAG,KAAK;aAYd,KAAK,EAAE,SAAS,MAAM,EAAE;aACxB,OAAO,EAAE,OAAO,CAAC,CAAC,CAAC;aACnB,OAAO,EAAE,OAAO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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAG/B"}
@@ -1,56 +0,0 @@
1
- import globals from "globals";
2
- export default class Option {
3
- files;
4
- ruleset;
5
- plugins;
6
- parser;
7
- linterOptions = { noInlineConfig: true, reportUnusedDisableDirectives: "error" };
8
- constructor(files, ruleset, plugins, parser) {
9
- this.files = files;
10
- this.ruleset = ruleset;
11
- this.plugins = plugins;
12
- this.parser = parser;
13
- }
14
- get configs() {
15
- try {
16
- const { scope, ruleset, files, option, } = this;
17
- if (ruleset.id !== scope)
18
- throw new TypeError(`Option and Ruleset scope mismatch`, { cause: { option: scope, ruleset: ruleset.id } });
19
- else if (files.length < 1)
20
- return [];
21
- else {
22
- const baseName = `linted/scope:${scope}/rule:${ruleset.id}`;
23
- return ruleset.records.map(([ruleId, rules]) => {
24
- const name = `${baseName}+${ruleId}`;
25
- return {
26
- name,
27
- files,
28
- rules,
29
- ...option,
30
- };
31
- });
32
- }
33
- }
34
- catch (e) {
35
- throw new Error(`linted.factory.Option/scope:${this.scope}: configs`, { cause: e });
36
- }
37
- }
38
- get option() {
39
- try {
40
- const { plugins, linterOptions, languageOptions, processor, } = this;
41
- return {
42
- plugins,
43
- linterOptions,
44
- languageOptions,
45
- ...processor,
46
- };
47
- }
48
- catch (e) {
49
- throw new Error(`linted.factory.Option/scope:${this.scope}: option`, { cause: e });
50
- }
51
- }
52
- globals(type) {
53
- return globals[type];
54
- }
55
- }
56
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/factory/options/option/index.ts"],"names":[],"mappings":"AAUA,OAAO,OAAO,MAAM,SAAS,CAAC;AAE9B,MAAM,CAAC,OAAO,OAAgB,MAAM;IAmBhB;IACA;IACA;IACA;IAbD,aAAa,GAAG,EAAE,cAAc,EAAE,IAAI,EAAE,6BAA6B,EAAE,OAAO,EAAW,CAAC;IAS3G,YACkB,KAAwB,EACxB,OAAmB,EACnB,OAAwB,EACxB,MAAmC;QAHnC,UAAK,GAAL,KAAK,CAAmB;QACxB,YAAO,GAAP,OAAO,CAAY;QACnB,YAAO,GAAP,OAAO,CAAiB;QACxB,WAAM,GAAN,MAAM,CAA6B;IAClD,CAAC;IAEJ,IAAW,OAAO;QAChB,IAAI,CAAC;YACH,MAAM,EACJ,KAAK,EACL,OAAO,EACP,KAAK,EACL,MAAM,GACP,GAAG,IAAI,CAAC;YAET,IAAI,OAAO,CAAC,EAAE,KAAK,KAAK;gBACtB,MAAM,IAAI,SAAS,CAAC,mCAAmC,EAAE,EAAE,KAAK,EAAE,EAAE,MAAM,EAAE,KAAK,EAAE,OAAO,EAAE,OAAO,CAAC,EAAE,EAAE,EAAE,CAAC,CAAC;iBACzG,IAAI,KAAK,CAAC,MAAM,GAAG,CAAC;gBACvB,OAAO,EAAE,CAAC;iBACP,CAAC;gBACJ,MAAM,QAAQ,GAAG,gBAAgB,KAAK,SAAS,OAAO,CAAC,EAAE,EAAW,CAAC;gBAErE,OAAO,OAAO,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,MAAM,EAAE,KAAK,CAAC,EAAE,EAAE;oBAC7C,MAAM,IAAI,GAAG,GAAG,QAAQ,IAAI,MAAM,EAAW,CAAC;oBAE9C,OAAO;wBACL,IAAI;wBACJ,KAAK;wBACL,KAAK;wBACL,GAAG,MAAM;qBACV,CAAC;gBACJ,CAAC,CAAC,CAAC;YACL,CAAC;QACH,CAAC;QACD,OAAO,CAAC,EAAE,CAAC;YAAC,MAAM,IAAI,KAAK,CAAC,+BAA+B,IAAI,CAAC,KAAK,WAAW,EAAE,EAAE,KAAK,EAAE,CAAC,EAAE,CAAC,CAAC;QAAC,CAAC;IACpG,CAAC;IAED,IAAY,MAAM;QAChB,IAAI,CAAC;YACH,MAAM,EACJ,OAAO,EACP,aAAa,EACb,eAAe,EACf,SAAS,GACV,GAAG,IAAI,CAAC;YAET,OAAO;gBACL,OAAO;gBACP,aAAa;gBACb,eAAe;gBACf,GAAG,SAAS;aAOb,CAAC;QACJ,CAAC;QACD,OAAO,CAAC,EAAE,CAAC;YAAC,MAAM,IAAI,KAAK,CAAC,+BAA+B,IAAI,CAAC,KAAK,UAAU,EAAE,EAAE,KAAK,EAAE,CAAC,EAAE,CAAC,CAAC;QAAC,CAAC;IACnG,CAAC;IAIS,OAAO,CAAC,IAAY;QAC5B,OAAO,OAAO,CAAC,IAAI,CAAC,CAAC;IACvB,CAAC;CACF"}
@@ -1,3 +0,0 @@
1
- import type globals from "globals";
2
- export type Globals = keyof typeof globals & "mocha";
3
- //# sourceMappingURL=globals.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"globals.d.ts","sourceRoot":"","sources":["../../../../../src/factory/options/option/params/globals.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,OAAO,MAAM,SAAS,CAAC;AAEnC,MAAM,MAAM,OAAO,GAAG,MAAM,OAAO,OAAO,GAAG,OAAO,CAAC"}
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=globals.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"globals.js","sourceRoot":"","sources":["../../../../../src/factory/options/option/params/globals.ts"],"names":[],"mappings":""}
@@ -1,14 +0,0 @@
1
- import type { Ecma } from "./languageOptions/ecma.js";
2
- import type { Source } from "./languageOptions/source.js";
3
- export type LanguageOptions<IsEcma extends boolean, ParserOptions extends object | boolean, GlobalTypes extends string> = (True<IsEcma> extends never ? object : {
4
- ecmaVersion: Ecma;
5
- sourceType: Source;
6
- }) & (literalful<GlobalTypes> extends never ? object : {
7
- globals: Record<string, unknown>;
8
- }) & (ParserOptions extends boolean ? True<ParserOptions> extends never ? object : {
9
- parser: unknown;
10
- } : ParserOptions extends object ? Interface<ParserOptions> extends never ? object : {
11
- parser: unknown;
12
- parserOptions: ParserOptions;
13
- } : object);
14
- //# sourceMappingURL=language.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"language.d.ts","sourceRoot":"","sources":["../../../../../src/factory/options/option/params/language.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,wBAAwB,CAAC;AACnD,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,0BAA0B,CAAC;AAEvD,MAAM,MAAM,eAAe,CACzB,MAAM,SAAS,OAAO,EACtB,aAAa,SAAS,MAAM,GAAG,OAAO,EACtC,WAAW,SAAS,MAAM,IAEzB,CAAC,IAAI,CAAC,MAAM,CAAC,SAAS,KAAK,GAAG,MAAM,GAAG;IAAE,WAAW,EAAE,IAAI,CAAC;IAAC,UAAU,EAAE,MAAM,CAAA;CAAE,CAAC,GACjF,CAAC,UAAU,CAAC,WAAW,CAAC,SAAS,KAAK,GAAG,MAAM,GAAG;IAAE,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAA;CAAE,CAAC,GACvF,CACC,aAAa,SAAS,OAAO,GACzB,IAAI,CAAC,aAAa,CAAC,SAAS,KAAK,GAC/B,MAAM,GACN;IAAE,MAAM,EAAE,OAAO,CAAA;CAAE,GACrB,aAAa,SAAS,MAAM,GAC1B,SAAS,CAAC,aAAa,CAAC,SAAS,KAAK,GACpC,MAAM,GACN;IAAE,MAAM,EAAE,OAAO,CAAC;IAAC,aAAa,EAAE,aAAa,CAAA;CAAE,GACnD,MAAM,CACb,CAAC"}
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=language.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"language.js","sourceRoot":"","sources":["../../../../../src/factory/options/option/params/language.ts"],"names":[],"mappings":""}
@@ -1,2 +0,0 @@
1
- export type Ecma = "latest";
2
- //# sourceMappingURL=ecma.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"ecma.d.ts","sourceRoot":"","sources":["../../../../../../src/factory/options/option/params/languageOptions/ecma.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,IAAI,GAAG,QAAQ,CAAC"}
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=ecma.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"ecma.js","sourceRoot":"","sources":["../../../../../../src/factory/options/option/params/languageOptions/ecma.ts"],"names":[],"mappings":""}
@@ -1,2 +0,0 @@
1
- export type Source = "module" | "script";
2
- //# sourceMappingURL=source.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"source.d.ts","sourceRoot":"","sources":["../../../../../../src/factory/options/option/params/languageOptions/source.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,MAAM,GAAG,QAAQ,GAAG,QAAQ,CAAC"}
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=source.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"source.js","sourceRoot":"","sources":["../../../../../../src/factory/options/option/params/languageOptions/source.ts"],"names":[],"mappings":""}
@@ -1,5 +0,0 @@
1
- export interface Linter {
2
- noInlineConfig: true;
3
- reportUnusedDisableDirectives: "error";
4
- }
5
- //# sourceMappingURL=linter.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"linter.d.ts","sourceRoot":"","sources":["../../../../../src/factory/options/option/params/linter.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,MAAM;IACrB,cAAc,EAAE,IAAI,CAAC;IACrB,6BAA6B,EAAE,OAAO,CAAC;CACxC"}
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=linter.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"linter.js","sourceRoot":"","sources":["../../../../../src/factory/options/option/params/linter.ts"],"names":[],"mappings":""}
@@ -1,4 +0,0 @@
1
- export type Plugins<PluginId extends string> = Record<literalful<PluginId>, {
2
- configs: unknown;
3
- }>;
4
- //# sourceMappingURL=plugins.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"plugins.d.ts","sourceRoot":"","sources":["../../../../../src/factory/options/option/params/plugins.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,OAAO,CAAC,QAAQ,SAAS,MAAM,IAAI,MAAM,CAAC,UAAU,CAAC,QAAQ,CAAC,EAAE;IAAE,OAAO,EAAE,OAAO,CAAA;CAAE,CAAC,CAAC"}
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=plugins.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"plugins.js","sourceRoot":"","sources":["../../../../../src/factory/options/option/params/plugins.ts"],"names":[],"mappings":""}
@@ -1,14 +0,0 @@
1
- import type { LanguageOptions } from "./params/language.js";
2
- import type { Linter } from "./params/linter.js";
3
- import type { Plugins } from "./params/plugins.js";
4
- import type { Globals } from "./params/globals.js";
5
- export type { LanguageOptions, Linter, Plugins, Globals, };
6
- export type OptionTemplate<PluginId extends string, IsEcma extends boolean, ParserOptions extends boolean | object, GlobalTypes extends Globals, Processor extends object> = {
7
- linterOptions: Linter;
8
- languageOptions: LanguageOptions<IsEcma, ParserOptions, GlobalTypes>;
9
- } & (Plugins<PluginId> extends never ? object : {
10
- plugins: Plugins<PluginId>;
11
- }) & (Interface<Processor> extends never ? object : Interface<Processor> extends {
12
- processor: string;
13
- } ? Interface<Processor> : object);
14
- //# sourceMappingURL=template.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"template.d.ts","sourceRoot":"","sources":["../../../../src/factory/options/option/template.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AACzD,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,iBAAiB,CAAC;AAC9C,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,kBAAkB,CAAC;AAChD,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,kBAAkB,CAAC;AAEhD,YAAY,EACV,eAAe,EACf,MAAM,EACN,OAAO,EACP,OAAO,GACR,CAAC;AACF,MAAM,MAAM,cAAc,CACxB,QAAQ,SAAS,MAAM,EACvB,MAAM,SAAS,OAAO,EACtB,aAAa,SAAS,OAAO,GAAG,MAAM,EACtC,WAAW,SAAS,OAAO,EAC3B,SAAS,SAAS,MAAM,IAEtB;IACA,aAAa,EAAE,MAAM,CAAC;IACtB,eAAe,EAAE,eAAe,CAAC,MAAM,EAAE,aAAa,EAAE,WAAW,CAAC,CAAC;CACtE,GACC,CAAC,OAAO,CAAC,QAAQ,CAAC,SAAS,KAAK,GAAG,MAAM,GAAG;IAAE,OAAO,EAAE,OAAO,CAAC,QAAQ,CAAC,CAAA;CAAE,CAAC,GAC3E,CAAC,SAAS,CAAC,SAAS,CAAC,SAAS,KAAK,GAAG,MAAM,GAAG,SAAS,CAAC,SAAS,CAAC,SAAS;IAAE,SAAS,EAAE,MAAM,CAAA;CAAE,GAAG,SAAS,CAAC,SAAS,CAAC,GAAG,MAAM,CAAC,CAAC"}
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=template.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"template.js","sourceRoot":"","sources":["../../../../src/factory/options/option/template.ts"],"names":[],"mappings":""}
@@ -1,27 +0,0 @@
1
- import Option from "./option/index.js";
2
- import type Ts from "./ts.js";
3
- export default class Svelte extends Option<"svelte", "svelte" | keyof Ts["option"]["plugins"], true, {
4
- parser: unknown;
5
- } & {
6
- extraFileExtensions: readonly [".svelte"];
7
- } & Ts["option"]["languageOptions"]["parserOptions"], 2, never, {
8
- processor: "svelte/svelte";
9
- }> {
10
- readonly scope = "svelte";
11
- readonly processor: {
12
- readonly processor: "svelte/svelte";
13
- };
14
- get languageOptions(): {
15
- readonly ecmaVersion: "latest";
16
- readonly sourceType: "module";
17
- readonly parser: unknown;
18
- readonly parserOptions: {
19
- readonly parser: unknown;
20
- readonly extraFileExtensions: readonly [".svelte"];
21
- readonly project: "tsconfig.json";
22
- readonly ecmaVersion: "latest";
23
- readonly sourceType: "module";
24
- };
25
- };
26
- }
27
- //# sourceMappingURL=svelte.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"svelte.d.ts","sourceRoot":"","sources":["../../../src/factory/options/svelte.ts"],"names":[],"mappings":"AAAA,OAAO,MAAM,MAAM,UAAU,CAAC;AAC9B,OAAO,KAAK,EAAE,MAAM,MAAM,CAAC;AAE3B,MAAM,CAAC,OAAO,OAAO,MAAO,SAAQ,MAAM,CACxC,QAAQ,EACR,QAAQ,GAAG,MAAM,EAAE,CAAC,QAAQ,CAAC,CAAC,SAAS,CAAC,EACxC,IAAI,EACJ;IAAE,MAAM,EAAE,OAAO,CAAA;CAAE,GAAG;IAAE,mBAAmB,EAAE,SAAS,CAAC,SAAS,CAAC,CAAA;CAAE,GAAG,EAAE,CAAC,QAAQ,CAAC,CAAC,iBAAiB,CAAC,CAAC,eAAe,CAAC,EACtH,CAAC,EACD,KAAK,EACL;IAAE,SAAS,EAAE,eAAe,CAAA;CAAE,CAC/B;IACC,SAAgB,KAAK,YAAY;IACjC,SAAgB,SAAS;;MAA2C;IAEpE,IAAW,eAAe;;;;;;;;;;;MAezB;CACF"}
@@ -1,21 +0,0 @@
1
- import Option from "./option/index.js";
2
- export default class Svelte extends Option {
3
- scope = "svelte";
4
- processor = { processor: "svelte/svelte" };
5
- get languageOptions() {
6
- const [parser, tsParser] = this.parser;
7
- return {
8
- ecmaVersion: "latest",
9
- sourceType: "module",
10
- parser,
11
- parserOptions: {
12
- parser: tsParser,
13
- extraFileExtensions: [".svelte"],
14
- project: "tsconfig.json",
15
- ecmaVersion: "latest",
16
- sourceType: "module",
17
- },
18
- };
19
- }
20
- }
21
- //# sourceMappingURL=svelte.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"svelte.js","sourceRoot":"","sources":["../../../src/factory/options/svelte.ts"],"names":[],"mappings":"AAAA,OAAO,MAAM,MAAM,UAAU,CAAC;AAG9B,MAAM,CAAC,OAAO,OAAO,MAAO,SAAQ,MAQnC;IACiB,KAAK,GAAG,QAAQ,CAAC;IACjB,SAAS,GAAG,EAAE,SAAS,EAAE,eAAe,EAAW,CAAC;IAEpE,IAAW,eAAe;QACxB,MAAM,CAAC,MAAM,EAAE,QAAQ,CAAC,GAAG,IAAI,CAAC,MAAM,CAAC;QAEvC,OAAO;YACL,WAAW,EAAE,QAAQ;YACrB,UAAU,EAAE,QAAQ;YACpB,MAAM;YACN,aAAa,EAAE;gBACb,MAAM,EAAE,QAAQ;gBAChB,mBAAmB,EAAE,CAAC,SAAS,CAAU;gBACzC,OAAO,EAAE,eAAe;gBACxB,WAAW,EAAE,QAAQ;gBACrB,UAAU,EAAE,QAAQ;aACrB;SACO,CAAC;IACb,CAAC;CACF"}
@@ -1,19 +0,0 @@
1
- import Option from "./option/index.js";
2
- import type Js from "./js.js";
3
- export default class Ts extends Option<"ts", "@typescript-eslint" | keyof Js["option"]["plugins"], true, {
4
- project: "tsconfig.json";
5
- } & Js["option"]["languageOptions"], 1> {
6
- readonly scope = "ts";
7
- readonly processor: {};
8
- get languageOptions(): {
9
- readonly ecmaVersion: "latest";
10
- readonly sourceType: "module";
11
- readonly parser: unknown;
12
- readonly parserOptions: {
13
- readonly project: "tsconfig.json";
14
- readonly ecmaVersion: "latest";
15
- readonly sourceType: "module";
16
- };
17
- };
18
- }
19
- //# sourceMappingURL=ts.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"ts.d.ts","sourceRoot":"","sources":["../../../src/factory/options/ts.ts"],"names":[],"mappings":"AAAA,OAAO,MAAM,MAAM,UAAU,CAAC;AAC9B,OAAO,KAAK,EAAE,MAAM,MAAM,CAAC;AAE3B,MAAM,CAAC,OAAO,OAAO,EAAG,SAAQ,MAAM,CACpC,IAAI,EACJ,oBAAoB,GAAG,MAAM,EAAE,CAAC,QAAQ,CAAC,CAAC,SAAS,CAAC,EACpD,IAAI,EACJ;IAAE,OAAO,EAAE,eAAe,CAAA;CAAE,GAAG,EAAE,CAAC,QAAQ,CAAC,CAAC,iBAAiB,CAAC,EAC9D,CAAC,CACF;IACC,SAAgB,KAAK,QAAQ;IAC7B,SAAgB,SAAS,KAAe;IAExC,IAAW,eAAe;;;;;;;;;MASzB;CACF"}
@@ -1,15 +0,0 @@
1
- import Option from "./option/index.js";
2
- export default class Ts extends Option {
3
- scope = "ts";
4
- processor = {};
5
- get languageOptions() {
6
- const [parser] = this.parser;
7
- return {
8
- ecmaVersion: "latest",
9
- sourceType: "module",
10
- parser,
11
- parserOptions: { project: "tsconfig.json", ecmaVersion: "latest", sourceType: "module" },
12
- };
13
- }
14
- }
15
- //# sourceMappingURL=ts.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"ts.js","sourceRoot":"","sources":["../../../src/factory/options/ts.ts"],"names":[],"mappings":"AAAA,OAAO,MAAM,MAAM,UAAU,CAAC;AAG9B,MAAM,CAAC,OAAO,OAAO,EAAG,SAAQ,MAM/B;IACiB,KAAK,GAAG,IAAI,CAAC;IACb,SAAS,GAAG,EAAW,CAAC;IAExC,IAAW,eAAe;QACxB,MAAM,CAAC,MAAM,CAAC,GAAG,IAAI,CAAC,MAAM,CAAC;QAE7B,OAAO;YACL,WAAW,EAAE,QAAQ;YACrB,UAAU,EAAE,QAAQ;YACpB,MAAM;YACN,aAAa,EAAE,EAAE,OAAO,EAAE,eAAe,EAAE,WAAW,EAAE,QAAQ,EAAE,UAAU,EAAE,QAAQ,EAAE;SAChF,CAAC;IACb,CAAC;CACF"}
@@ -1,9 +0,0 @@
1
- import Option from "./option/index.js";
2
- export default class Yml extends Option<"yml", "yml", false, true, 1> {
3
- readonly scope = "yml";
4
- readonly processor: {};
5
- get languageOptions(): {
6
- readonly parser: unknown;
7
- };
8
- }
9
- //# sourceMappingURL=yml.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"yml.d.ts","sourceRoot":"","sources":["../../../src/factory/options/yml.ts"],"names":[],"mappings":"AAAA,OAAO,MAAM,MAAM,UAAU,CAAC;AAE9B,MAAM,CAAC,OAAO,OAAO,GAAI,SAAQ,MAAM,CACrC,KAAK,EACL,KAAK,EACL,KAAK,EACL,IAAI,EACJ,CAAC,CACF;IACC,SAAgB,KAAK,SAAS;IAC9B,SAAgB,SAAS,KAAe;IAExC,IAAW,eAAe;;MAIzB;CACF"}
@@ -1,10 +0,0 @@
1
- import Option from "./option/index.js";
2
- export default class Yml extends Option {
3
- scope = "yml";
4
- processor = {};
5
- get languageOptions() {
6
- const [parser] = this.parser;
7
- return { parser };
8
- }
9
- }
10
- //# sourceMappingURL=yml.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"yml.js","sourceRoot":"","sources":["../../../src/factory/options/yml.ts"],"names":[],"mappings":"AAAA,OAAO,MAAM,MAAM,UAAU,CAAC;AAE9B,MAAM,CAAC,OAAO,OAAO,GAAI,SAAQ,MAMhC;IACiB,KAAK,GAAG,KAAK,CAAC;IACd,SAAS,GAAG,EAAW,CAAC;IAExC,IAAW,eAAe;QACxB,MAAM,CAAC,MAAM,CAAC,GAAG,IAAI,CAAC,MAAM,CAAC;QAE7B,OAAO,EAAE,MAAM,EAAW,CAAC;IAC7B,CAAC;CACF"}
@@ -1,14 +0,0 @@
1
- import type { Input } from "@eslinted/core";
2
- import type { Scope } from "@eslinted/core";
3
- import { Rule } from "./rule.js";
4
- export { Rule };
5
- export declare class Ruleset<S extends Scope> {
6
- private readonly scope;
7
- readonly ruleset: readonly Rule[];
8
- overrides: Null<Rule>;
9
- constructor(scope: literalful<S>, ...rules: readonly Rule[]);
10
- get id(): literalful<S>;
11
- get records(): (readonly [string, Readonly<Record<string, import("../../inputs/rules/entry/object/state").State | readonly [import("../../inputs/rules/entry/object/state").State, ...unknown[]]>>])[];
12
- override(overrides: undefined | Input["rules"]["rules"][Scope][number][1]): this;
13
- }
14
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/factory/ruleset/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,gBAAgB,CAAC;AAC5C,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,gBAAgB,CAAC;AAC5C,OAAO,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAC;AAE9B,OAAO,EAAE,IAAI,EAAE,CAAC;AAChB,qBAAa,OAAO,CAAC,CAAC,SAAS,KAAK;IAItB,OAAO,CAAC,QAAQ,CAAC,KAAK;IAHlC,SAAgB,OAAO,EAAE,SAAS,IAAI,EAAE,CAAC;IAClC,SAAS,EAAE,IAAI,CAAC,IAAI,CAAC,CAAQ;gBAEP,KAAK,EAAE,UAAU,CAAC,CAAC,CAAC,EAAE,GAAG,KAAK,EAAE,SAAS,IAAI,EAAE;IAO5E,IAAW,EAAE,kBAIZ;IAED,IAAW,OAAO,4LAUjB;IAEM,QAAQ,CAAC,SAAS,EAAE,SAAS,GAAG,KAAK,CAAC,OAAO,CAAC,CAAC,OAAO,CAAC,CAAC,KAAK,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC;CAMjF"}
@@ -1,38 +0,0 @@
1
- import { Rule } from "./rule.js";
2
- export { Rule };
3
- export class Ruleset {
4
- scope;
5
- ruleset;
6
- overrides = null;
7
- constructor(scope, ...rules) {
8
- this.scope = scope;
9
- try {
10
- this.ruleset = [...rules];
11
- }
12
- catch (e) {
13
- throw new Error(`linted.factory.Ruleset`, { cause: e });
14
- }
15
- }
16
- get id() {
17
- const { scope } = this;
18
- return scope;
19
- }
20
- get records() {
21
- try {
22
- const { ruleset, overrides } = this;
23
- return [
24
- ...ruleset.map(rules => [rules.id, rules.rules]),
25
- ...overrides === null ? [] : [[overrides.id, overrides.rules]],
26
- ];
27
- }
28
- catch (e) {
29
- throw new Error(`linted.factory.Ruleset: records`, { cause: e });
30
- }
31
- }
32
- override(overrides) {
33
- if (typeof overrides !== "undefined")
34
- this.overrides = new Rule("override", overrides);
35
- return this;
36
- }
37
- }
38
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/factory/ruleset/index.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAC;AAE9B,OAAO,EAAE,IAAI,EAAE,CAAC;AAChB,MAAM,OAAO,OAAO;IAIW;IAHb,OAAO,CAAkB;IAClC,SAAS,GAAe,IAAI,CAAC;IAEpC,YAA6B,KAAoB,EAAE,GAAG,KAAsB;QAA/C,UAAK,GAAL,KAAK,CAAe;QAC/C,IAAI,CAAC;YACH,IAAI,CAAC,OAAO,GAAG,CAAC,GAAG,KAAK,CAAC,CAAC;QAC5B,CAAC;QACD,OAAO,CAAC,EAAE,CAAC;YAAC,MAAM,IAAI,KAAK,CAAC,wBAAwB,EAAE,EAAE,KAAK,EAAE,CAAC,EAAE,CAAC,CAAC;QAAC,CAAC;IACxE,CAAC;IAED,IAAW,EAAE;QACX,MAAM,EAAE,KAAK,EAAE,GAAG,IAAI,CAAC;QAEvB,OAAO,KAAK,CAAC;IACf,CAAC;IAED,IAAW,OAAO;QAChB,IAAI,CAAC;YACH,MAAM,EAAE,OAAO,EAAE,SAAS,EAAE,GAAG,IAAI,CAAC;YAEpC,OAAO;gBACL,GAAG,OAAO,CAAC,GAAG,CAAC,KAAK,CAAC,EAAE,CAAC,CAAC,KAAK,CAAC,EAAE,EAAE,KAAK,CAAC,KAAK,CAAU,CAAC;gBACzD,GAAG,SAAS,KAAK,IAAI,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,EAAE,EAAE,SAAS,CAAC,KAAK,CAAU,CAAU;aACjF,CAAC;QACJ,CAAC;QACD,OAAO,CAAC,EAAE,CAAC;YAAC,MAAM,IAAI,KAAK,CAAC,iCAAiC,EAAE,EAAE,KAAK,EAAE,CAAC,EAAE,CAAC,CAAC;QAAC,CAAC;IACjF,CAAC;IAEM,QAAQ,CAAC,SAAgE;QAC9E,IAAI,OAAO,SAAS,KAAK,WAAW;YAClC,IAAI,CAAC,SAAS,GAAG,IAAI,IAAI,CAAC,UAAU,EAAE,SAAS,CAAC,CAAC;QAEnD,OAAO,IAAI,CAAC;IACd,CAAC;CACF"}
@@ -1,7 +0,0 @@
1
- import type { Input } from "@eslinted/core";
2
- export declare class Rule {
3
- readonly id: string;
4
- readonly rules: Input["rules"]["rules"]["html"][number][1];
5
- constructor(id: string, rules: Input["rules"]["rules"]["html"][number][1]);
6
- }
7
- //# sourceMappingURL=rule.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"rule.d.ts","sourceRoot":"","sources":["../../../src/factory/ruleset/rule.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,gBAAgB,CAAC;AAE5C,qBAAa,IAAI;aAEG,EAAE,EAAE,MAAM;aACV,KAAK,EAAE,KAAK,CAAC,OAAO,CAAC,CAAC,OAAO,CAAC,CAAC,MAAM,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC;gBADjD,EAAE,EAAE,MAAM,EACV,KAAK,EAAE,KAAK,CAAC,OAAO,CAAC,CAAC,OAAO,CAAC,CAAC,MAAM,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC;CAEpE"}
@@ -1,9 +0,0 @@
1
- export class Rule {
2
- id;
3
- rules;
4
- constructor(id, rules) {
5
- this.id = id;
6
- this.rules = rules;
7
- }
8
- }
9
- //# sourceMappingURL=rule.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"rule.js","sourceRoot":"","sources":["../../../src/factory/ruleset/rule.ts"],"names":[],"mappings":"AAEA,MAAM,OAAO,IAAI;IAEG;IACA;IAFlB,YACkB,EAAU,EACV,KAAiD;QADjD,OAAE,GAAF,EAAE,CAAQ;QACV,UAAK,GAAL,KAAK,CAA4C;IAChE,CAAC;CACL"}
@@ -1,9 +0,0 @@
1
- import type { Input } from "@eslinted/core";
2
- import type { Scope } from "@eslinted/core";
3
- import { Ruleset } from "./ruleset/index.js";
4
- export declare class Rulesets {
5
- private readonly input;
6
- constructor(input: Input["rules"]);
7
- ruleset<S extends Scope>(scope: literalful<S>): Ruleset<S>;
8
- }
9
- //# sourceMappingURL=rulesets.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"rulesets.d.ts","sourceRoot":"","sources":["../../src/factory/rulesets.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,gBAAgB,CAAC;AAC5C,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,gBAAgB,CAAC;AAC5C,OAAO,EAAE,OAAO,EAAQ,MAAM,WAAW,CAAC;AAE1C,qBAAa,QAAQ;IACP,OAAO,CAAC,QAAQ,CAAC,KAAK;gBAAL,KAAK,EAAE,KAAK,CAAC,OAAO,CAAC;IAE3C,OAAO,CAAC,CAAC,SAAS,KAAK,EAAE,KAAK,EAAE,UAAU,CAAC,CAAC,CAAC,GAAG,OAAO,CAAC,CAAC,CAAC;CAQlE"}
@@ -1,17 +0,0 @@
1
- import { Ruleset, Rule } from "./ruleset/index.js";
2
- export class Rulesets {
3
- input;
4
- constructor(input) {
5
- this.input = input;
6
- }
7
- ruleset(scope) {
8
- try {
9
- const { rules, overrides } = this.input;
10
- return new Ruleset(scope, ...rules[scope].map(args => new Rule(...args))).override(overrides[scope]);
11
- }
12
- catch (e) {
13
- throw new Error(`linted.factory.Rulesets/ruleset/scope:${scope}`, { cause: e });
14
- }
15
- }
16
- }
17
- //# sourceMappingURL=rulesets.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"rulesets.js","sourceRoot":"","sources":["../../src/factory/rulesets.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,MAAM,WAAW,CAAC;AAE1C,MAAM,OAAO,QAAQ;IACU;IAA7B,YAA6B,KAAqB;QAArB,UAAK,GAAL,KAAK,CAAgB;IAAG,CAAC;IAE/C,OAAO,CAAkB,KAAoB;QAClD,IAAI,CAAC;YACH,MAAM,EAAE,KAAK,EAAE,SAAS,EAAE,GAAG,IAAI,CAAC,KAAK,CAAC;YAExC,OAAO,IAAI,OAAO,CAAI,KAAK,EAAE,GAAG,KAAK,CAAC,KAAK,CAAC,CAAC,GAAG,CAAC,IAAI,CAAC,EAAE,CAAC,IAAI,IAAI,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,CAAC,QAAQ,CAAC,SAAS,CAAC,KAAK,CAAC,CAAC,CAAC;QAC1G,CAAC;QACD,OAAO,CAAC,EAAE,CAAC;YAAC,MAAM,IAAI,KAAK,CAAC,yCAAyC,KAAK,EAAE,EAAE,EAAE,KAAK,EAAE,CAAC,EAAE,CAAC,CAAC;QAAC,CAAC;IAChG,CAAC;CACF"}
package/dist/index.d.ts DELETED
@@ -1,25 +0,0 @@
1
- import type { Input } from "./input.js";
2
- import type { Scope } from "./scopes.js";
3
- import type { Output } from "./output.js";
4
- export type { Input, Scope, Output };
5
- export default function (plugins: Input["plugins"], parsers: Input["parsers"], files: Input["files"], rules: Input["rules"]): Output;
6
- declare namespace Core {
7
- type Scopes = Scope;
8
- namespace Input {
9
- type Parsers = Input["parsers"];
10
- type Plugins = Input["plugins"];
11
- type Files = Input["files"];
12
- namespace Files {
13
- type Base = Files["files"];
14
- type Includes = Files["includes"];
15
- }
16
- type Rules = Input["rules"];
17
- namespace Rules {
18
- type Base = Rules["rules"];
19
- type Overrides = Rules["overrides"];
20
- }
21
- }
22
- type Output = Output[];
23
- }
24
- export type { Core };
25
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AACrC,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,UAAU,CAAC;AACtC,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAEvC,YAAY,EAAE,KAAK,EAAE,KAAK,EAAE,MAAM,EAAE,CAAC;AASrC,MAAM,CAAC,OAAO,WACZ,OAAO,EAAE,KAAK,CAAC,SAAS,CAAC,EACzB,OAAO,EAAE,KAAK,CAAC,SAAS,CAAC,EACzB,KAAK,EAAE,KAAK,CAAC,OAAO,CAAC,EACrB,KAAK,EAAE,KAAK,CAAC,OAAO,CAAC,GACpB,MAAM,CAyER;AAED,kBAAU,IAAI,CAAC;IACb,KAAY,MAAM,GAAG,KAAK,CAAC;IAC3B,UAAiB,KAAK,CAAC;QACrB,KAAY,OAAO,GAAG,KAAK,CAAC,SAAS,CAAC,CAAC;QACvC,KAAY,OAAO,GAAG,KAAK,CAAC,SAAS,CAAC,CAAC;QACvC,KAAY,KAAK,GAAG,KAAK,CAAC,OAAO,CAAC,CAAC;QACnC,UAAiB,KAAK,CAAC;YACrB,KAAY,IAAI,GAAG,KAAK,CAAC,OAAO,CAAC,CAAC;YAClC,KAAY,QAAQ,GAAG,KAAK,CAAC,UAAU,CAAC,CAAC;SAC1C;QACD,KAAY,KAAK,GAAG,KAAK,CAAC,OAAO,CAAC,CAAC;QACnC,UAAiB,KAAK,CAAC;YACrB,KAAY,IAAI,GAAG,KAAK,CAAC,OAAO,CAAC,CAAC;YAClC,KAAY,SAAS,GAAG,KAAK,CAAC,WAAW,CAAC,CAAC;SAC5C;KACF;IACD,KAAY,MAAM,GAAG,MAAM,EAAE,CAAC;CAC/B;AAED,YAAY,EAAE,IAAI,EAAE,CAAC"}
package/dist/index.js DELETED
@@ -1,31 +0,0 @@
1
- import { scopes } from "./scopes.js";
2
- import { Files, Rulesets, Options, } from "./factory/index.js";
3
- export default function (plugins, parsers, files, rules) {
4
- try {
5
- const F = new Files(files), R = new Rulesets(rules), options = {
6
- js: new Options
7
- .js(F.files("js"), R.ruleset("js"), { "@stylistic": plugins["@stylistic"] }, []).configs,
8
- ts: new Options
9
- .ts(F.files("ts"), R.ruleset("ts"), { "@stylistic": plugins["@stylistic"], "@typescript-eslint": plugins["@typescript-eslint"] }, [parsers.ts]).configs,
10
- svelte: new Options
11
- .svelte(F.files("svelte"), R.ruleset("svelte"), { "@stylistic": plugins["@stylistic"], "@typescript-eslint": plugins["@typescript-eslint"], svelte: plugins.svelte }, [parsers.svelte, parsers.ts]).configs,
12
- mocha: new Options
13
- .mocha(F.files("mocha"), R.ruleset("mocha"), { "@stylistic": plugins["@stylistic"], "@typescript-eslint": plugins["@typescript-eslint"], mocha: plugins.mocha }, [parsers.ts]).configs,
14
- html: new Options
15
- .html(F.files("html"), R.ruleset("html"), { "@html-eslint": plugins["@html-eslint"] }, [parsers.html]).configs,
16
- json: new Options
17
- .json(F.files("json"), R.ruleset("json"), { jsonc: plugins.jsonc }, [parsers.jsonc]).configs,
18
- jsonc: new Options
19
- .jsonc(F.files("jsonc"), R.ruleset("jsonc"), { jsonc: plugins.jsonc }, [parsers.jsonc]).configs,
20
- yml: new Options
21
- .yml(F.files("yml"), R.ruleset("yml"), { yml: plugins.yml }, [parsers.yml]).configs,
22
- md: new Options
23
- .md(F.files("md"), R.ruleset("md"), { markdownlint: plugins.markdownlint }, [parsers.md]).configs,
24
- };
25
- return scopes.flatMap(scope => options[scope]);
26
- }
27
- catch (e) {
28
- throw new Error(`linted-core`, { cause: e });
29
- }
30
- }
31
- //# sourceMappingURL=index.js.map
package/dist/index.js.map DELETED
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAClC,OAAO,EACL,KAAK,EACL,QAAQ,EACR,OAAO,GACR,MAAM,WAAW,CAAC;AAEnB,MAAM,CAAC,OAAO,WACZ,OAAyB,EACzB,OAAyB,EACzB,KAAqB,EACrB,KAAqB;IAErB,IAAI,CAAC;QACH,MAAM,CAAC,GAAG,IAAI,KAAK,CAAC,KAAK,CAAC,EAC1B,CAAC,GAAG,IAAI,QAAQ,CAAC,KAAK,CAAC,EACvB,OAAO,GAAiF;YACtF,EAAE,EAAE,IAAI,OAAO;iBACZ,EAAE,CACD,CAAC,CAAC,KAAK,CAAC,IAAI,CAAC,EACb,CAAC,CAAC,OAAO,CAAC,IAAI,CAAC,EACf,EAAE,YAAY,EAAE,OAAO,CAAC,YAAY,CAAC,EAAE,EACvC,EAAE,CACH,CAAC,OAAO;YACX,EAAE,EAAE,IAAI,OAAO;iBACZ,EAAE,CACD,CAAC,CAAC,KAAK,CAAC,IAAI,CAAC,EACb,CAAC,CAAC,OAAO,CAAC,IAAI,CAAC,EACf,EAAE,YAAY,EAAE,OAAO,CAAC,YAAY,CAAC,EAAE,oBAAoB,EAAE,OAAO,CAAC,oBAAoB,CAAC,EAAE,EAC5F,CAAC,OAAO,CAAC,EAAE,CAAC,CACb,CAAC,OAAO;YACX,MAAM,EAAE,IAAI,OAAO;iBAChB,MAAM,CACL,CAAC,CAAC,KAAK,CAAC,QAAQ,CAAC,EACjB,CAAC,CAAC,OAAO,CAAC,QAAQ,CAAC,EACnB,EAAE,YAAY,EAAE,OAAO,CAAC,YAAY,CAAC,EAAE,oBAAoB,EAAE,OAAO,CAAC,oBAAoB,CAAC,EAAE,MAAM,EAAE,OAAO,CAAC,MAAM,EAAE,EACpH,CAAC,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AAE,EACpB,CAAC,OAAO,CAAC,GAAG,CAAC,CACd,CAAC,OAAO;YACX,EAAE,EAAE,IAAI,OAAO;iBACZ,EAAE,CACD,CAAC,CAAC,KAAK,CAAC,IAAI,CAAC,EACb,CAAC,CAAC,OAAO,CAAC,IAAI,CAAC,EACf,EAAE,YAAY,EAAE,OAAO,CAAC,YAAY,EAAE,EACtC,CAAC,OAAO,CAAC,EAAE,CAAC,CACb,CAAC,OAAO;SACZ,CAAC;QAEF,OAAO,MAAM,CAAC,OAAO,CAAC,KAAK,CAAC,EAAE,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC,CAAC;IACjD,CAAC;IACD,OAAO,CAAC,EAAE,CAAC;QAAC,MAAM,IAAI,KAAK,CAAC,aAAa,EAAE,EAAE,KAAK,EAAE,CAAC,EAAE,CAAC,CAAC;IAAC,CAAC;AAC7D,CAAC"}
package/dist/input.d.ts DELETED
@@ -1,11 +0,0 @@
1
- import type { Plugins } from "./inputs/plugins.js";
2
- import type { Parsers } from "./inputs/parsers.js";
3
- import type { Files } from "./inputs/files";
4
- import type { Rules } from "./inputs/rules";
5
- export interface Input {
6
- files: Files;
7
- rules: Rules;
8
- plugins: Plugins;
9
- parsers: Parsers;
10
- }
11
- //# sourceMappingURL=input.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"input.d.ts","sourceRoot":"","sources":["../src/input.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,kBAAkB,CAAC;AAChD,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,kBAAkB,CAAC;AAChD,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,gBAAgB,CAAC;AAC5C,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,gBAAgB,CAAC;AAE5C,MAAM,WAAW,KAAK;IACpB,KAAK,EAAE,KAAK,CAAC;IACb,KAAK,EAAE,KAAK,CAAC;IACb,OAAO,EAAE,OAAO,CAAC;IACjB,OAAO,EAAE,OAAO,CAAC;CAClB"}
package/dist/input.js DELETED
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=input.js.map
package/dist/input.js.map DELETED
@@ -1 +0,0 @@
1
- {"version":3,"file":"input.js","sourceRoot":"","sources":["../src/input.ts"],"names":[],"mappings":""}
@@ -1,3 +0,0 @@
1
- import type { Scope } from "@eslinted/core";
2
- export type Base = Readonly<Record<Scope, readonly string[]>>;
3
- //# sourceMappingURL=base.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"base.d.ts","sourceRoot":"","sources":["../../../src/inputs/files/base.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,gBAAgB,CAAC;AAE5C,MAAM,MAAM,IAAI,GAAG,QAAQ,CAAC,MAAM,CAAC,KAAK,EAAE,SAAS,MAAM,EAAE,CAAC,CAAC,CAAC"}
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=base.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"base.js","sourceRoot":"","sources":["../../../src/inputs/files/base.ts"],"names":[],"mappings":""}
@@ -1,3 +0,0 @@
1
- import type { Base } from "./base.js";
2
- export type Includes = Partial<Base>;
3
- //# sourceMappingURL=includes.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"includes.d.ts","sourceRoot":"","sources":["../../../src/inputs/files/includes.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAC;AAEnC,MAAM,MAAM,QAAQ,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC"}
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=includes.js.map