@eslinted/core 13.0.0 → 13.1.0-rc.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (189) hide show
  1. package/dist/factory/factory.d.ts +175 -0
  2. package/dist/factory/factory.d.ts.map +1 -0
  3. package/dist/factory/factory.js +42 -0
  4. package/dist/factory/factory.js.map +1 -0
  5. package/dist/factory/index.d.ts +2 -3
  6. package/dist/factory/index.d.ts.map +1 -1
  7. package/dist/factory/index.js +2 -3
  8. package/dist/factory/index.js.map +1 -1
  9. package/dist/factory/ruleset.d.ts +3 -3
  10. package/dist/factory/ruleset.d.ts.map +1 -1
  11. package/dist/factory/ruleset.js +3 -3
  12. package/dist/factory/ruleset.js.map +1 -1
  13. package/dist/factory/{options → settings}/index.d.ts +1 -2
  14. package/dist/factory/settings/index.d.ts.map +1 -0
  15. package/dist/factory/settings/index.js.map +1 -0
  16. package/dist/factory/{options → settings}/scopes/html.d.ts +2 -2
  17. package/dist/factory/settings/scopes/html.d.ts.map +1 -0
  18. package/dist/factory/{options → settings}/scopes/html.js +2 -2
  19. package/dist/factory/settings/scopes/html.js.map +1 -0
  20. package/dist/factory/{options → settings}/scopes/js.d.ts +2 -2
  21. package/dist/factory/settings/scopes/js.d.ts.map +1 -0
  22. package/dist/factory/{options → settings}/scopes/js.js +2 -2
  23. package/dist/factory/settings/scopes/js.js.map +1 -0
  24. package/dist/factory/{options → settings}/scopes/json.d.ts +2 -2
  25. package/dist/factory/settings/scopes/json.d.ts.map +1 -0
  26. package/dist/factory/{options → settings}/scopes/json.js +2 -2
  27. package/dist/factory/settings/scopes/json.js.map +1 -0
  28. package/dist/factory/{options → settings}/scopes/jsonc.d.ts +2 -2
  29. package/dist/factory/settings/scopes/jsonc.d.ts.map +1 -0
  30. package/dist/factory/{options → settings}/scopes/jsonc.js +2 -2
  31. package/dist/factory/settings/scopes/jsonc.js.map +1 -0
  32. package/dist/factory/{options → settings}/scopes/mocha.d.ts +3 -3
  33. package/dist/factory/settings/scopes/mocha.d.ts.map +1 -0
  34. package/dist/factory/{options → settings}/scopes/mocha.js +4 -4
  35. package/dist/factory/settings/scopes/mocha.js.map +1 -0
  36. package/dist/factory/{options → settings}/scopes/svelte.d.ts +7 -7
  37. package/dist/factory/settings/scopes/svelte.d.ts.map +1 -0
  38. package/dist/factory/{options → settings}/scopes/svelte.js +2 -2
  39. package/dist/factory/settings/scopes/svelte.js.map +1 -0
  40. package/dist/factory/{options → settings}/scopes/ts.d.ts +5 -5
  41. package/dist/factory/settings/scopes/ts.d.ts.map +1 -0
  42. package/dist/factory/{options → settings}/scopes/ts.js +2 -2
  43. package/dist/factory/settings/scopes/ts.js.map +1 -0
  44. package/dist/factory/{options → settings}/scopes/yml.d.ts +2 -2
  45. package/dist/factory/settings/scopes/yml.d.ts.map +1 -0
  46. package/dist/factory/{options → settings}/scopes/yml.js +2 -2
  47. package/dist/factory/settings/scopes/yml.js.map +1 -0
  48. package/dist/factory/settings/setting.d.ts +5991 -0
  49. package/dist/factory/settings/setting.d.ts.map +1 -0
  50. package/dist/factory/settings/setting.js +26 -0
  51. package/dist/factory/settings/setting.js.map +1 -0
  52. package/dist/index.d.ts +1 -2
  53. package/dist/index.d.ts.map +1 -1
  54. package/dist/index.js +15 -21
  55. package/dist/index.js.map +1 -1
  56. package/dist/interface/config/index.d.ts +23 -0
  57. package/dist/interface/config/index.d.ts.map +1 -0
  58. package/dist/{config → interface/config}/index.js.map +1 -1
  59. package/dist/interface/config/rule.d.ts +7 -0
  60. package/dist/interface/config/rule.d.ts.map +1 -0
  61. package/dist/{config → interface/config}/rule.js.map +1 -1
  62. package/dist/interface/configs/globals/ignores.d.ts +6 -0
  63. package/dist/interface/configs/globals/ignores.d.ts.map +1 -0
  64. package/dist/interface/configs/globals/ignores.js +2 -0
  65. package/dist/interface/configs/globals/ignores.js.map +1 -0
  66. package/dist/interface/configs/globals/index.d.ts +5 -0
  67. package/dist/interface/configs/globals/index.d.ts.map +1 -0
  68. package/dist/interface/configs/globals/index.js +2 -0
  69. package/dist/interface/configs/globals/index.js.map +1 -0
  70. package/dist/interface/configs/globals/only/index.d.ts +2 -0
  71. package/dist/interface/configs/globals/only/index.d.ts.map +1 -0
  72. package/dist/interface/configs/globals/only/index.js +2 -0
  73. package/dist/interface/configs/globals/only/index.js.map +1 -0
  74. package/dist/interface/configs/globals/plugins.d.ts +6 -0
  75. package/dist/interface/configs/globals/plugins.d.ts.map +1 -0
  76. package/dist/interface/configs/globals/plugins.js +2 -0
  77. package/dist/interface/configs/globals/plugins.js.map +1 -0
  78. package/dist/interface/configs/globals/settings.d.ts +7 -0
  79. package/dist/interface/configs/globals/settings.d.ts.map +1 -0
  80. package/dist/interface/configs/globals/settings.js +2 -0
  81. package/dist/interface/configs/globals/settings.js.map +1 -0
  82. package/dist/interface/configs/index.d.ts +3 -0
  83. package/dist/interface/configs/index.d.ts.map +1 -0
  84. package/dist/interface/configs/index.js +2 -0
  85. package/dist/interface/configs/index.js.map +1 -0
  86. package/dist/interface/configs/scoped.d.ts +7 -0
  87. package/dist/interface/configs/scoped.d.ts.map +1 -0
  88. package/dist/interface/configs/scoped.js +2 -0
  89. package/dist/interface/configs/scoped.js.map +1 -0
  90. package/dist/interface/imports/index.d.ts +3 -3
  91. package/dist/interface/imports/index.d.ts.map +1 -1
  92. package/dist/interface/imports/parsers.d.ts +2 -0
  93. package/dist/interface/imports/parsers.d.ts.map +1 -0
  94. package/dist/interface/imports/parsers.js +2 -0
  95. package/dist/interface/imports/parsers.js.map +1 -0
  96. package/dist/interface/imports/plugins.d.ts +2 -0
  97. package/dist/interface/imports/plugins.d.ts.map +1 -0
  98. package/dist/interface/imports/plugins.js +2 -0
  99. package/dist/interface/imports/plugins.js.map +1 -0
  100. package/dist/interface/index.d.ts +2 -1
  101. package/dist/interface/index.d.ts.map +1 -1
  102. package/dist/interface/input.d.ts +13 -13
  103. package/dist/interface/input.d.ts.map +1 -1
  104. package/dist/interface/output.d.ts +7 -15
  105. package/dist/interface/output.d.ts.map +1 -1
  106. package/package.json +1 -1
  107. package/src/factory/factory.ts +89 -0
  108. package/src/factory/index.ts +2 -3
  109. package/src/factory/ruleset.ts +9 -13
  110. package/src/factory/{options → settings}/index.ts +1 -2
  111. package/src/factory/settings/scopes/html.ts +16 -0
  112. package/src/factory/settings/scopes/js.ts +11 -0
  113. package/src/factory/settings/scopes/json.ts +16 -0
  114. package/src/factory/settings/scopes/jsonc.ts +16 -0
  115. package/src/factory/settings/scopes/mocha.ts +28 -0
  116. package/src/factory/{options → settings}/scopes/svelte.ts +9 -9
  117. package/src/factory/settings/scopes/ts.ts +28 -0
  118. package/src/factory/settings/scopes/yml.ts +17 -0
  119. package/src/factory/settings/setting.ts +68 -0
  120. package/src/index.ts +26 -75
  121. package/src/interface/config/index.ts +42 -0
  122. package/src/interface/config/rule.ts +14 -0
  123. package/src/interface/configs/globals/ignores.ts +10 -0
  124. package/src/interface/configs/globals/index.ts +4 -0
  125. package/src/interface/configs/globals/only/index.ts +4 -0
  126. package/src/interface/configs/globals/plugins.ts +10 -0
  127. package/src/interface/configs/globals/settings.ts +13 -0
  128. package/src/interface/configs/index.ts +2 -0
  129. package/src/interface/configs/scoped.ts +7 -0
  130. package/src/interface/imports/index.ts +2 -16
  131. package/src/interface/imports/parsers.ts +7 -0
  132. package/src/interface/imports/plugins.ts +9 -0
  133. package/src/interface/index.ts +2 -1
  134. package/src/interface/input.ts +15 -19
  135. package/src/interface/output.ts +7 -22
  136. package/dist/config/index.d.ts +0 -23
  137. package/dist/config/index.d.ts.map +0 -1
  138. package/dist/config/rule.d.ts +0 -7
  139. package/dist/config/rule.d.ts.map +0 -1
  140. package/dist/factory/global.d.ts +0 -29
  141. package/dist/factory/global.d.ts.map +0 -1
  142. package/dist/factory/global.js +0 -41
  143. package/dist/factory/global.js.map +0 -1
  144. package/dist/factory/options/index.d.ts.map +0 -1
  145. package/dist/factory/options/index.js.map +0 -1
  146. package/dist/factory/options/option.d.ts +0 -3002
  147. package/dist/factory/options/option.d.ts.map +0 -1
  148. package/dist/factory/options/option.js +0 -48
  149. package/dist/factory/options/option.js.map +0 -1
  150. package/dist/factory/options/proto.d.ts +0 -19
  151. package/dist/factory/options/proto.d.ts.map +0 -1
  152. package/dist/factory/options/proto.js +0 -2
  153. package/dist/factory/options/proto.js.map +0 -1
  154. package/dist/factory/options/scopes/html.d.ts.map +0 -1
  155. package/dist/factory/options/scopes/html.js.map +0 -1
  156. package/dist/factory/options/scopes/js.d.ts.map +0 -1
  157. package/dist/factory/options/scopes/js.js.map +0 -1
  158. package/dist/factory/options/scopes/json.d.ts.map +0 -1
  159. package/dist/factory/options/scopes/json.js.map +0 -1
  160. package/dist/factory/options/scopes/jsonc.d.ts.map +0 -1
  161. package/dist/factory/options/scopes/jsonc.js.map +0 -1
  162. package/dist/factory/options/scopes/mocha.d.ts.map +0 -1
  163. package/dist/factory/options/scopes/mocha.js.map +0 -1
  164. package/dist/factory/options/scopes/svelte.d.ts.map +0 -1
  165. package/dist/factory/options/scopes/svelte.js.map +0 -1
  166. package/dist/factory/options/scopes/ts.d.ts.map +0 -1
  167. package/dist/factory/options/scopes/ts.js.map +0 -1
  168. package/dist/factory/options/scopes/yml.d.ts.map +0 -1
  169. package/dist/factory/options/scopes/yml.js.map +0 -1
  170. package/dist/factory/scoped.d.ts +0 -13
  171. package/dist/factory/scoped.d.ts.map +0 -1
  172. package/dist/factory/scoped.js +0 -17
  173. package/dist/factory/scoped.js.map +0 -1
  174. package/src/config/index.ts +0 -42
  175. package/src/config/rule.ts +0 -14
  176. package/src/factory/global.ts +0 -45
  177. package/src/factory/options/option.ts +0 -98
  178. package/src/factory/options/proto.ts +0 -46
  179. package/src/factory/options/scopes/html.ts +0 -16
  180. package/src/factory/options/scopes/js.ts +0 -11
  181. package/src/factory/options/scopes/json.ts +0 -16
  182. package/src/factory/options/scopes/jsonc.ts +0 -16
  183. package/src/factory/options/scopes/mocha.ts +0 -29
  184. package/src/factory/options/scopes/ts.ts +0 -28
  185. package/src/factory/options/scopes/yml.ts +0 -17
  186. package/src/factory/scoped.ts +0 -17
  187. /package/dist/factory/{options → settings}/index.js +0 -0
  188. /package/dist/{config → interface/config}/index.js +0 -0
  189. /package/dist/{config → interface/config}/rule.js +0 -0
