@eslinted/core 13.1.0 → 13.2.0-rc.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (152) hide show
  1. package/dist/factory/factory.d.ts +42 -42
  2. package/dist/factory/factory.d.ts.map +1 -1
  3. package/dist/factory/factory.js +11 -6
  4. package/dist/factory/factory.js.map +1 -1
  5. package/dist/index.d.ts +1 -1
  6. package/dist/index.d.ts.map +1 -1
  7. package/dist/index.js +1 -1
  8. package/dist/index.js.map +1 -1
  9. package/dist/interface/index.d.ts +1 -2
  10. package/dist/interface/index.d.ts.map +1 -1
  11. package/dist/interface/input.d.ts +5 -15
  12. package/dist/interface/input.d.ts.map +1 -1
  13. package/dist/interface/inputs/imports.d.ts +6 -0
  14. package/dist/interface/inputs/imports.d.ts.map +1 -0
  15. package/dist/interface/inputs/imports.js +2 -0
  16. package/dist/interface/inputs/imports.js.map +1 -0
  17. package/dist/interface/inputs/index.d.ts +3 -0
  18. package/dist/interface/inputs/index.d.ts.map +1 -0
  19. package/dist/interface/{config → inputs}/index.js.map +1 -1
  20. package/dist/interface/inputs/options/defaults.d.ts +8 -0
  21. package/dist/interface/inputs/options/defaults.d.ts.map +1 -0
  22. package/dist/interface/inputs/options/defaults.js +2 -0
  23. package/dist/interface/inputs/options/defaults.js.map +1 -0
  24. package/dist/interface/inputs/options/index.d.ts +13 -0
  25. package/dist/interface/inputs/options/index.d.ts.map +1 -0
  26. package/dist/interface/inputs/options/index.js.map +1 -0
  27. package/dist/interface/output.d.ts +6 -5
  28. package/dist/interface/output.d.ts.map +1 -1
  29. package/dist/interface/outputs/common/ignores.d.ts +5 -0
  30. package/dist/interface/outputs/common/ignores.d.ts.map +1 -0
  31. package/dist/interface/outputs/common/ignores.js.map +1 -0
  32. package/dist/interface/{configs/globals → outputs/common}/index.d.ts +0 -1
  33. package/dist/interface/outputs/common/index.d.ts.map +1 -0
  34. package/dist/interface/outputs/common/index.js.map +1 -0
  35. package/dist/interface/outputs/common/plugins.d.ts +5 -0
  36. package/dist/interface/outputs/common/plugins.d.ts.map +1 -0
  37. package/dist/interface/outputs/common/plugins.js.map +1 -0
  38. package/dist/interface/outputs/common/settings.d.ts +5 -0
  39. package/dist/interface/outputs/common/settings.d.ts.map +1 -0
  40. package/dist/interface/outputs/common/settings.js.map +1 -0
  41. package/dist/interface/{configs → outputs}/index.d.ts +1 -1
  42. package/dist/interface/outputs/index.d.ts.map +1 -0
  43. package/dist/interface/{imports → outputs}/index.js.map +1 -1
  44. package/dist/interface/{configs → outputs}/scoped.d.ts +1 -2
  45. package/dist/interface/outputs/scoped.d.ts.map +1 -0
  46. package/dist/interface/{configs → outputs}/scoped.js.map +1 -1
  47. package/dist/interface/{config → shared/config}/index.d.ts +3 -2
  48. package/dist/interface/shared/config/index.d.ts.map +1 -0
  49. package/dist/interface/shared/config/index.js.map +1 -0
  50. package/dist/interface/shared/config/rule/index.d.ts +7 -0
  51. package/dist/interface/shared/config/rule/index.d.ts.map +1 -0
  52. package/dist/interface/shared/config/rule/index.js +2 -0
  53. package/dist/interface/shared/config/rule/index.js.map +1 -0
  54. package/dist/interface/shared/index.d.ts +2 -0
  55. package/dist/interface/shared/index.d.ts.map +1 -0
  56. package/dist/interface/shared/index.js +2 -0
  57. package/dist/interface/{configs → shared}/index.js.map +1 -1
  58. package/dist/scopes/imports/index.d.ts.map +1 -0
  59. package/dist/scopes/imports/index.js +2 -0
  60. package/dist/scopes/imports/index.js.map +1 -0
  61. package/dist/scopes/imports/parsers.d.ts.map +1 -0
  62. package/dist/scopes/imports/parsers.js.map +1 -0
  63. package/dist/scopes/imports/plugins.d.ts.map +1 -0
  64. package/dist/scopes/imports/plugins.js.map +1 -0
  65. package/dist/scopes/index.d.ts +13 -0
  66. package/dist/scopes/index.d.ts.map +1 -0
  67. package/dist/{scopes.js → scopes/index.js} +1 -1
  68. package/dist/scopes/index.js.map +1 -0
  69. package/dist/scopes/index.spec.d.ts +2 -0
  70. package/dist/scopes/index.spec.d.ts.map +1 -0
  71. package/dist/{scopes.spec.js → scopes/index.spec.js} +2 -2
  72. package/dist/scopes/index.spec.js.map +1 -0
  73. package/package.json +1 -1
  74. package/src/factory/factory.ts +16 -7
  75. package/src/index.ts +2 -2
  76. package/src/interface/index.ts +1 -2
  77. package/src/interface/input.ts +8 -19
  78. package/src/interface/inputs/imports.ts +12 -0
  79. package/src/interface/inputs/index.ts +2 -0
  80. package/src/interface/inputs/options/defaults.ts +8 -0
  81. package/src/interface/inputs/options/index.ts +19 -0
  82. package/src/interface/output.ts +6 -5
  83. package/src/interface/outputs/common/ignores.ts +6 -0
  84. package/src/interface/{configs/globals → outputs/common}/index.ts +0 -1
  85. package/src/interface/outputs/common/plugins.ts +7 -0
  86. package/src/interface/outputs/common/settings.ts +7 -0
  87. package/src/interface/outputs/index.ts +2 -0
  88. package/src/interface/{configs → outputs}/scoped.ts +1 -2
  89. package/src/interface/{config → shared/config}/index.ts +18 -3
  90. package/src/interface/{config/rule.ts → shared/config/rule/index.ts} +3 -3
  91. package/src/interface/shared/index.ts +1 -0
  92. package/src/{scopes.spec.ts → scopes/index.spec.ts} +1 -1
  93. package/src/{scopes.ts → scopes/index.ts} +1 -0
  94. package/dist/factory/ruleset.d.ts +0 -10
  95. package/dist/factory/ruleset.d.ts.map +0 -1
  96. package/dist/factory/ruleset.js +0 -18
  97. package/dist/factory/ruleset.js.map +0 -1
  98. package/dist/interface/config/index.d.ts.map +0 -1
  99. package/dist/interface/config/rule.d.ts +0 -7
  100. package/dist/interface/config/rule.d.ts.map +0 -1
  101. package/dist/interface/config/rule.js +0 -2
  102. package/dist/interface/config/rule.js.map +0 -1
  103. package/dist/interface/configs/globals/ignores.d.ts +0 -6
  104. package/dist/interface/configs/globals/ignores.d.ts.map +0 -1
  105. package/dist/interface/configs/globals/ignores.js.map +0 -1
  106. package/dist/interface/configs/globals/index.d.ts.map +0 -1
  107. package/dist/interface/configs/globals/index.js.map +0 -1
  108. package/dist/interface/configs/globals/only/index.d.ts +0 -2
  109. package/dist/interface/configs/globals/only/index.d.ts.map +0 -1
  110. package/dist/interface/configs/globals/only/index.js.map +0 -1
  111. package/dist/interface/configs/globals/plugins.d.ts +0 -6
  112. package/dist/interface/configs/globals/plugins.d.ts.map +0 -1
  113. package/dist/interface/configs/globals/plugins.js.map +0 -1
  114. package/dist/interface/configs/globals/settings.d.ts +0 -7
  115. package/dist/interface/configs/globals/settings.d.ts.map +0 -1
  116. package/dist/interface/configs/globals/settings.js.map +0 -1
  117. package/dist/interface/configs/index.d.ts.map +0 -1
  118. package/dist/interface/configs/scoped.d.ts.map +0 -1
  119. package/dist/interface/imports/index.d.ts.map +0 -1
  120. package/dist/interface/imports/parsers.d.ts.map +0 -1
  121. package/dist/interface/imports/parsers.js.map +0 -1
  122. package/dist/interface/imports/plugins.d.ts.map +0 -1
  123. package/dist/interface/imports/plugins.js.map +0 -1
  124. package/dist/scopes.d.ts +0 -3
  125. package/dist/scopes.d.ts.map +0 -1
  126. package/dist/scopes.js.map +0 -1
  127. package/dist/scopes.spec.d.ts +0 -2
  128. package/dist/scopes.spec.d.ts.map +0 -1
  129. package/dist/scopes.spec.js.map +0 -1
  130. package/src/factory/ruleset.ts +0 -23
  131. package/src/interface/configs/globals/ignores.ts +0 -10
  132. package/src/interface/configs/globals/only/index.ts +0 -4
  133. package/src/interface/configs/globals/plugins.ts +0 -10
  134. package/src/interface/configs/globals/settings.ts +0 -13
  135. package/src/interface/configs/index.ts +0 -2
  136. /package/dist/interface/{config → inputs}/index.js +0 -0
  137. /package/dist/interface/{configs/globals → inputs/options}/index.js +0 -0
  138. /package/dist/interface/{configs/globals → outputs/common}/ignores.js +0 -0
  139. /package/dist/interface/{configs/globals/only → outputs/common}/index.js +0 -0
  140. /package/dist/interface/{configs/globals → outputs/common}/plugins.js +0 -0
  141. /package/dist/interface/{configs/globals → outputs/common}/settings.js +0 -0
  142. /package/dist/interface/{configs → outputs}/index.js +0 -0
  143. /package/dist/interface/{configs → outputs}/scoped.js +0 -0
  144. /package/dist/interface/{imports → shared/config}/index.js +0 -0
  145. /package/dist/{interface → scopes}/imports/index.d.ts +0 -0
  146. /package/dist/{interface → scopes}/imports/parsers.d.ts +0 -0
  147. /package/dist/{interface → scopes}/imports/parsers.js +0 -0
  148. /package/dist/{interface → scopes}/imports/plugins.d.ts +0 -0
  149. /package/dist/{interface → scopes}/imports/plugins.js +0 -0
  150. /package/src/{interface → scopes}/imports/index.ts +0 -0
  151. /package/src/{interface → scopes}/imports/parsers.ts +0 -0
  152. /package/src/{interface → scopes}/imports/plugins.ts +0 -0
@@ -1,4 +1,4 @@
1
- import type { Scopes, Input } from "../index.js";
1
+ import type { Scopes, Rule, Input } from "../index.js";
2
2
  import type Options from "./settings/index.js";
3
3
  export declare class Factory {
4
4
  readonly defaults: Input["defaults"];
@@ -15,7 +15,7 @@ export declare class Factory {
15
15
  };
16
16
  readonly languageOptions: {
17
17
  readonly sourceType: "module" | "script";
18
- readonly ecmaVersion: 2023 | "latest" | 3 | 5 | 2015 | 2016 | 2017 | 2018 | 2019 | 2020 | 2021 | 2022 | 2024;
18
+ readonly ecmaVersion: "latest" | 3 | 5 | 2015 | 2016 | 2017 | 2018 | 2019 | 2020 | 2021 | 2022 | 2023 | 2024;
19
19
  };
20
20
  };
21
21
  get ignores(): {
@@ -32,32 +32,32 @@ export declare class Factory {
32
32
  readonly ecmaVersion: 2023;
33
33
  };
34
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}`;
35
+ readonly name: `linted/svelte:${string}` | `linted/mocha:${string}` | `linted/jsonc:${string}` | `linted/yml:${string}` | `linted/ts:${string}` | `linted/html:${string}` | `linted/js:${string}` | `linted/json:${string}`;
36
36
  readonly files: readonly [
37
- ...Readonly<Record<"js" | "ts" | "svelte" | "mocha" | "html" | "json" | "jsonc" | "yml" | "*", readonly string[]>>[S],
37
+ ...Readonly<Record<"svelte" | "mocha" | "jsonc" | "yml" | "ts" | "html" | "js" | "json" | "*", readonly string[]>>[S],
38
38
  ...string[]
39
39
  ];
40
40
  readonly ignores: readonly [
41
- ...Readonly<Record<"js" | "ts" | "svelte" | "mocha" | "html" | "json" | "jsonc" | "yml" | "*", readonly string[]>>[S],
41
+ ...Readonly<Record<"svelte" | "mocha" | "jsonc" | "yml" | "ts" | "html" | "js" | "json" | "*", readonly string[]>>[S],
42
42
  ...string[]
43
43
  ];
44
- readonly rules: Readonly<Record<string, import("../interface/config/rule.js").State | readonly [
45
- import("../interface/config/rule.js").State,
44
+ readonly rules: Readonly<Record<string, Rule.State | readonly [
45
+ Rule.State,
46
46
  ...unknown[]
47
47
  ]>>;
48
48
  } | {
49
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}`;
50
+ readonly name: `linted/svelte:${string}` | `linted/mocha:${string}` | `linted/jsonc:${string}` | `linted/yml:${string}` | `linted/ts:${string}` | `linted/html:${string}` | `linted/js:${string}` | `linted/json:${string}`;
51
51
  readonly files: readonly [
52
- ...Readonly<Record<"js" | "ts" | "svelte" | "mocha" | "html" | "json" | "jsonc" | "yml" | "*", readonly string[]>>[S],
52
+ ...Readonly<Record<"svelte" | "mocha" | "jsonc" | "yml" | "ts" | "html" | "js" | "json" | "*", readonly string[]>>[S],
53
53
  ...string[]
54
54
  ];