@@ -0,0 +1,175 @@
1
+ import type { Scopes, Input } from "../index.js";
2
+ import type Options from "./settings/index.js";
3
+ export declare class Factory {
4
+ readonly defaults: Input["defaults"];
5
+ readonly extensions: {
6
+ readonly global: NonNullable<Input["extensions"]["*"]>;
7
+ readonly scopes: Omit<Input["extensions"], "*">;
8
+ };
9
+ constructor(defaults: Input["defaults"], { "*": global, ...scopes }?: Input["extensions"]);
10
+ get settings(): {
11
+ readonly name: "linted/*/settings";
12
+ readonly linterOptions: {
13
+ readonly noInlineConfig: boolean;
14
+ readonly reportUnusedDisableDirectives: "error" | "warn" | "off";
15
+ };
16
+ readonly languageOptions: {
17
+ readonly sourceType: "module" | "script";
18
+ readonly ecmaVersion: 2023 | "latest" | 3 | 5 | 2015 | 2016 | 2017 | 2018 | 2019 | 2020 | 2021 | 2022 | 2024;
19
+ };
20
+ };
21
+ get ignores(): {
22
+ readonly name: "linted/*/ignores";
23
+ readonly ignores: readonly string[];
24
+ };
25
+ scope<S extends Scopes>(scope: S, settings: InstanceType<typeof Options[S]>): readonly [
26
+ ] | ({
27
+ readonly languageOptions: {
28
+ readonly parser: unknown;
29
+ readonly parserOptions: {
30
+ readonly project: "tsconfig.json";
31
+ readonly sourceType: "module";
32
+ readonly ecmaVersion: 2023;
33
+ };
34
+ };
35
+ readonly name: `linted/js:${string}` | `linted/ts:${string}` | `linted/svelte:${string}` | `linted/mocha:${string}` | `linted/html:${string}` | `linted/json:${string}` | `linted/jsonc:${string}` | `linted/yml:${string}`;
36
+ readonly files: readonly [
37
+ ...Readonly<Record<"js" | "ts" | "svelte" | "mocha" | "html" | "json" | "jsonc" | "yml" | "*", readonly string[]>>[S],
38
+ ...string[]
39
+ ];
40
+ readonly ignores: readonly [
41
+ ...Readonly<Record<"js" | "ts" | "svelte" | "mocha" | "html" | "json" | "jsonc" | "yml" | "*", readonly string[]>>[S],
42
+ ...string[]
43
+ ];
44
+ readonly rules: Readonly<Record<string, import("../interface/config/rule.js").State | readonly [
45
+ import("../interface/config/rule.js").State,
46
+ ...unknown[]
47
+ ]>>;
48
+ } | {
49
+ readonly languageOptions: object;
50
+ readonly name: `linted/js:${string}` | `linted/ts:${string}` | `linted/svelte:${string}` | `linted/mocha:${string}` | `linted/html:${string}` | `linted/json:${string}` | `linted/jsonc:${string}` | `linted/yml:${string}`;
51
+ readonly files: readonly [
52
+ ...Readonly<Record<"js" | "ts" | "svelte" | "mocha" | "html" | "json" | "jsonc" | "yml" | "*", readonly string[]>>[S],
53
+ ...string[]
54
+ ];
55
+ readonly ignores: readonly [
56
+ ...Readonly<Record<"js" | "ts" | "svelte" | "mocha" | "html" | "json" | "jsonc" | "yml" | "*", readonly string[]>>[S],
57
+ ...string[]
58
+ ];
59
+ readonly rules: Readonly<Record<string, import("../interface/config/rule.js").State | readonly [
60
+ import("../interface/config/rule.js").State,
61
+ ...unknown[]
62
+ ]>>;
63
+ } | {
64
+ readonly languageOptions: {
65
+ readonly parser: unknown;
66
+ readonly parserOptions: {
67
+ readonly parser: unknown;
68
+ readonly extraFileExtensions: readonly [
69
+ ".svelte"
70
+ ];
71
+ } & {
72
+ readonly project: "tsconfig.json";
73
+ readonly sourceType: "module";
74
+ readonly ecmaVersion: 2023;
75
+ };
76
+ };
77
+ readonly processor: "svelte/svelte";
78
+ readonly name: `linted/js:${string}` | `linted/ts:${string}` | `linted/svelte:${string}` | `linted/mocha:${string}` | `linted/html:${string}` | `linted/json:${string}` | `linted/jsonc:${string}` | `linted/yml:${string}`;
79
+ readonly files: readonly [
80
+ ...Readonly<Record<"js" | "ts" | "svelte" | "mocha" | "html" | "json" | "jsonc" | "yml" | "*", readonly string[]>>[S],
81
+ ...string[]
82
+ ];
83
+ readonly ignores: readonly [
84
+ ...Readonly<Record<"js" | "ts" | "svelte" | "mocha" | "html" | "json" | "jsonc" | "yml" | "*", readonly string[]>>[S],
85
+ ...string[]
86
+ ];
87
+ readonly rules: Readonly<Record<string, import("../interface/config/rule.js").State | readonly [
88
+ import("../interface/config/rule.js").State,
89
+ ...unknown[]
90
+ ]>>;
91
+ } | {
92
+ readonly languageOptions: {
93
+ readonly parser: unknown;
94
+ readonly parserOptions: {
95
+ readonly project: "tsconfig.json";
96
+ readonly sourceType: "module";
97
+ readonly ecmaVersion: 2023;
98
+ };
99
+ };
100
+ readonly name: `linted/js:${string}` | `linted/ts:${string}` | `linted/svelte:${string}` | `linted/mocha:${string}` | `linted/html:${string}` | `linted/json:${string}` | `linted/jsonc:${string}` | `linted/yml:${string}`;
101
+ readonly files: readonly [
102
+ ...Readonly<Record<"js" | "ts" | "svelte" | "mocha" | "html" | "json" | "jsonc" | "yml" | "*", readonly string[]>>[S],
103
+ ...string[]
104
+ ];
105
+ readonly ignores: readonly [
106
+ ...Readonly<Record<"js" | "ts" | "svelte" | "mocha" | "html" | "json" | "jsonc" | "yml" | "*", readonly string[]>>[S],
107
+ ...string[]
108
+ ];
109
+ readonly rules: Readonly<Record<string, import("../interface/config/rule.js").State | readonly [
110
+ import("../interface/config/rule.js").State,
111
+ ...unknown[]
112
+ ]>>;
113
+ } | {
114
+ readonly languageOptions: object;
115
+ readonly name: `linted/js:${string}` | `linted/ts:${string}` | `linted/svelte:${string}` | `linted/mocha:${string}` | `linted/html:${string}` | `linted/json:${string}` | `linted/jsonc:${string}` | `linted/yml:${string}`;
116
+ readonly files: readonly [
117
+ ...Readonly<Record<"js" | "ts" | "svelte" | "mocha" | "html" | "json" | "jsonc" | "yml" | "*", readonly string[]>>[S],
118
+ ...string[]
119
+ ];
120
+ readonly ignores: readonly [
121
+ ...Readonly<Record<"js" | "ts" | "svelte" | "mocha" | "html" | "json" | "jsonc" | "yml" | "*", readonly string[]>>[S],
122
+ ...string[]
123
+ ];
124
+ readonly rules: Readonly<Record<string, import("../interface/config/rule.js").State | readonly [
125
+ import("../interface/config/rule.js").State,
126
+ ...unknown[]
127
+ ]>>;
128
+ } | {
129
+ readonly languageOptions: object;
130
+ readonly name: `linted/js:${string}` | `linted/ts:${string}` | `linted/svelte:${string}` | `linted/mocha:${string}` | `linted/html:${string}` | `linted/json:${string}` | `linted/jsonc:${string}` | `linted/yml:${string}`;
131
+ readonly files: readonly [
132
+ ...Readonly<Record<"js" | "ts" | "svelte" | "mocha" | "html" | "json" | "jsonc" | "yml" | "*", readonly string[]>>[S],
133
+ ...string[]
134
+ ];
135
+ readonly ignores: readonly [
136
+ ...Readonly<Record<"js" | "ts" | "svelte" | "mocha" | "html" | "json" | "jsonc" | "yml" | "*", readonly string[]>>[S],
137
+ ...string[]
138
+ ];
139
+ readonly rules: Readonly<Record<string, import("../interface/config/rule.js").State | readonly [
140
+ import("../interface/config/rule.js").State,
141
+ ...unknown[]
142
+ ]>>;
143
+ } | {
144
+ readonly languageOptions: object;
145
+ readonly name: `linted/js:${string}` | `linted/ts:${string}` | `linted/svelte:${string}` | `linted/mocha:${string}` | `linted/html:${string}` | `linted/json:${string}` | `linted/jsonc:${string}` | `linted/yml:${string}`;
146
+ readonly files: readonly [
147
+ ...Readonly<Record<"js" | "ts" | "svelte" | "mocha" | "html" | "json" | "jsonc" | "yml" | "*", readonly string[]>>[S],
148
+ ...string[]
149
+ ];
150
+ readonly ignores: readonly [
151
+ ...Readonly<Record<"js" | "ts" | "svelte" | "mocha" | "html" | "json" | "jsonc" | "yml" | "*", readonly string[]>>[S],
152
+ ...string[]
153
+ ];
154
+ readonly rules: Readonly<Record<string, import("../interface/config/rule.js").State | readonly [
155
+ import("../interface/config/rule.js").State,
156
+ ...unknown[]
157
+ ]>>;
158
+ } | {
159
+ readonly languageOptions: object;
160
+ readonly name: `linted/js:${string}` | `linted/ts:${string}` | `linted/svelte:${string}` | `linted/mocha:${string}` | `linted/html:${string}` | `linted/json:${string}` | `linted/jsonc:${string}` | `linted/yml:${string}`;
161
+ readonly files: readonly [
162
+ ...Readonly<Record<"js" | "ts" | "svelte" | "mocha" | "html" | "json" | "jsonc" | "yml" | "*", readonly string[]>>[S],
163
+ ...string[]
164
+ ];
165
+ readonly ignores: readonly [
166
+ ...Readonly<Record<"js" | "ts" | "svelte" | "mocha" | "html" | "json" | "jsonc" | "yml" | "*", readonly string[]>>[S],
167
+ ...string[]
168
+ ];
169
+ readonly rules: Readonly<Record<string, import("../interface/config/rule.js").State | readonly [
170
+ import("../interface/config/rule.js").State,
171
+ ...unknown[]
172
+ ]>>;
173
+ })[];
174
+ }
175
+ //# sourceMappingURL=factory.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"factory.d.ts","sourceRoot":"","sources":["../../src/factory/factory.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,IAAI,CAAC;AAExC,OAAO,KAAK,OAAO,MAAM,YAAY,CAAC;AAEtC,qBAAa,OAAO;aAOA,QAAQ,EAAE,KAAK,CAAC,UAAU,CAAC;IAN7C,SAAgB,UAAU,EAAE;QAC1B,QAAQ,CAAC,MAAM,EAAE,WAAW,CAAC,KAAK,CAAC,YAAY,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC;QACvD,QAAQ,CAAC,MAAM,EAAE,IAAI,CAAC,KAAK,CAAC,YAAY,CAAC,EAAE,GAAG,CAAC,CAAC;KACjD,CAAC;gBAGgB,QAAQ,EAAE,KAAK,CAAC,UAAU,CAAC,EAC3C,EAAE,GAAG,EAAE,MAAW,EAAE,GAAG,MAAM,EAAE,GAAE,KAAK,CAAC,YAAY,CAAe;IAKpE,IAAW,QAAQ;;;;;;;;;;MAkBlB;IAED,IAAW,OAAO;;;MAkBjB;IAEM,KAAK,CAAC,CAAC,SAAS,MAAM,EAAE,KAAK,EAAE,CAAC,EAAE,QAAQ,EAAE,YAAY,CAAC,OAAO,OAAO,CAAC,CAAC,CAAC,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA+BnF"}
@@ -0,0 +1,42 @@
1
+ import { Ruleset } from "./ruleset.js";
2
+ export class Factory {
3
+ defaults;
4
+ extensions;
5
+ constructor(defaults, { "*": global = {}, ...scopes } = {}) {
6
+ this.defaults = defaults;
7
+ this.extensions = { global, scopes };
8
+ }
9
+ get settings() {
10
+ const { defaults: { settings }, extensions: { global: { noInlineConfig = settings.noInlineConfig, reportUnusedDisableDirectives = settings.reportUnusedDisableDirectives, sourceType = settings.sourceType, ecmaVersion = settings.ecmaVersion, }, }, } = this;
11
+ return {
12
+ name: "linted/*/settings",
13
+ linterOptions: { noInlineConfig, reportUnusedDisableDirectives },
14
+ languageOptions: { sourceType, ecmaVersion },
15
+ };
16
+ }
17
+ get ignores() {
18
+ const { defaults: { ignores: { "*": defaults } }, extensions: { global: { ignores = [], override = false, }, }, } = this;
19
+ return {
20
+ name: "linted/*/ignores",
21
+ ignores: [
22
+ ...override ? [] : defaults,
23
+ ...ignores,
24
+ ],
25
+ };
26
+ }
27
+ scope(scope, settings) {
28
+ const { defaults: { files: { [scope]: defaultFiles }, ignores: { [scope]: defaultIgnores }, rules: { [scope]: defaultRules }, }, extensions: { scopes: { [scope]: scopeExtension = {} } }, } = this, { files: extendFiles = [], ignores: extendIgnores = [], rules: extendRules, } = scopeExtension, files = [...defaultFiles, ...extendFiles], ignores = [...defaultIgnores, ...extendIgnores], ruleset = new Ruleset(scope, defaultRules, extendRules);
29
+ if (ruleset.scope !== settings.scope)
30
+ throw new TypeError(`Scope mismatch between config "${settings.scope} and inner ruleset "${ruleset.scope}"`);
31
+ return files.length < 1
32
+ ? []
33
+ : ruleset.ruleset.map(({ id, rules }) => ({
34
+ name: `linted/${id}`,
35
+ files,
36
+ ignores,
37
+ rules,
38
+ ...settings.option,
39
+ }));
40
+ }
41
+ }
42
+ //# sourceMappingURL=factory.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"factory.js","sourceRoot":"","sources":["../../src/factory/factory.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAGpC,MAAM,OAAO,OAAO;IAOA;IANF,UAAU,CAGxB;IAEF,YACkB,QAA2B,EAC3C,EAAE,GAAG,EAAE,MAAM,GAAG,EAAE,EAAE,GAAG,MAAM,KAA0B,EAAW;QADlD,aAAQ,GAAR,QAAQ,CAAmB;QAG3C,IAAI,CAAC,UAAU,GAAG,EAAE,MAAM,EAAE,MAAM,EAAW,CAAC;IAChD,CAAC;IAED,IAAW,QAAQ;QACjB,MAAM,EACJ,QAAQ,EAAE,EAAE,QAAQ,EAAE,EACtB,UAAU,EAAE,EACV,MAAM,EAAE,EACN,cAAc,GAAG,QAAQ,CAAC,cAAc,EACxC,6BAA6B,GAAG,QAAQ,CAAC,6BAA6B,EACtE,UAAU,GAAG,QAAQ,CAAC,UAAU,EAChC,WAAW,GAAG,QAAQ,CAAC,WAAW,GACnC,GACF,GACF,GAAG,IAAI,CAAC;QAET,OAAO;YACL,IAAI,EAAE,mBAAmB;YACzB,aAAa,EAAE,EAAE,cAAc,EAAE,6BAA6B,EAAW;YACzE,eAAe,EAAE,EAAE,UAAU,EAAE,WAAW,EAAW;SAC7C,CAAC;IACb,CAAC;IAED,IAAW,OAAO;QAChB,MAAM,EACJ,QAAQ,EAAE,EAAE,OAAO,EAAE,EAAE,GAAG,EAAE,QAAQ,EAAE,EAAE,EACxC,UAAU,EAAE,EACV,MAAM,EAAE,EACN,OAAO,GAAG,EAAW,EACrB,QAAQ,GAAG,KAAK,GACjB,GACF,GACF,GAAG,IAAI,CAAC;QAET,OAAO;YACL,IAAI,EAAE,kBAAkB;YACxB,OAAO,EAAE;gBACP,GAAG,QAAQ,CAAC,CAAC,CAAC,EAAW,CAAC,CAAC,CAAC,QAAQ;gBACpC,GAAG,OAAO;aACF;SACF,CAAC;IACb,CAAC;IAEM,KAAK,CAAmB,KAAQ,EAAE,QAAyC;QAChF,MAAM,EACJ,QAAQ,EAAE,EACR,KAAK,EAAE,EAAE,CAAC,KAAK,CAAC,EAAE,YAAY,EAAE,EAChC,OAAO,EAAE,EAAE,CAAC,KAAK,CAAC,EAAE,cAAc,EAAE,EACpC,KAAK,EAAE,EAAE,CAAC,KAAK,CAAC,EAAE,YAAY,EAAE,GACjC,EACD,UAAU,EAAE,EAAE,MAAM,EAAE,EAAE,CAAC,KAAK,CAAC,EAAE,cAAc,GAAG,EAAW,EAAE,EAAE,GAClE,GAAG,IAAI,EACR,EACE,KAAK,EAAE,WAAW,GAAG,EAAW,EAChC,OAAO,EAAE,aAAa,GAAG,EAAW,EACpC,KAAK,EAAE,WAAW,GACnB,GAAG,cAAc,EAClB,KAAK,GAAG,CAAC,GAAG,YAAY,EAAE,GAAG,WAAW,CAAU,EAClD,OAAO,GAAG,CAAC,GAAG,cAAc,EAAE,GAAG,aAAa,CAAU,EACxD,OAAO,GAAG,IAAI,OAAO,CAAC,KAAK,EAAE,YAAY,EAAE,WAAW,CAAC,CAAC;QAExD,IAAI,OAAO,CAAC,KAAK,KAAK,QAAQ,CAAC,KAAK;YAClC,MAAM,IAAI,SAAS,CAAC,kCAAkC,QAAQ,CAAC,KAAK,uBAAuB,OAAO,CAAC,KAAK,GAAG,CAAC,CAAC;QAE/G,OAAO,KAAK,CAAC,MAAM,GAAG,CAAC;YACrB,CAAC,CAAC,EAAW;YACb,CAAC,CAAC,OAAO,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,EAAE,EAAE,KAAK,EAAE,EAAE,EAAE,CAAC,CAAC;gBACxC,IAAI,EAAE,UAAU,EAAE,EAAE;gBACpB,KAAK;gBACL,OAAO;gBACP,KAAK;gBACL,GAAG,QAAQ,CAAC,MAAM;aACT,CAAA,CAAC,CAAC;IACjB,CAAC;CACF"}
@@ -1,5 +1,4 @@
1
- export * from "./global.js";
2
- export * from "./scoped.js";
3
- import Options from "./options/index.js";
1
+ export * from "./factory.js";
2
+ import Options from "./settings/index.js";
4
3
  export { Options };
5
4
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/factory/index.ts"],"names":[],"mappings":"AAAA,cAAc,UAAU,CAAC;AACzB,cAAc,UAAU,CAAC;AACzB,OAAO,OAAO,MAAM,WAAW,CAAC;AAEhC,OAAO,EAAE,OAAO,EAAE,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/factory/index.ts"],"names":[],"mappings":"AAAA,cAAc,WAAW,CAAC;AAC1B,OAAO,OAAO,MAAM,YAAY,CAAC;AAEjC,OAAO,EAAE,OAAO,EAAE,CAAC"}
@@ -1,5 +1,4 @@
1
- export * from "./global.js";
2
- export * from "./scoped.js";
3
- import Options from "./options/index.js";
1
+ export * from "./factory.js";
2
+ import Options from "./settings/index.js";
4
3
  export { Options };
5
4
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/factory/index.ts"],"names":[],"mappings":"AAAA,cAAc,UAAU,CAAC;AACzB,cAAc,UAAU,CAAC;AACzB,OAAO,OAAO,MAAM,WAAW,CAAC;AAEhC,OAAO,EAAE,OAAO,EAAE,CAAC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/factory/index.ts"],"names":[],"mappings":"AAAA,cAAc,WAAW,CAAC;AAC1B,OAAO,OAAO,MAAM,YAAY,CAAC;AAEjC,OAAO,EAAE,OAAO,EAAE,CAAC"}
@@ -1,10 +1,10 @@
1
- import type { Scopes, RuleEntry, RuleRecord } from "../index.js";
1
+ import type { Scopes, Rule } from "../index.js";
2
2
  export declare class Ruleset {
3
3
  readonly scope: Scopes;
4
4
  readonly ruleset: {
5
5
  id: `${Scopes}:${string}`;
6
- rules: RuleRecord;
6
+ rules: Rule.Config;
7
7
  }[];
8
- constructor(scope: Scopes, defaults: RuleEntry[], extension?: RuleRecord);
8
+ constructor(scope: Scopes, defaults: readonly Rule.Entry[], override?: Rule.Config);
9
9
  }