55
55
  readonly ignores: readonly [
56
- ...Readonly<Record<"js" | "ts" | "svelte" | "mocha" | "html" | "json" | "jsonc" | "yml" | "*", readonly string[]>>[S],
56
+ ...Readonly<Record<"svelte" | "mocha" | "jsonc" | "yml" | "ts" | "html" | "js" | "json" | "*", readonly string[]>>[S],
57
57
  ...string[]
58
58
  ];
59
- readonly rules: Readonly<Record<string, import("../interface/config/rule.js").State | readonly [
60
- import("../interface/config/rule.js").State,
59
+ readonly rules: Readonly<Record<string, Rule.State | readonly [
60
+ Rule.State,
61
61
  ...unknown[]
62
62
  ]>>;
63
63
  } | {
@@ -75,17 +75,17 @@ export declare class Factory {
75
75
  };
76
76
  };
77
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}`;
78
+ readonly name: `linted/svelte:${string}` | `linted/mocha:${string}` | `linted/jsonc:${string}` | `linted/yml:${string}` | `linted/ts:${string}` | `linted/html:${string}` | `linted/js:${string}` | `linted/json:${string}`;
79
79
  readonly files: readonly [
80
- ...Readonly<Record<"js" | "ts" | "svelte" | "mocha" | "html" | "json" | "jsonc" | "yml" | "*", readonly string[]>>[S],
80
+ ...Readonly<Record<"svelte" | "mocha" | "jsonc" | "yml" | "ts" | "html" | "js" | "json" | "*", readonly string[]>>[S],
81
81
  ...string[]
82
82
  ];
83
83
  readonly ignores: readonly [
84
- ...Readonly<Record<"js" | "ts" | "svelte" | "mocha" | "html" | "json" | "jsonc" | "yml" | "*", readonly string[]>>[S],
84
+ ...Readonly<Record<"svelte" | "mocha" | "jsonc" | "yml" | "ts" | "html" | "js" | "json" | "*", readonly string[]>>[S],
85
85
  ...string[]
86
86
  ];
87
- readonly rules: Readonly<Record<string, import("../interface/config/rule.js").State | readonly [
88
- import("../interface/config/rule.js").State,
87
+ readonly rules: Readonly<Record<string, Rule.State | readonly [
88
+ Rule.State,
89
89
  ...unknown[]
90
90
  ]>>;
91
91
  } | {
@@ -97,77 +97,77 @@ export declare class Factory {
97
97
  readonly ecmaVersion: 2023;
98
98
  };
99
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}`;
100
+ readonly name: `linted/svelte:${string}` | `linted/mocha:${string}` | `linted/jsonc:${string}` | `linted/yml:${string}` | `linted/ts:${string}` | `linted/html:${string}` | `linted/js:${string}` | `linted/json:${string}`;
101
101
  readonly files: readonly [
102
- ...Readonly<Record<"js" | "ts" | "svelte" | "mocha" | "html" | "json" | "jsonc" | "yml" | "*", readonly string[]>>[S],
102
+ ...Readonly<Record<"svelte" | "mocha" | "jsonc" | "yml" | "ts" | "html" | "js" | "json" | "*", readonly string[]>>[S],
103
103
  ...string[]
104
104
  ];
105
105
  readonly ignores: readonly [
106
- ...Readonly<Record<"js" | "ts" | "svelte" | "mocha" | "html" | "json" | "jsonc" | "yml" | "*", readonly string[]>>[S],
106
+ ...Readonly<Record<"svelte" | "mocha" | "jsonc" | "yml" | "ts" | "html" | "js" | "json" | "*", readonly string[]>>[S],
107
107
  ...string[]
108
108
  ];