10
10
  //# sourceMappingURL=ruleset.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"ruleset.d.ts","sourceRoot":"","sources":["../../src/factory/ruleset.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,MAAM,EACN,SAAS,EACT,UAAU,EACX,MAAM,IAAI,CAAC;AAEZ,qBAAa,OAAO;aAIA,KAAK,EAAE,MAAM;IAH/B,SAAgB,OAAO,EAAE;QAAE,EAAE,EAAE,GAAG,MAAM,IAAI,MAAM,EAAE,CAAC;QAAC,KAAK,EAAE,UAAU,CAAA;KAAE,EAAE,CAAC;gBAG1D,KAAK,EAAE,MAAM,EAC7B,QAAQ,EAAE,SAAS,EAAE,EACrB,SAAS,CAAC,EAAE,UAAU;CAczB"}
1
+ {"version":3,"file":"ruleset.d.ts","sourceRoot":"","sources":["../../src/factory/ruleset.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,IAAI,CAAC;AAEvC,qBAAa,OAAO;aAIA,KAAK,EAAE,MAAM;IAH/B,SAAgB,OAAO,EAAE;QAAE,EAAE,EAAE,GAAG,MAAM,IAAI,MAAM,EAAE,CAAC;QAAC,KAAK,EAAE,IAAI,CAAC,MAAM,CAAA;KAAE,EAAE,CAAC;gBAG3D,KAAK,EAAE,MAAM,EAC7B,QAAQ,EAAE,SAAS,IAAI,CAAC,KAAK,EAAE,EAC/B,QAAQ,CAAC,EAAE,IAAI,CAAC,MAAM;CAczB"}
@@ -1,7 +1,7 @@
1
1
  export class Ruleset {
2
2
  scope;
3
3
  ruleset;
4
- constructor(scope, defaults, extension) {
4
+ constructor(scope, defaults, override) {
5
5
  this.scope = scope;
6
6
  const map = ([id, rules]) => ({
7
7
  id: `${scope}:${id}`,
@@ -9,9 +9,9 @@ export class Ruleset {
9
9
  });
10
10
  this.ruleset = [
11
11
  ...defaults.map(rule => map(rule)),
12
- ...typeof extension === "undefined"
12
+ ...typeof override === "undefined"
13
13
  ? []
14
- : [map([`${scope}:override`, extension])],
14
+ : [map([`${scope}:override`, override])],
15
15
  ];
16
16
  }
17
17
  }
@@ -1 +1 @@
1
- {"version":3,"file":"ruleset.js","sourceRoot":"","sources":["../../src/factory/ruleset.ts"],"names":[],"mappings":"AAMA,MAAM,OAAO,OAAO;IAIA;IAHF,OAAO,CAAqD;IAE5E,YACkB,KAAa,EAC7B,QAAqB,EACrB,SAAsB;QAFN,UAAK,GAAL,KAAK,CAAQ;QAI7B,MAAM,GAAG,GAAG,CAAC,CAAC,EAAE,EAAE,KAAK,CAAY,EAAE,EAAE,CAAC,CAAC;YACvC,EAAE,EAAE,GAAG,KAAK,IAAI,EAAE,EAAE;YACpB,KAAK;SACI,CAAA,CAAC;QAEZ,IAAI,CAAC,OAAO,GAAG;YACb,GAAG,QAAQ,CAAC,GAAG,CAAC,IAAI,CAAC,EAAE,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC;YAClC,GAAG,OAAO,SAAS,KAAK,WAAW;gBACjC,CAAC,CAAC,EAAE;gBACJ,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,GAAG,KAAK,WAAW,EAAE,SAAS,CAAC,CAAC,CAAC;SAC5C,CAAC;IACJ,CAAC;CACF"}
1
+ {"version":3,"file":"ruleset.js","sourceRoot":"","sources":["../../src/factory/ruleset.ts"],"names":[],"mappings":"AAEA,MAAM,OAAO,OAAO;IAIA;IAHF,OAAO,CAAsD;IAE7E,YACkB,KAAa,EAC7B,QAA+B,EAC/B,QAAsB;QAFN,UAAK,GAAL,KAAK,CAAQ;QAI7B,MAAM,GAAG,GAAG,CAAC,CAAC,EAAE,EAAE,KAAK,CAAa,EAAE,EAAE,CAAC,CAAC;YACxC,EAAE,EAAE,GAAG,KAAK,IAAI,EAAE,EAAE;YACpB,KAAK;SACI,CAAA,CAAC;QAEZ,IAAI,CAAC,OAAO,GAAG;YACb,GAAG,QAAQ,CAAC,GAAG,CAAC,IAAI,CAAC,EAAE,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC;YAClC,GAAG,OAAO,QAAQ,KAAK,WAAW;gBAChC,CAAC,CAAC,EAAW;gBACb,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,GAAG,KAAK,WAAW,EAAE,QAAQ,CAAC,CAAC,CAAU;SAC3C,CAAC;IACb,CAAC;CACF"}
@@ -6,8 +6,7 @@ import html from "./scopes/html.js";
6
6
  import json from "./scopes/json.js";
7
7
  import jsonc from "./scopes/jsonc.js";
8
8
  import yml from "./scopes/yml.js";
9
- export type * from "./option.js";
10
- export type * from "./proto.js";
9
+ export type * from "./setting.js";
11
10
  declare const _default: {
12
11
  readonly js: typeof js;
13
12
  readonly ts: typeof ts;
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/factory/settings/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,aAAa,CAAC;AAC7B,OAAO,EAAE,MAAM,aAAa,CAAC;AAC7B,OAAO,MAAM,MAAM,iBAAiB,CAAC;AACrC,OAAO,KAAK,MAAM,gBAAgB,CAAC;AACnC,OAAO,IAAI,MAAM,eAAe,CAAC;AACjC,OAAO,IAAI,MAAM,eAAe,CAAC;AACjC,OAAO,KAAK,MAAM,gBAAgB,CAAC;AACnC,OAAO,GAAG,MAAM,cAAc,CAAC;AAE/B,mBAAmB,WAAW,CAAC;;;;;;;;;;;AAC/B,wBASW"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/factory/settings/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,aAAa,CAAC;AAC7B,OAAO,EAAE,MAAM,aAAa,CAAC;AAC7B,OAAO,MAAM,MAAM,iBAAiB,CAAC;AACrC,OAAO,KAAK,MAAM,gBAAgB,CAAC;AACnC,OAAO,IAAI,MAAM,eAAe,CAAC;AACjC,OAAO,IAAI,MAAM,eAAe,CAAC;AACjC,OAAO,KAAK,MAAM,gBAAgB,CAAC;AACnC,OAAO,GAAG,MAAM,cAAc,CAAC;AAG/B,eAAe;IACb,EAAE;IACF,EAAE;IACF,MAAM;IACN,KAAK;IACL,IAAI;IACJ,IAAI;IACJ,KAAK;IACL,GAAG;CACK,CAAC"}
@@ -1,5 +1,5 @@
1
- import Option from "../option.js";
2
- export default class Html extends Option<"html", true> {
1
+ import { ScopeSetting } from "../setting.js";
2
+ export default class HtmlSetting extends ScopeSetting<"html", true> {
3
3
  readonly scope = "html";
4
4
  readonly processor: {};
5
5
  readonly language: {};
@@ -0,0 +1 @@
1
+ {"version":3,"file":"html.d.ts","sourceRoot":"","sources":["../../../../src/factory/settings/scopes/html.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,YAAY,CAAC;AAE1C,MAAM,CAAC,OAAO,OAAO,WAAY,SAAQ,YAAY,CACnD,MAAM,EACN,IAAI,CACL;IACC,SAAgB,KAAK,UAAU;IAC/B,SAAgB,SAAS,KAAe;IACxC,SAAgB,QAAQ,KAAe;IAEvC,IAAW,eAAe;;MAIzB;CACF"}
@@ -1,5 +1,5 @@
1
- import Option from "../option.js";
2
- export default class Html extends Option {
1
+ import { ScopeSetting } from "../setting.js";
2
+ export default class HtmlSetting extends ScopeSetting {
3
3
  scope = "html";
4
4
  processor = {};
5
5
  language = {};
@@ -0,0 +1 @@
1
+ {"version":3,"file":"html.js","sourceRoot":"","sources":["../../../../src/factory/settings/scopes/html.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,YAAY,CAAC;AAE1C,MAAM,CAAC,OAAO,OAAO,WAAY,SAAQ,YAGxC;IACiB,KAAK,GAAG,MAAM,CAAC;IACf,SAAS,GAAG,EAAW,CAAC;IACxB,QAAQ,GAAG,EAAW,CAAC;IAEvC,IAAW,eAAe;QACxB,MAAM,CAAC,MAAM,CAAC,GAAG,IAAI,CAAC,MAAM,CAAC;QAE7B,OAAO,EAAE,MAAM,EAAW,CAAC;IAC7B,CAAC;CACF"}
@@ -1,5 +1,5 @@
1
- import Option from "../option.js";
2
- export default class Js extends Option<"js"> {
1
+ import { ScopeSetting } from "../setting.js";
2
+ export default class JsSetting extends ScopeSetting<"js"> {
3
3
  readonly scope = "js";
4
4
  readonly processor: {};
5
5
  readonly language: {};
@@ -0,0 +1 @@
1
+ {"version":3,"file":"js.d.ts","sourceRoot":"","sources":["../../../../src/factory/settings/scopes/js.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,YAAY,CAAC;AAE1C,MAAM,CAAC,OAAO,OAAO,SAAU,SAAQ,YAAY,CAAC,IAAI,CAAC;IACvD,SAAgB,KAAK,QAAQ;IAC7B,SAAgB,SAAS,KAAe;IACxC,SAAgB,QAAQ,KAAe;IAEvC,IAAW,eAAe,OAEzB;CACF"}
@@ -1,5 +1,5 @@
1
- import Option from "../option.js";
2
- export default class Js extends Option {
1
+ import { ScopeSetting } from "../setting.js";
2
+ export default class JsSetting extends ScopeSetting {
3
3
  scope = "js";
4
4
  processor = {};
5
5
  language = {};
@@ -0,0 +1 @@
1
+ {"version":3,"file":"js.js","sourceRoot":"","sources":["../../../../src/factory/settings/scopes/js.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,YAAY,CAAC;AAE1C,MAAM,CAAC,OAAO,OAAO,SAAU,SAAQ,YAAkB;IACvC,KAAK,GAAG,IAAI,CAAC;IACb,SAAS,GAAG,EAAW,CAAC;IACxB,QAAQ,GAAG,EAAW,CAAC;IAEvC,IAAW,eAAe;QACxB,OAAO,EAAW,CAAC;IACrB,CAAC;CACF"}
@@ -1,5 +1,5 @@
1
- import Option from "../option.js";
2
- export default class Json extends Option<"json", true> {
1
+ import { ScopeSetting } from "../setting.js";
2
+ export default class JsonSetting extends ScopeSetting<"json", true> {
3
3
  readonly scope = "json";
4
4
  readonly processor: {};
5
5
  readonly language: {};
@@ -0,0 +1 @@
1
+ {"version":3,"file":"json.d.ts","sourceRoot":"","sources":["../../../../src/factory/settings/scopes/json.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,YAAY,CAAC;AAE1C,MAAM,CAAC,OAAO,OAAO,WAAY,SAAQ,YAAY,CACnD,MAAM,EACN,IAAI,CACL;IACC,SAAgB,KAAK,UAAU;IAC/B,SAAgB,SAAS,KAAe;IACxC,SAAgB,QAAQ,KAAe;IAEvC,IAAW,eAAe;;MAIzB;CACF"}
@@ -1,5 +1,5 @@
1
- import Option from "../option.js";
2
- export default class Json extends Option {
1
+ import { ScopeSetting } from "../setting.js";
2
+ export default class JsonSetting extends ScopeSetting {
3
3
  scope = "json";
4
4
  processor = {};
5
5
  language = {};
@@ -0,0 +1 @@
1
+ {"version":3,"file":"json.js","sourceRoot":"","sources":["../../../../src/factory/settings/scopes/json.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,YAAY,CAAC;AAE1C,MAAM,CAAC,OAAO,OAAO,WAAY,SAAQ,YAGxC;IACiB,KAAK,GAAG,MAAM,CAAC;IACf,SAAS,GAAG,EAAW,CAAC;IACxB,QAAQ,GAAG,EAAW,CAAC;IAEvC,IAAW,eAAe;QACxB,MAAM,CAAC,MAAM,CAAC,GAAG,IAAI,CAAC,MAAM,CAAC;QAE7B,OAAO,EAAE,MAAM,EAAW,CAAC;IAC7B,CAAC;CACF"}
@@ -1,5 +1,5 @@
1
- import Option from "../option.js";
2
- export default class Jsonc extends Option<"jsonc", true> {
1
+ import { ScopeSetting } from "../setting.js";
2
+ export default class JsoncSetting extends ScopeSetting<"jsonc", true> {
3
3
  readonly scope = "jsonc";
4
4
  readonly processor: {};
5
5
  readonly language: {};
@@ -0,0 +1 @@
1
+ {"version":3,"file":"jsonc.d.ts","sourceRoot":"","sources":["../../../../src/factory/settings/scopes/jsonc.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,YAAY,CAAC;AAE1C,MAAM,CAAC,OAAO,OAAO,YAAa,SAAQ,YAAY,CACpD,OAAO,EACP,IAAI,CACL;IACC,SAAgB,KAAK,WAAW;IAChC,SAAgB,SAAS,KAAe;IACxC,SAAgB,QAAQ,KAAe;IAEvC,IAAW,eAAe;;MAIzB;CACF"}
@@ -1,5 +1,5 @@
1
- import Option from "../option.js";
2
- export default class Jsonc extends Option {
1
+ import { ScopeSetting } from "../setting.js";
2
+ export default class JsoncSetting extends ScopeSetting {
3
3
  scope = "jsonc";
4
4
  processor = {};
5
5
  language = {};
@@ -0,0 +1 @@
1
+ {"version":3,"file":"jsonc.js","sourceRoot":"","sources":["../../../../src/factory/settings/scopes/jsonc.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,YAAY,CAAC;AAE1C,MAAM,CAAC,OAAO,OAAO,YAAa,SAAQ,YAGzC;IACiB,KAAK,GAAG,OAAO,CAAC;IAChB,SAAS,GAAG,EAAW,CAAC;IACxB,QAAQ,GAAG,EAAW,CAAC;IAEvC,IAAW,eAAe;QACxB,MAAM,CAAC,MAAM,CAAC,GAAG,IAAI,CAAC,MAAM,CAAC;QAE7B,OAAO,EAAE,MAAM,EAAW,CAAC;IAC7B,CAAC;CACF"}
@@ -1,6 +1,6 @@
1
- import Option from "../option.js";
2
- import type Ts from "./ts.js";
3
- export default class Mocha extends Option<"mocha", Ts["option"]["languageOptions"]["parserOptions"], 1, "mocha"> {
1
+ import { ScopeSetting } from "../setting.js";
2
+ import type TsSetting from "./ts.js";
3
+ export default class MochaSetting extends ScopeSetting<"mocha", TsSetting["option"]["languageOptions"]["parserOptions"], 1, "mocha"> {
4
4
  readonly scope = "mocha";
5
5
  readonly processor: {};
6
6
  readonly language: {};
@@ -0,0 +1 @@
1
+ {"version":3,"file":"mocha.d.ts","sourceRoot":"","sources":["../../../../src/factory/settings/scopes/mocha.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,YAAY,CAAC;AAC1C,OAAO,KAAK,SAAS,MAAM,MAAM,CAAC;AAElC,MAAM,CAAC,OAAO,OAAO,YAAa,SAAQ,YAAY,CACpD,OAAO,EACP,SAAS,CAAC,QAAQ,CAAC,CAAC,iBAAiB,CAAC,CAAC,eAAe,CAAC,EACvD,CAAC,EACD,OAAO,CACR;IACC,SAAgB,KAAK,WAAW;IAChC,SAAgB,SAAS,KAAe;IACxC,SAAgB,QAAQ,KAAe;IACvC,SAAgB,KAAK,qBAAsB;IAE3C,IAAW,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAYzB;CACF"}
@@ -1,11 +1,11 @@
1
- import Option from "../option.js";
2
- export default class Mocha extends Option {
1
+ import { ScopeSetting } from "../setting.js";
2
+ export default class MochaSetting extends ScopeSetting {
3
3
  scope = "mocha";
4
4
  processor = {};
5
5
  language = {};
6
6
  types = ["mocha"];
7
7
  get languageOptions() {
8
- const [parser] = this.parser, globals = this.globals("mocha");
8
+ const [parser] = this.parser;
9
9
  return {
10
10
  parser,
11
11
  parserOptions: {
@@ -13,7 +13,7 @@ export default class Mocha extends Option {
13
13
  sourceType: "module",
14
14
  ecmaVersion: 2023,
15
15
  },
16
- globals,
16
+ globals: this.globals("mocha"),
17
17
  };
18
18
  }
19
19
  }
@@ -0,0 +1 @@
1
+ {"version":3,"file":"mocha.js","sourceRoot":"","sources":["../../../../src/factory/settings/scopes/mocha.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,YAAY,CAAC;AAG1C,MAAM,CAAC,OAAO,OAAO,YAAa,SAAQ,YAKzC;IACiB,KAAK,GAAG,OAAO,CAAC;IAChB,SAAS,GAAG,EAAW,CAAC;IACxB,QAAQ,GAAG,EAAW,CAAC;IACvB,KAAK,GAAG,CAAC,OAAO,CAAU,CAAC;IAE3C,IAAW,eAAe;QACxB,MAAM,CAAC,MAAM,CAAC,GAAG,IAAI,CAAC,MAAM,CAAC;QAE7B,OAAO;YACL,MAAM;YACN,aAAa,EAAE;gBACb,OAAO,EAAE,eAAe;gBACxB,UAAU,EAAE,QAAQ;gBACpB,WAAW,EAAE,IAAI;aACT;YACV,OAAO,EAAE,IAAI,CAAC,OAAO,CAAC,OAAO,CAAC;SACtB,CAAC;IACb,CAAC;CACF"}
@@ -1,12 +1,12 @@
1
- import Option from "../option.js";
2
- import type Ts from "./ts.js";
3
- export default class Svelte extends Option<"svelte", {
4
- parser: unknown;
5
- extraFileExtensions: readonly [
1
+ import { ScopeSetting } from "../setting.js";
2
+ import type TsSetting from "./ts.js";
3
+ export default class SvelteSetting extends ScopeSetting<"svelte", {
4
+ readonly parser: unknown;
5
+ readonly extraFileExtensions: readonly [
6
6
  ".svelte"
7
7
  ];
8
- } & Ts["option"]["languageOptions"]["parserOptions"], 2, false, {
9
- processor: "svelte/svelte";
8
+ } & TsSetting["option"]["languageOptions"]["parserOptions"], 2, false, {
9
+ readonly processor: "svelte/svelte";
10
10
  }> {
11
11
  readonly scope = "svelte";
12
12
  readonly processor: {
@@ -0,0 +1 @@
1
+ {"version":3,"file":"svelte.d.ts","sourceRoot":"","sources":["../../../../src/factory/settings/scopes/svelte.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,YAAY,CAAC;AAC1C,OAAO,KAAK,SAAS,MAAM,MAAM,CAAC;AAElC,MAAM,CAAC,OAAO,OAAO,aAAc,SAAQ,YAAY,CACrD,QAAQ,EACR;IACE,QAAQ,CAAC,MAAM,EAAE,OAAO,CAAC;IACzB,QAAQ,CAAC,mBAAmB,EAAE,SAAS,CAAC,SAAS,CAAC,CAAC;CACpD,GAAG,SAAS,CAAC,QAAQ,CAAC,CAAC,iBAAiB,CAAC,CAAC,eAAe,CAAC,EAC3D,CAAC,EACD,KAAK,EACL;IAAE,QAAQ,CAAC,SAAS,EAAE,eAAe,CAAA;CAAE,CACxC;IACC,SAAgB,KAAK,YAAY;IACjC,SAAgB,SAAS;;MAA2C;IACpE,SAAgB,QAAQ,KAAe;IAEvC,IAAW,eAAe;;;;;;;;;MAazB;CACF"}
@@ -1,5 +1,5 @@
1
- import Option from "../option.js";
2
- export default class Svelte extends Option {
1
+ import { ScopeSetting } from "../setting.js";
2
+ export default class SvelteSetting extends ScopeSetting {
3
3
  scope = "svelte";
4
4
  processor = { processor: "svelte/svelte" };
5
5
  language = {};
@@ -0,0 +1 @@
1
+ {"version":3,"file":"svelte.js","sourceRoot":"","sources":["../../../../src/factory/settings/scopes/svelte.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,YAAY,CAAC;AAG1C,MAAM,CAAC,OAAO,OAAO,aAAc,SAAQ,YAS1C;IACiB,KAAK,GAAG,QAAQ,CAAC;IACjB,SAAS,GAAG,EAAE,SAAS,EAAE,eAAe,EAAW,CAAC;IACpD,QAAQ,GAAG,EAAW,CAAC;IAEvC,IAAW,eAAe;QACxB,MAAM,CAAC,MAAM,EAAE,QAAQ,CAAC,GAAG,IAAI,CAAC,MAAM,CAAC;QAEvC,OAAO;YACL,MAAM;YACN,aAAa,EAAE;gBACb,MAAM,EAAE,QAAQ;gBAChB,mBAAmB,EAAE,CAAC,SAAS,CAAU;gBACzC,OAAO,EAAE,eAAe;gBACxB,UAAU,EAAE,QAAQ;gBACpB,WAAW,EAAE,IAAI;aACT;SACF,CAAC;IACb,CAAC;CACF"}
@@ -1,8 +1,8 @@
1
- import Option from "../option.js";
2
- export default class Ts extends Option<"ts", {
3
- project: "tsconfig.json";
4
- sourceType: "module";
5
- ecmaVersion: 2023;
1
+ import { ScopeSetting } from "../setting.js";
2
+ export default class TsSetting extends ScopeSetting<"ts", {
3
+ readonly project: "tsconfig.json";
4
+ readonly sourceType: "module";
5
+ readonly ecmaVersion: 2023;
6
6
  }, 1> {
7
7
  readonly scope = "ts";
8
8
  readonly processor: {};
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ts.d.ts","sourceRoot":"","sources":["../../../../src/factory/settings/scopes/ts.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,YAAY,CAAC;AAE1C,MAAM,CAAC,OAAO,OAAO,SAAU,SAAQ,YAAY,CACjD,IAAI,EACJ;IACE,QAAQ,CAAC,OAAO,EAAE,eAAe,CAAC;IAClC,QAAQ,CAAC,UAAU,EAAE,QAAQ,CAAC;IAC9B,QAAQ,CAAC,WAAW,EAAE,IAAI,CAAC;CAC5B,EACD,CAAC,CACF;IACC,SAAgB,KAAK,QAAQ;IAC7B,SAAgB,SAAS,KAAe;IACxC,SAAgB,QAAQ,KAAe;IAEvC,IAAW,eAAe;;;;;;;MAWzB;CACF"}
@@ -1,5 +1,5 @@
1
- import Option from "../option.js";
2
- export default class Ts extends Option {
1
+ import { ScopeSetting } from "../setting.js";
2
+ export default class TsSetting extends ScopeSetting {
3
3
  scope = "ts";
4
4
  processor = {};
5
5
  language = {};
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ts.js","sourceRoot":"","sources":["../../../../src/factory/settings/scopes/ts.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,YAAY,CAAC;AAE1C,MAAM,CAAC,OAAO,OAAO,SAAU,SAAQ,YAQtC;IACiB,KAAK,GAAG,IAAI,CAAC;IACb,SAAS,GAAG,EAAW,CAAC;IACxB,QAAQ,GAAG,EAAW,CAAC;IAEvC,IAAW,eAAe;QACxB,MAAM,CAAC,MAAM,CAAC,GAAG,IAAI,CAAC,MAAM,CAAC;QAE7B,OAAO;YACL,MAAM;YACN,aAAa,EAAE;gBACb,OAAO,EAAE,eAAe;gBACxB,UAAU,EAAE,QAAQ;gBACpB,WAAW,EAAE,IAAI;aACT;SACF,CAAC;IACb,CAAC;CACF"}
@@ -1,5 +1,5 @@
1
- import Option from "../option.js";
2
- export default class Yml extends Option<"yml", true, 1> {
1
+ import { ScopeSetting } from "../setting.js";
2
+ export default class YmlSetting extends ScopeSetting<"yml", true, 1> {
3
3
  readonly scope = "yml";
4
4
  readonly processor: {};
5
5
  readonly language: {};
@@ -0,0 +1 @@
1
+ {"version":3,"file":"yml.d.ts","sourceRoot":"","sources":["../../../../src/factory/settings/scopes/yml.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,YAAY,CAAC;AAE1C,MAAM,CAAC,OAAO,OAAO,UAAW,SAAQ,YAAY,CAClD,KAAK,EACL,IAAI,EACJ,CAAC,CACF;IACC,SAAgB,KAAK,SAAS;IAC9B,SAAgB,SAAS,KAAe;IACxC,SAAgB,QAAQ,KAAe;IAEvC,IAAW,eAAe;;MAIzB;CACF"}
@@ -1,5 +1,5 @@
1
- import Option from "../option.js";
2
- export default class Yml extends Option {
1
+ import { ScopeSetting } from "../setting.js";
2
+ export default class YmlSetting extends ScopeSetting {
3
3
  scope = "yml";
4
4
  processor = {};
5
5
  language = {};
@@ -0,0 +1 @@
1
+ {"version":3,"file":"yml.js","sourceRoot":"","sources":["../../../../src/factory/settings/scopes/yml.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,YAAY,CAAC;AAE1C,MAAM,CAAC,OAAO,OAAO,UAAW,SAAQ,YAIvC;IACiB,KAAK,GAAG,KAAK,CAAC;IACd,SAAS,GAAG,EAAW,CAAC;IACxB,QAAQ,GAAG,EAAW,CAAC;IAEvC,IAAW,eAAe;QACxB,MAAM,CAAC,MAAM,CAAC,GAAG,IAAI,CAAC,MAAM,CAAC;QAE7B,OAAO,EAAE,MAAM,EAAW,CAAC;IAC7B,CAAC;CACF"}