109
- readonly rules: Readonly<Record<string, import("../interface/config/rule.js").State | readonly [
110
- import("../interface/config/rule.js").State,
109
+ readonly rules: Readonly<Record<string, Rule.State | readonly [
110
+ Rule.State,
111
111
  ...unknown[]
112
112
  ]>>;
113
113
  } | {
114
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}`;
115
+ readonly name: `linted/svelte:${string}` | `linted/mocha:${string}` | `linted/jsonc:${string}` | `linted/yml:${string}` | `linted/ts:${string}` | `linted/html:${string}` | `linted/js:${string}` | `linted/json:${string}`;
116
116
  readonly files: readonly [
117
- ...Readonly<Record<"js" | "ts" | "svelte" | "mocha" | "html" | "json" | "jsonc" | "yml" | "*", readonly string[]>>[S],
117
+ ...Readonly<Record<"svelte" | "mocha" | "jsonc" | "yml" | "ts" | "html" | "js" | "json" | "*", readonly string[]>>[S],
118
118
  ...string[]
119
119
  ];
120
120
  readonly ignores: readonly [
121
- ...Readonly<Record<"js" | "ts" | "svelte" | "mocha" | "html" | "json" | "jsonc" | "yml" | "*", readonly string[]>>[S],
121
+ ...Readonly<Record<"svelte" | "mocha" | "jsonc" | "yml" | "ts" | "html" | "js" | "json" | "*", readonly string[]>>[S],
122
122
  ...string[]
123
123
  ];
124
- readonly rules: Readonly<Record<string, import("../interface/config/rule.js").State | readonly [
125
- import("../interface/config/rule.js").State,
124
+ readonly rules: Readonly<Record<string, Rule.State | readonly [
125
+ Rule.State,
126
126
  ...unknown[]
127
127
  ]>>;
128
128
  } | {
129
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}`;
130
+ readonly name: `linted/svelte:${string}` | `linted/mocha:${string}` | `linted/jsonc:${string}` | `linted/yml:${string}` | `linted/ts:${string}` | `linted/html:${string}` | `linted/js:${string}` | `linted/json:${string}`;
131
131
  readonly files: readonly [
132
- ...Readonly<Record<"js" | "ts" | "svelte" | "mocha" | "html" | "json" | "jsonc" | "yml" | "*", readonly string[]>>[S],
132
+ ...Readonly<Record<"svelte" | "mocha" | "jsonc" | "yml" | "ts" | "html" | "js" | "json" | "*", readonly string[]>>[S],
133
133
  ...string[]
134
134
  ];
135
135
  readonly ignores: readonly [
136
- ...Readonly<Record<"js" | "ts" | "svelte" | "mocha" | "html" | "json" | "jsonc" | "yml" | "*", readonly string[]>>[S],
136
+ ...Readonly<Record<"svelte" | "mocha" | "jsonc" | "yml" | "ts" | "html" | "js" | "json" | "*", readonly string[]>>[S],
137
137
  ...string[]
138
138
  ];
139
- readonly rules: Readonly<Record<string, import("../interface/config/rule.js").State | readonly [
140
- import("../interface/config/rule.js").State,
139
+ readonly rules: Readonly<Record<string, Rule.State | readonly [
140
+ Rule.State,
141
141
  ...unknown[]
142
142
  ]>>;
143
143
  } | {
144
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}`;
145
+ readonly name: `linted/svelte:${string}` | `linted/mocha:${string}` | `linted/jsonc:${string}` | `linted/yml:${string}` | `linted/ts:${string}` | `linted/html:${string}` | `linted/js:${string}` | `linted/json:${string}`;
146
146
  readonly files: readonly [
147
- ...Readonly<Record<"js" | "ts" | "svelte" | "mocha" | "html" | "json" | "jsonc" | "yml" | "*", readonly string[]>>[S],
147
+ ...Readonly<Record<"svelte" | "mocha" | "jsonc" | "yml" | "ts" | "html" | "js" | "json" | "*", readonly string[]>>[S],
148
148
  ...string[]
149
149
  ];
150
150
  readonly ignores: readonly [
151
- ...Readonly<Record<"js" | "ts" | "svelte" | "mocha" | "html" | "json" | "jsonc" | "yml" | "*", readonly string[]>>[S],
151
+ ...Readonly<Record<"svelte" | "mocha" | "jsonc" | "yml" | "ts" | "html" | "js" | "json" | "*", readonly string[]>>[S],
152
152
  ...string[]
153
153
  ];
154
- readonly rules: Readonly<Record<string, import("../interface/config/rule.js").State | readonly [
155
- import("../interface/config/rule.js").State,
154
+ readonly rules: Readonly<Record<string, Rule.State | readonly [
155
+ Rule.State,
156
156
  ...unknown[]
157
157
  ]>>;
158
158
  } | {
159
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}`;
160
+ readonly name: `linted/svelte:${string}` | `linted/mocha:${string}` | `linted/jsonc:${string}` | `linted/yml:${string}` | `linted/ts:${string}` | `linted/html:${string}` | `linted/js:${string}` | `linted/json:${string}`;
161
161
  readonly files: readonly [
162
- ...Readonly<Record<"js" | "ts" | "svelte" | "mocha" | "html" | "json" | "jsonc" | "yml" | "*", readonly string[]>>[S],
162
+ ...Readonly<Record<"svelte" | "mocha" | "jsonc" | "yml" | "ts" | "html" | "js" | "json" | "*", readonly string[]>>[S],
163
163
  ...string[]
164
164
  ];
165
165
  readonly ignores: readonly [
166
- ...Readonly<Record<"js" | "ts" | "svelte" | "mocha" | "html" | "json" | "jsonc" | "yml" | "*", readonly string[]>>[S],
166
+ ...Readonly<Record<"svelte" | "mocha" | "jsonc" | "yml" | "ts" | "html" | "js" | "json" | "*", readonly string[]>>[S],
167
167
  ...string[]
168
168
  ];
169
- readonly rules: Readonly<Record<string, import("../interface/config/rule.js").State | readonly [
170
- import("../interface/config/rule.js").State,
169
+ readonly rules: Readonly<Record<string, Rule.State | readonly [
170
+ Rule.State,
171
171
  ...unknown[]
172
172
  ]>>;
173
173
  })[];
@@ -1 +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"}
1
+ {"version":3,"file":"factory.d.ts","sourceRoot":"","sources":["../../src/factory/factory.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,IAAI,EAAE,KAAK,EAAE,MAAM,IAAI,CAAC;AAC9C,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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAyCnF"}
@@ -1,4 +1,3 @@
1
- import { Ruleset } from "./ruleset.js";
2
1
  export class Factory {
3
2
  defaults;
4
3
  extensions;
@@ -25,12 +24,18 @@ export class Factory {
25
24
  };
26
25
  }
27
26
  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}"`);
27
+ function Ruleset(scope, defaults, override) {
28
+ return [
29
+ ...defaults.map(([id, rules]) => ({ id: `${scope}:${id}`, rules })),
30
+ ...typeof override === "undefined"
31
+ ? []
32
+ : [{ id: `${scope}:override`, rules: override }],
33
+ ];
34
+ }
35
+ 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 = Ruleset(scope, defaultRules, extendRules);
31
36
  return files.length < 1
32
37
  ? []
33
- : ruleset.ruleset.map(({ id, rules }) => ({
38
+ : ruleset.map(({ id, rules }) => ({
34
39
  name: `linted/${id}`,
35
40
  files,
36
41
  ignores,
@@ -39,4 +44,4 @@ export class Factory {
39
44
  }));
40
45
  }
41
46
  }
42
- //# sourceMappingURL=factory.js.map
47
+ //# sourceMappingURL=factory.js.map
@@ -1 +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,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AAK,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,OAAO,CAAS,KAAK,EAAE,YAAY,EAAE,WAAW,CAAC,CAAC;QAE5D,OAAO,KAAK,CAAC,MAAM,GAAG,CAAC;YACrB,CAAC,CAAC,EAAW;YACb,CAAC,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,EAAE,EAAE,KAAK,EAAE,EAAE,EAAE,CAAC,CAAC;gBAChC,IAAI,EAAE,UAAU,EAAE,EAAE;gBACpB,KAAK;gBACL,OAAO;gBACP,KAAK;gBACL,GAAG,QAAQ,CAAC,MAAM;aACT,CAAA,CAAC,CAAC;IACjB,CAAC;CACF"}
package/dist/index.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  import type { Input, Output } from "./interface/index.js";
2
- export type { Scopes } from "./scopes.js";
3
2
  export type * from "./interface/index.js";
3
+ export type * from "./scopes/index.js";
4
4
  export default function ({ imports: { plugins, parsers }, defaults, extensions, }: Input): Output;
5
5
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,EAAE,MAAM,aAAa,CAAC;AAEjD,YAAY,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AACvC,mBAAmB,aAAa,CAAC;AACjC,MAAM,CAAC,OAAO,WAAW,EACvB,OAAO,EAAE,EAAE,OAAO,EAAE,OAAO,EAAE,EAC7B,QAAQ,EACR,UAAU,GACX,EAAE,KAAK,GAAG,MAAM,CAwBhB"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,EAAE,MAAM,aAAa,CAAC;AAIjD,mBAAmB,aAAa,CAAC;AACjC,mBAAmB,UAAU,CAAC;AAC9B,MAAM,CAAC,OAAO,WAAW,EACvB,OAAO,EAAE,EAAE,OAAO,EAAE,OAAO,EAAE,EAC7B,QAAQ,EACR,UAAU,GACX,EAAE,KAAK,GAAG,MAAM,CAwBhB"}
package/dist/index.js CHANGED
@@ -1,4 +1,4 @@
1
- import { scopes } from "./scopes.js";
1
+ import { scopes } from "./scopes/index.js";
2
2
  import { Factory, Options } from "./factory/index.js";
3
3
  export default function ({ imports: { plugins, parsers }, defaults, extensions, }) {
4
4
  try {
package/dist/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAClC,OAAO,EAAE,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAK7C,MAAM,CAAC,OAAO,WAAW,EACvB,OAAO,EAAE,EAAE,OAAO,EAAE,OAAO,EAAE,EAC7B,QAAQ,EACR,UAAU,GACJ;IACN,IAAI,CAAC;QACH,MAAM,OAAO,GAAG,IAAI,OAAO,CAAC,QAAQ,EAAE,UAAU,CAAC,EACjD,OAAO,GAA+E;YACpF,EAAE,EAAE,IAAI,OAAO,CAAC,EAAE,CAAC,EAAW,CAAC;YAC/B,EAAE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CAAC;IAC/C,CAAC;AACH,CAAC"}
@@ -1,5 +1,4 @@
1
- export type * as Imports from "./imports/index.js";
2
- export type * from "./config/index.js";
3
1
  export type * from "./input.js";
4
2
  export type * from "./output.js";
3
+ export type * from "./shared/index.js";
5
4
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/interface/index.ts"],"names":[],"mappings":"AAAA,YAAY,KAAK,OAAO,MAAM,WAAW,CAAC;AAC1C,mBAAmB,UAAU,CAAC;AAC9B,mBAAmB,SAAS,CAAC;AAC7B,mBAAmB,UAAU,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/interface/index.ts"],"names":[],"mappings":"AAAA,mBAAmB,SAAS,CAAC;AAC7B,mBAAmB,UAAU,CAAC;AAC9B,mBAAmB,UAAU,CAAC"}
@@ -1,18 +1,8 @@
1
- import type { Config, Rule, Imports } from "./index.js";
2
- import type { Scopes } from "../index.js";
1
+ import type { Scopes, Plugins, Parsers } from "../scopes/index.js";
2
+ import type * as Inputs from "./inputs/index.js";
3
3
  export interface Input {
4
- readonly imports: {
5
- readonly plugins: Config<Imports.Plugins>["plugins"];
6
- readonly parsers: Readonly<Record<Imports.Parsers, unknown>>;
7
- };
8
- readonly defaults: {
9
- readonly settings: Config["linterOptions"] & Pick<Config["languageOptions"], "ecmaVersion" | "sourceType">;
10
- readonly files: Readonly<Record<"*" | Scopes, readonly string[]>>;
11
- readonly ignores: Input["defaults"]["files"];
12
- readonly rules: Readonly<Record<Scopes, readonly Rule.Entry[]>>;
13
- };
14
- readonly extensions: Readonly<Partial<Record<"*", Partial<Input["defaults"]["settings"] & Pick<Config, "ignores"> & {
15
- readonly override?: boolean;
16
- }>> & Record<Scopes, Partial<Pick<Config, "files" | "ignores" | "rules">>>>>;
4
+ readonly imports: Inputs.Imports<Plugins, Parsers>;
5
+ readonly defaults: Inputs.Defaults<Scopes>;
6
+ readonly extensions: Input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QAAQ,CAAC,EAAE,OAAO,CAAA;KAAE,CAAC,CAAC,GAC/G,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,IAAI,CAAC,MAAM,EAAE,OAAO,GAAG,SAAS,GAAG,OAAO,CAAC,CAAC,CAAC,CACvE,CAAC,CAAC;CACJ"}
1
+ {"version":3,"file":"input.d.ts","sourceRoot":"","sources":["../../src/interface/input.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAC1D,OAAO,KAAK,KAAK,MAAM,MAAM,UAAU,CAAC;AAExC,MAAM,WAAW,KAAK;IACpB,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAC,OAAO,CAC9B,OAAO,EACP,OAAO,CACR,CAAC;IACF,QAAQ,CAAC,QAAQ,EAAE,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,CAAC;IAC3C,QAAQ,CAAC,UAAU,EAAE,MAAM,CAAC,UAAU,CAAC,MAAM,CAAC,CAAC;CAChD"}
@@ -0,0 +1,6 @@
1
+ import type { Config } from "../shared/index.js";
2
+ export interface Imports<Plugins extends string, Parsers extends string> {
3
+ readonly plugins: Config<Plugins>["plugins"];
4
+ readonly parsers: Readonly<Record<Parsers, unknown>>;
5
+ }
6
+ //# sourceMappingURL=imports.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"imports.d.ts","sourceRoot":"","sources":["../../../src/interface/inputs/imports.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,WAAW,CAAC;AAExC,MAAM,WAAW,OAAO,CACtB,OAAO,SAAS,MAAM,EACtB,OAAO,SAAS,MAAM;IAEtB,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAC,OAAO,CAAC,CAAC,SAAS,CAAC,CAAC;IAC7C,QAAQ,CAAC,OAAO,EAAE,QAAQ,CAAC,MAAM,CAC/B,OAAO,EACP,OAAO,CACR,CAAC,CAAC;CACJ"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=imports.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"imports.js","sourceRoot":"","sources":["../../../src/interface/inputs/imports.ts"],"names":[],"mappings":""}
@@ -0,0 +1,3 @@
1
+ export type * from "./imports.js";
2
+ export type * from "./options/index.js";
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/interface/inputs/index.ts"],"names":[],"mappings":"AAAA,mBAAmB,WAAW,CAAC;AAC/B,mBAAmB,WAAW,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/interface/config/index.ts"],"names":[],"mappings":""}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/interface/inputs/index.ts"],"names":[],"mappings":""}
@@ -0,0 +1,8 @@
1
+ import type { Config, Rule } from "../../shared/index.js";
2
+ export interface Defaults<Scopes extends string> {
3
+ readonly settings: Config["linterOptions"] & Config["languageOptions"];
4
+ readonly files: Readonly<Record<"*" | Scopes, readonly string[]>>;
5
+ readonly ignores: Defaults<Scopes>["files"];
6
+ readonly rules: Readonly<Record<Scopes, readonly Rule.NamedBag[]>>;
7
+ }
8
+ //# sourceMappingURL=defaults.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"defaults.d.ts","sourceRoot":"","sources":["../../../../src/interface/inputs/options/defaults.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,cAAc,CAAC;AAEjD,MAAM,WAAW,QAAQ,CAAC,MAAM,SAAS,MAAM;IAC7C,QAAQ,CAAC,QAAQ,EAAE,MAAM,CAAC,eAAe,CAAC,GAAG,MAAM,CAAC,iBAAiB,CAAC,CAAC;IACvE,QAAQ,CAAC,KAAK,EAAE,QAAQ,CAAC,MAAM,CAAC,GAAG,GAAG,MAAM,EAAE,SAAS,MAAM,EAAE,CAAC,CAAC,CAAC;IAClE,QAAQ,CAAC,OAAO,EAAE,QAAQ,CAAC,MAAM,CAAC,CAAC,OAAO,CAAC,CAAC;IAC5C,QAAQ,CAAC,KAAK,EAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,SAAS,IAAI,CAAC,QAAQ,EAAE,CAAC,CAAC,CAAC;CACpE"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=defaults.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"defaults.js","sourceRoot":"","sources":["../../../../src/interface/inputs/options/defaults.ts"],"names":[],"mappings":""}
@@ -0,0 +1,13 @@
1
+ import type { Defaults } from "./defaults.js";
2
+ export type * from "./defaults.js";
3
+ export type Extensions<Scopes extends string> = ({
4
+ readonly "*"?: Partial<Defaults<Scopes>["settings"]> & {
5
+ readonly override?: boolean;
6
+ readonly ignores?: Defaults<Scopes>["ignores"]["*"];
7
+ };
8
+ } & Partial<Record<Scopes, {
9
+ readonly files?: Defaults<Scopes>["files"][Scopes];
10
+ readonly ignores?: Defaults<Scopes>["ignores"][Scopes];
11
+ readonly rules?: Defaults<Scopes>["rules"][Scopes][number][1];
12
+ }>>);
13
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/interface/inputs/options/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AAE3C,mBAAmB,YAAY,CAAC;AAChC,MAAM,MAAM,UAAU,CAAC,MAAM,SAAS,MAAM,IAAI,CAC5C;IACA,QAAQ,CAAC,GAAG,CAAC,EAAE,OAAO,CAAC,QAAQ,CAAC,MAAM,CAAC,CAAC,UAAU,CAAC,CAAC,GAAG;QACrD,QAAQ,CAAC,QAAQ,CAAC,EAAE,OAAO,CAAC;QAC5B,QAAQ,CAAC,OAAO,CAAC,EAAE,QAAQ,CAAC,MAAM,CAAC,CAAC,SAAS,CAAC,CAAC,GAAG,CAAC,CAAC;KACrD,CAAC;CACH,GACC,OAAO,CAAC,MAAM,CACd,MAAM,EACN;IACE,QAAQ,CAAC,KAAK,CAAC,EAAE,QAAQ,CAAC,MAAM,CAAC,CAAC,OAAO,CAAC,CAAC,MAAM,CAAC,CAAC;IACnD,QAAQ,CAAC,OAAO,CAAC,EAAE,QAAQ,CAAC,MAAM,CAAC,CAAC,SAAS,CAAC,CAAC,MAAM,CAAC,CAAC;IACvD,QAAQ,CAAC,KAAK,CAAC,EAAE,QAAQ,CAAC,MAAM,CAAC,CAAC,OAAO,CAAC,CAAC,MAAM,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,CAAC;CAC/D,CACF,CAAC,CACH,CAAC"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/interface/inputs/options/index.ts"],"names":[],"mappings":""}
@@ -1,9 +1,10 @@
1
- import type * as Configs from "./configs/index.js";
1
+ import type { Scopes, Plugins } from "../scopes/index.js";
2
+ import type * as Configs from "./outputs/index.js";
2
3
  export type { Configs };
3
4
  export type Output = readonly [
4
- Configs.Globals.Plugins,
5
- Configs.Globals.Settings,
6
- Configs.Globals.Ignores,
7
- ...readonly Configs.Scoped[]
5
+ Configs.Common.Plugins<Plugins>,
6
+ Configs.Common.Settings,
7
+ Configs.Common.Ignores,
8
+ ...readonly Configs.Scoped<Scopes>[]
8
9
  ];
9
10
  //# sourceMappingURL=output.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"output.d.ts","sourceRoot":"","sources":["../../src/interface/output.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,OAAO,MAAM,WAAW,CAAC;AAE1C,YAAY,EAAE,OAAO,EAAE,CAAC;AACxB,MAAM,MAAM,MAAM,GAAG,SAAS;IAC5B,OAAO,CAAC,OAAO,CAAC,OAAO;IACvB,OAAO,CAAC,OAAO,CAAC,QAAQ;IACxB,OAAO,CAAC,OAAO,CAAC,OAAO;IACvB,GAAG,SAAS,OAAO,CAAC,MAAM,EAAE;CAC7B,CAAC"}
1
+ {"version":3,"file":"output.d.ts","sourceRoot":"","sources":["../../src/interface/output.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AACjD,OAAO,KAAK,KAAK,OAAO,MAAM,WAAW,CAAC;AAE1C,YAAY,EAAE,OAAO,EAAE,CAAC;AACxB,MAAM,MAAM,MAAM,GAAG,SAAS;IAC5B,OAAO,CAAC,MAAM,CAAC,OAAO,CAAC,OAAO,CAAC;IAC/B,OAAO,CAAC,MAAM,CAAC,QAAQ;IACvB,OAAO,CAAC,MAAM,CAAC,OAAO;IACtB,GAAG,SAAS,OAAO,CAAC,MAAM,CAAC,MAAM,CAAC,EAAE;CACrC,CAAC"}
@@ -0,0 +1,5 @@
1
+ import type { PartialConfig } from "../../shared/index.js";
2
+ export type Ignores = PartialConfig<{
3
+ readonly name: "linted/*/ignores";
4
+ }, "ignores">;
5
+ //# sourceMappingURL=ignores.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ignores.d.ts","sourceRoot":"","sources":["../../../../src/interface/outputs/common/ignores.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,cAAc,CAAC;AAElD,MAAM,MAAM,OAAO,GAAG,aAAa,CACjC;IAAE,QAAQ,CAAC,IAAI,EAAE,kBAAkB,CAAA;CAAE,EACrC,SAAS,CACV,CAAC"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ignores.js","sourceRoot":"","sources":["../../../../src/interface/outputs/common/ignores.ts"],"names":[],"mappings":""}
@@ -1,5 +1,4 @@
1
1
  export type * from "./plugins.js";
2
2
  export type * from "./settings.js";
3
3
  export type * from "./ignores.js";
4
- export type * from "./only/index.js";
5
4
  //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/interface/outputs/common/index.ts"],"names":[],"mappings":"AAAA,mBAAmB,WAAW,CAAC;AAC/B,mBAAmB,YAAY,CAAC;AAChC,mBAAmB,WAAW,CAAC"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/interface/outputs/common/index.ts"],"names":[],"mappings":""}
@@ -0,0 +1,5 @@
1
+ import type { PartialConfig } from "../../shared/index.js";
2
+ export type Plugins<Plugins extends string> = PartialConfig<{
3
+ readonly name: `linted/*/plugins`;
4
+ }, "plugins", Plugins>;
5
+ //# sourceMappingURL=plugins.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"plugins.d.ts","sourceRoot":"","sources":["../../../../src/interface/outputs/common/plugins.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,cAAc,CAAC;AAElD,MAAM,MAAM,OAAO,CAAC,OAAO,SAAS,MAAM,IAAI,aAAa,CACzD;IAAE,QAAQ,CAAC,IAAI,EAAE,kBAAkB,CAAA;CAAE,EACrC,SAAS,EACT,OAAO,CACR,CAAC"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"plugins.js","sourceRoot":"","sources":["../../../../src/interface/outputs/common/plugins.ts"],"names":[],"mappings":""}
@@ -0,0 +1,5 @@
1
+ import type { PartialConfig } from "../../shared/index.js";
2
+ export type Settings = PartialConfig<{
3
+ readonly name: `linted/*/settings`;
4
+ }, "linterOptions" | "languageOptions">;
5
+ //# sourceMappingURL=settings.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"settings.d.ts","sourceRoot":"","sources":["../../../../src/interface/outputs/common/settings.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,cAAc,CAAC;AAElD,MAAM,MAAM,QAAQ,GAAG,aAAa,CAClC;IAAE,QAAQ,CAAC,IAAI,EAAE,mBAAmB,CAAA;CAAE,EACpC,eAAe,GACf,iBAAiB,CACpB,CAAC"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"settings.js","sourceRoot":"","sources":["../../../../src/interface/outputs/common/settings.ts"],"names":[],"mappings":""}
@@ -1,3 +1,3 @@
1
- export type * as Globals from "./globals/index.js";
1
+ export type * as Common from "./common/index.js";
2
2
  export type * from "./scoped.js";
3
3
  //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/interface/outputs/index.ts"],"names":[],"mappings":"AAAA,YAAY,KAAK,MAAM,MAAM,UAAU,CAAC;AACxC,mBAAmB,UAAU,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/interface/imports/index.ts"],"names":[],"mappings":""}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/interface/outputs/index.ts"],"names":[],"mappings":""}
@@ -1,6 +1,5 @@
1
1
  import type { Config } from "../index.js";
2
- import type { Scopes } from "../../index.js";
3
- export type Scoped = {
2
+ export type Scoped<Scopes extends string> = {
4
3
  readonly name: `linted/${Scopes}:${string}`;
5
4
  readonly languageOptions: Omit<Config["languageOptions"], "sourceType" | "ecmaVersion">;
6
5
  } & Pick<Config, "files" | "ignores" | "rules" | "processor" | "language" | "settings">;
@@ -0,0 +1 @@
1
+ {"version":3,"file":"scoped.d.ts","sourceRoot":"","sources":["../../../src/interface/outputs/scoped.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,IAAI,CAAC;AAEjC,MAAM,MAAM,MAAM,CAAC,MAAM,SAAS,MAAM,IAAI;IAC1C,QAAQ,CAAC,IAAI,EAAE,UAAU,MAAM,IAAI,MAAM,EAAE,CAAC;IAC5C,QAAQ,CAAC,eAAe,EAAE,IAAI,CAAC,MAAM,CAAC,iBAAiB,CAAC,EAAE,YAAY,GAAG,aAAa,CAAC,CAAC;CACzF,GAAG,IAAI,CAAC,MAAM,EAAE,OAAO,GAAG,SAAS,GAAG,OAAO,GAAG,WAAW,GAAG,UAAU,GAAG,UAAU,CAAC,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"scoped.js","sourceRoot":"","sources":["../../../src/interface/configs/scoped.ts"],"names":[],"mappings":""}
1
+ {"version":3,"file":"scoped.js","sourceRoot":"","sources":["../../../src/interface/outputs/scoped.ts"],"names":[],"mappings":""}
@@ -1,4 +1,4 @@
1
- import type * as Rule from "./rule.js";
1
+ import type * as Rule from "./rule/index.js";
2
2
  export type { Rule };
3
3
  export interface Config<Plugins extends string = string> {
4
4
  readonly name: `linted/${string}`;
@@ -7,7 +7,7 @@ export interface Config<Plugins extends string = string> {
7
7
  }>>;
8
8
  readonly files: readonly string[];
9
9
  readonly ignores: readonly string[];
10
- readonly rules: Rule.Config;
10
+ readonly rules: Rule.Bag;
11
11
  readonly linterOptions: {
12
12
  readonly noInlineConfig: boolean;
13
13
  readonly reportUnusedDisableDirectives: "error" | "warn" | "off";
@@ -20,4 +20,5 @@ export interface Config<Plugins extends string = string> {
20
20
  readonly language?: string;
21
21
  readonly settings?: Readonly<Record<string, unknown>>;
22
22
  }
23
+ export type PartialConfig<This extends object, Picks extends Exclude<keyof Config, keyof This>, Plugins extends string = string> = (This & Pick<Config<Plugins>, Picks> & Readonly<Partial<Record<Exclude<keyof Config, Picks | keyof This>, never>>>);
23
24
  //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/interface/shared/config/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,IAAI,MAAM,QAAQ,CAAC;AAEpC,YAAY,EAAE,IAAI,EAAE,CAAC;AACrB,MAAM,WAAW,MAAM,CAAC,OAAO,SAAS,MAAM,GAAG,MAAM;IACrD,QAAQ,CAAC,IAAI,EAAE,UAAU,MAAM,EAAE,CAAC;IAClC,QAAQ,CAAC,OAAO,EAAE,QAAQ,CAAC,MAAM,CAC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CACN,CAAC,CAAC,CACJ,CAAC"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/interface/shared/config/index.ts"],"names":[],"mappings":""}
@@ -0,0 +1,7 @@
1
+ export type NamedBag = readonly [
2
+ string,
3
+ Bag
4
+ ];
5
+ export type Bag = Readonly<Record<string, State | readonly [State, ...readonly unknown[]]>>;
6
+ export type State = ("error" | "warn" | "off");
7
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/interface/shared/config/rule/index.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,QAAQ,GAAG,SAAS;IAC9B,MAAM;IACN,GAAG;CACJ,CAAC;AACF,MAAM,MAAM,GAAG,GAAG,QAAQ,CAAC,MAAM,CAC/B,MAAM,EACJ,KAAK,GACL,SAAS,CAAC,KAAK,EAAE,GAAG,SAAS,OAAO,EAAE,CAAC,CAC1C,CAAC,CAAC;AACH,MAAM,MAAM,KAAK,GAAG,CAChB,OAAO,GACP,MAAM,GACN,KAAK,CACR,CAAC"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/interface/shared/config/rule/index.ts"],"names":[],"mappings":""}
@@ -0,0 +1,2 @@
1
+ export type * from "./config/index.js";
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/interface/shared/index.ts"],"names":[],"mappings":"AAAA,mBAAmB,UAAU,CAAC"}