@geoql/doctor-core 0.1.0-alpha.0 → 0.2.0-alpha.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,447 @@
1
+ import { extname, resolve } from "node:path";
2
+ import { existsSync } from "node:fs";
3
+ import { loadConfig } from "c12";
4
+ //#region \0rolldown/runtime.js
5
+ var __defProp = Object.defineProperty;
6
+ var __exportAll = (all, no_symbols) => {
7
+ let target = {};
8
+ for (var name in all) __defProp(target, name, {
9
+ get: all[name],
10
+ enumerable: true
11
+ });
12
+ if (!no_symbols) __defProp(target, Symbol.toStringTag, { value: "Module" });
13
+ return target;
14
+ };
15
+ //#endregion
16
+ //#region src/config/built-in.ts
17
+ const BUILT_IN_RECOMMENDED = {
18
+ include: [
19
+ "**/*.vue",
20
+ "**/*.ts",
21
+ "**/*.tsx",
22
+ "**/*.js",
23
+ "**/*.jsx"
24
+ ],
25
+ exclude: [
26
+ "node_modules",
27
+ "dist",
28
+ ".nuxt",
29
+ ".output",
30
+ "coverage"
31
+ ],
32
+ failOn: "error",
33
+ threshold: 0,
34
+ rules: {}
35
+ };
36
+ //#endregion
37
+ //#region src/config/errors.ts
38
+ var ConfigFileNotFoundError = class extends Error {
39
+ name = "ConfigFileNotFoundError";
40
+ constructor(path) {
41
+ super(`Config file not found: ${path}`);
42
+ }
43
+ };
44
+ var ConfigCycleError = class extends Error {
45
+ name = "ConfigCycleError";
46
+ constructor(chain) {
47
+ super(`Config extends cycle detected: ${chain.join(" -> ")}`);
48
+ }
49
+ };
50
+ var InvalidConfigError = class extends Error {
51
+ name = "InvalidConfigError";
52
+ };
53
+ //#endregion
54
+ //#region src/rule-registry.ts
55
+ const RULE_REGISTRY = [
56
+ {
57
+ id: "vue/no-export-in-script-setup",
58
+ severity: "error",
59
+ category: "vue-builtin",
60
+ source: "oxlint-builtin",
61
+ recommended: true
62
+ },
63
+ {
64
+ id: "vue/require-typed-ref",
65
+ severity: "warn",
66
+ category: "vue-builtin",
67
+ source: "oxlint-builtin",
68
+ recommended: true
69
+ },
70
+ {
71
+ id: "vue-doctor/no-em-dash-in-string",
72
+ severity: "warn",
73
+ category: "ai-slop",
74
+ source: "doctor",
75
+ recommended: true
76
+ },
77
+ {
78
+ id: "vue-doctor/no-destructure-props-without-to-refs",
79
+ severity: "error",
80
+ category: "ai-slop",
81
+ source: "doctor",
82
+ recommended: true
83
+ },
84
+ {
85
+ id: "vue-doctor/no-destructure-reactive-without-to-refs",
86
+ severity: "error",
87
+ category: "ai-slop",
88
+ source: "doctor",
89
+ recommended: true
90
+ },
91
+ {
92
+ id: "vue-doctor/no-non-null-assertion-on-ref-value",
93
+ severity: "warn",
94
+ category: "ai-slop",
95
+ source: "doctor",
96
+ recommended: true
97
+ },
98
+ {
99
+ id: "vue-doctor/no-imports-from-vue-when-auto-imported",
100
+ severity: "warn",
101
+ category: "ai-slop",
102
+ source: "doctor",
103
+ recommended: true
104
+ },
105
+ {
106
+ id: "vue-doctor/reactivity/watch-without-cleanup",
107
+ severity: "warn",
108
+ category: "reactivity",
109
+ source: "doctor",
110
+ recommended: true
111
+ },
112
+ {
113
+ id: "vue-doctor/reactivity/prefer-shallowRef-for-large-data",
114
+ severity: "info",
115
+ category: "reactivity",
116
+ source: "doctor",
117
+ recommended: false
118
+ },
119
+ {
120
+ id: "vue-doctor/reactivity/prefer-readonly-for-injected",
121
+ severity: "info",
122
+ category: "reactivity",
123
+ source: "doctor",
124
+ recommended: false
125
+ },
126
+ {
127
+ id: "vue-doctor/composition/prefer-script-setup-for-new-files",
128
+ severity: "warn",
129
+ category: "composition",
130
+ source: "doctor",
131
+ recommended: true
132
+ },
133
+ {
134
+ id: "vue-doctor/composition/defineProps-typed",
135
+ severity: "warn",
136
+ category: "composition",
137
+ source: "doctor",
138
+ recommended: true
139
+ },
140
+ {
141
+ id: "vue-doctor/performance/prefer-defineAsyncComponent-on-route",
142
+ severity: "info",
143
+ category: "performance",
144
+ source: "doctor",
145
+ recommended: false
146
+ },
147
+ {
148
+ id: "vue-doctor/template/v-for-has-key",
149
+ severity: "error",
150
+ category: "template",
151
+ source: "doctor",
152
+ recommended: true
153
+ },
154
+ {
155
+ id: "vue-doctor/template/v-if-v-for-precedence",
156
+ severity: "error",
157
+ category: "template",
158
+ source: "doctor",
159
+ recommended: true
160
+ },
161
+ {
162
+ id: "vue-doctor/template/v-memo-on-large-list",
163
+ severity: "warn",
164
+ category: "performance",
165
+ source: "doctor",
166
+ recommended: true
167
+ },
168
+ {
169
+ id: "vue-doctor/template/no-inline-object-prop-in-list",
170
+ severity: "warn",
171
+ category: "performance",
172
+ source: "doctor",
173
+ recommended: true
174
+ },
175
+ {
176
+ id: "vue-doctor/template/no-computed-getter-in-template-loop",
177
+ severity: "warn",
178
+ category: "template-perf",
179
+ source: "doctor",
180
+ recommended: true
181
+ },
182
+ {
183
+ id: "vue-doctor/template/avoid-deep-v-bind-spread-in-list",
184
+ severity: "info",
185
+ category: "template-perf",
186
+ source: "doctor",
187
+ recommended: true
188
+ },
189
+ {
190
+ id: "vue-doctor/sfc/no-mixed-options-and-composition-api",
191
+ severity: "warn",
192
+ category: "sfc",
193
+ source: "doctor",
194
+ recommended: true
195
+ },
196
+ {
197
+ id: "vue-doctor/build-quality/tsconfig-strict-required",
198
+ severity: "warn",
199
+ category: "build-quality",
200
+ source: "doctor",
201
+ recommended: true
202
+ },
203
+ {
204
+ id: "vue-doctor/build-quality/vue-tsc-in-devDeps",
205
+ severity: "warn",
206
+ category: "build-quality",
207
+ source: "doctor",
208
+ recommended: true
209
+ },
210
+ {
211
+ id: "vue-doctor/build-quality/no-vue-cli",
212
+ severity: "warn",
213
+ category: "build-quality",
214
+ source: "doctor",
215
+ recommended: true
216
+ },
217
+ {
218
+ id: "vue-doctor/build-quality/eslint-plugin-vue-installed",
219
+ severity: "info",
220
+ category: "build-quality",
221
+ source: "doctor",
222
+ recommended: true
223
+ },
224
+ {
225
+ id: "vue-doctor/deps/duplicate-vue-versions",
226
+ severity: "error",
227
+ category: "deps",
228
+ source: "doctor",
229
+ recommended: true
230
+ },
231
+ {
232
+ id: "vue-doctor/deps/vue-major-current",
233
+ severity: "info",
234
+ category: "deps",
235
+ source: "doctor",
236
+ recommended: false
237
+ },
238
+ {
239
+ id: "dead-code/unused-file",
240
+ severity: "warn",
241
+ category: "dead-code",
242
+ source: "doctor",
243
+ recommended: true
244
+ },
245
+ {
246
+ id: "dead-code/unused-export",
247
+ severity: "warn",
248
+ category: "dead-code",
249
+ source: "doctor",
250
+ recommended: true
251
+ },
252
+ {
253
+ id: "dead-code/unused-type-export",
254
+ severity: "info",
255
+ category: "dead-code",
256
+ source: "doctor",
257
+ recommended: true
258
+ },
259
+ {
260
+ id: "dead-code/unused-member",
261
+ severity: "info",
262
+ category: "dead-code",
263
+ source: "doctor",
264
+ recommended: true
265
+ },
266
+ {
267
+ id: "dead-code/unused-dependency",
268
+ severity: "warn",
269
+ category: "dead-code",
270
+ source: "doctor",
271
+ recommended: true
272
+ },
273
+ {
274
+ id: "dead-code/unlisted-dependency",
275
+ severity: "error",
276
+ category: "dead-code",
277
+ source: "doctor",
278
+ recommended: true
279
+ },
280
+ {
281
+ id: "dead-code/duplicate-export",
282
+ severity: "warn",
283
+ category: "dead-code",
284
+ source: "doctor",
285
+ recommended: true
286
+ }
287
+ ];
288
+ function listRules(filter = {}) {
289
+ let rules = [...RULE_REGISTRY];
290
+ if (filter.preset === "recommended") rules = rules.filter((r) => r.recommended);
291
+ if (filter.category) rules = rules.filter((r) => r.category === filter.category);
292
+ if (filter.source) rules = rules.filter((r) => r.source === filter.source);
293
+ if (filter.severity) rules = rules.filter((r) => r.severity === filter.severity);
294
+ return rules.sort((a, b) => a.id.localeCompare(b.id));
295
+ }
296
+ //#endregion
297
+ //#region src/config/presets.ts
298
+ const PRESET_NAMES = [
299
+ "minimal",
300
+ "recommended",
301
+ "strict",
302
+ "all"
303
+ ];
304
+ function isPresetName(value) {
305
+ return PRESET_NAMES.includes(value);
306
+ }
307
+ /**
308
+ * Resolve a preset name to its base ruleId -> Severity map.
309
+ *
310
+ * - `minimal` : errors only (warn/info turned off)
311
+ * - `recommended` : errors + warns (info off) — same as today's default
312
+ * - `strict` : errors + warns + infos all on at registered severity
313
+ * - `all` : alias of `strict` for now; reserved to surface every
314
+ * known ruleId regardless of preset opt-in policy
315
+ *
316
+ * The returned map is the BASE; downstream code merges user config
317
+ * `rules:` on top, then CLI `--rule` overrides on top of that.
318
+ */
319
+ function resolvePreset(name) {
320
+ const rules = {};
321
+ for (const rule of RULE_REGISTRY) if (name === "minimal") {
322
+ if (rule.severity === "error") rules[rule.id] = "error";
323
+ } else if (name === "recommended") {
324
+ if (rule.severity === "error" || rule.severity === "warn") rules[rule.id] = rule.severity;
325
+ } else rules[rule.id] = rule.severity;
326
+ return rules;
327
+ }
328
+ //#endregion
329
+ //#region src/config/validate.ts
330
+ const VALID_SEVERITIES = new Set([
331
+ "error",
332
+ "warn",
333
+ "info",
334
+ "off"
335
+ ]);
336
+ const VALID_FAIL_ON = new Set([
337
+ "error",
338
+ "warn",
339
+ "none"
340
+ ]);
341
+ function validateConfig(raw) {
342
+ if (raw === null || typeof raw !== "object" || Array.isArray(raw)) throw new InvalidConfigError("config: must be an object");
343
+ const config = raw;
344
+ if ("threshold" in config) {
345
+ const threshold = config.threshold;
346
+ if (typeof threshold !== "number" || !Number.isInteger(threshold)) throw new InvalidConfigError(`threshold: must be an integer 0..100, got ${JSON.stringify(threshold)}`);
347
+ if (threshold < 0 || threshold > 100) throw new InvalidConfigError(`threshold: must be 0..100, got ${threshold}`);
348
+ }
349
+ if ("preset" in config) {
350
+ const preset = config.preset;
351
+ if (typeof preset !== "string" || !isPresetName(preset)) throw new InvalidConfigError(`preset: must be one of 'minimal', 'recommended', 'strict', 'all', got ${JSON.stringify(preset)}`);
352
+ }
353
+ if ("failOn" in config) {
354
+ const failOn = config.failOn;
355
+ if (typeof failOn !== "string" || !VALID_FAIL_ON.has(failOn)) throw new InvalidConfigError(`failOn: must be 'error', 'warn', or 'none', got ${JSON.stringify(failOn)}`);
356
+ }
357
+ if ("include" in config) {
358
+ const include = config.include;
359
+ if (!Array.isArray(include)) throw new InvalidConfigError("include: must be an array of strings");
360
+ if (!include.every((v) => typeof v === "string")) throw new InvalidConfigError("include: must be an array of strings");
361
+ }
362
+ if ("exclude" in config) {
363
+ const exclude = config.exclude;
364
+ if (!Array.isArray(exclude)) throw new InvalidConfigError("exclude: must be an array of strings");
365
+ if (!exclude.every((v) => typeof v === "string")) throw new InvalidConfigError("exclude: must be an array of strings");
366
+ }
367
+ if ("rules" in config) {
368
+ const rules = config.rules;
369
+ if (rules === null || typeof rules !== "object" || Array.isArray(rules)) throw new InvalidConfigError("rules: must be an object");
370
+ for (const [key, value] of Object.entries(rules)) if (typeof value !== "string" || !VALID_SEVERITIES.has(value)) throw new InvalidConfigError(`rules.${key}: must be a severity ('error', 'warn', 'info', or 'off'), got ${JSON.stringify(value)}`);
371
+ }
372
+ }
373
+ //#endregion
374
+ //#region src/config/load.ts
375
+ var load_exports = /* @__PURE__ */ __exportAll({ loadDoctorConfig: () => loadDoctorConfig });
376
+ const SOURCE_MAP = {
377
+ ts: "ts",
378
+ mjs: "mjs",
379
+ js: "js",
380
+ json: "json"
381
+ };
382
+ async function loadDoctorConfig(rootDir, explicitPathOrOptions) {
383
+ const opts = typeof explicitPathOrOptions === "string" ? { explicitPath: explicitPathOrOptions } : explicitPathOrOptions ?? {};
384
+ const explicitPath = opts.explicitPath;
385
+ if (opts.presetOverride !== void 0 && !isPresetName(opts.presetOverride)) throw new InvalidConfigError(`preset: must be one of 'minimal', 'recommended', 'strict', 'all', got ${JSON.stringify(opts.presetOverride)}`);
386
+ if (explicitPath) {
387
+ if (!existsSync(resolve(rootDir, explicitPath))) throw new ConfigFileNotFoundError(explicitPath);
388
+ }
389
+ const chain = [];
390
+ const result = await loadConfig({
391
+ cwd: rootDir,
392
+ name: "doctor",
393
+ packageJson: "doctor",
394
+ rcFile: false,
395
+ globalRc: false,
396
+ ...explicitPath ? { configFile: resolve(rootDir, explicitPath) } : {},
397
+ resolve(source, options) {
398
+ const base = options.cwd;
399
+ const key = resolve(base, source);
400
+ if (chain.includes(key)) throw new ConfigCycleError([...chain, key]);
401
+ chain.push(key);
402
+ }
403
+ });
404
+ const raw = result.config;
405
+ validateConfig(raw);
406
+ let source;
407
+ let configFile;
408
+ if (explicitPath) {
409
+ source = "flag";
410
+ configFile = resolve(rootDir, explicitPath);
411
+ } else if (result._configFile) {
412
+ source = SOURCE_MAP[extname(result._configFile).slice(1)];
413
+ configFile = result._configFile;
414
+ } else if (Object.keys(raw).length > 0) {
415
+ source = "package.json";
416
+ configFile = resolve(rootDir, "package.json");
417
+ } else {
418
+ source = "built-in";
419
+ configFile = void 0;
420
+ }
421
+ const presetName = opts.presetOverride ?? raw.preset ?? "recommended";
422
+ const presetRules = resolvePreset(presetName);
423
+ const userRules = {};
424
+ const userOff = /* @__PURE__ */ new Set();
425
+ if (raw.rules && typeof raw.rules === "object") for (const [key, value] of Object.entries(raw.rules)) if (value === "off") userOff.add(key);
426
+ else userRules[key] = value;
427
+ const mergedRules = {
428
+ ...presetRules,
429
+ ...userRules
430
+ };
431
+ for (const key of userOff) delete mergedRules[key];
432
+ return {
433
+ rootDir,
434
+ include: raw.include ?? BUILT_IN_RECOMMENDED.include,
435
+ exclude: raw.exclude ?? BUILT_IN_RECOMMENDED.exclude,
436
+ failOn: raw.failOn ?? BUILT_IN_RECOMMENDED.failOn,
437
+ threshold: raw.threshold ?? BUILT_IN_RECOMMENDED.threshold,
438
+ rules: mergedRules,
439
+ preset: presetName,
440
+ source,
441
+ configFile
442
+ };
443
+ }
444
+ //#endregion
445
+ export { listRules as a, InvalidConfigError as c, RULE_REGISTRY as i, BUILT_IN_RECOMMENDED as l, load_exports as n, ConfigCycleError as o, validateConfig as r, ConfigFileNotFoundError as s, loadDoctorConfig as t };
446
+
447
+ //# sourceMappingURL=load-DiK7Zv0B.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"load-DiK7Zv0B.js","names":[],"sources":["../src/config/built-in.ts","../src/config/errors.ts","../src/rule-registry.ts","../src/config/presets.ts","../src/config/validate.ts","../src/config/load.ts"],"sourcesContent":["import type { Severity } from '../types.js';\n\nexport const BUILT_IN_RECOMMENDED: Omit<\n import('./types.js').ResolvedDoctorConfig,\n 'rootDir' | 'source' | 'configFile'\n> = {\n include: ['**/*.vue', '**/*.ts', '**/*.tsx', '**/*.js', '**/*.jsx'],\n exclude: ['node_modules', 'dist', '.nuxt', '.output', 'coverage'],\n failOn: 'error' as const,\n threshold: 0,\n rules: {} as Record<string, Severity>,\n};\n","export class ConfigFileNotFoundError extends Error {\n override name = 'ConfigFileNotFoundError' as const;\n\n constructor(path: string) {\n super(`Config file not found: ${path}`);\n }\n}\n\nexport class ConfigCycleError extends Error {\n override name = 'ConfigCycleError' as const;\n\n constructor(chain: string[]) {\n super(`Config extends cycle detected: ${chain.join(' -> ')}`);\n }\n}\n\nexport class InvalidConfigError extends Error {\n override name = 'InvalidConfigError' as const;\n}\n","import type { Severity } from './types.js';\n\nexport type RuleCategory =\n | 'ai-slop'\n | 'reactivity'\n | 'composition'\n | 'performance'\n | 'template'\n | 'template-perf'\n | 'build-quality'\n | 'deps'\n | 'dead-code'\n | 'sfc'\n | 'vue-builtin';\n\nexport type RuleSource = 'doctor' | 'oxlint-builtin' | 'eslint-plugin-vue';\n\nexport interface RegisteredRule {\n readonly id: string;\n readonly severity: Severity;\n readonly category: RuleCategory;\n readonly source: RuleSource;\n readonly recommended: boolean;\n}\n\nexport const RULE_REGISTRY: readonly RegisteredRule[] = [\n {\n id: 'vue/no-export-in-script-setup',\n severity: 'error',\n category: 'vue-builtin',\n source: 'oxlint-builtin',\n recommended: true,\n },\n {\n id: 'vue/require-typed-ref',\n severity: 'warn',\n category: 'vue-builtin',\n source: 'oxlint-builtin',\n recommended: true,\n },\n\n {\n id: 'vue-doctor/no-em-dash-in-string',\n severity: 'warn',\n category: 'ai-slop',\n source: 'doctor',\n recommended: true,\n },\n {\n id: 'vue-doctor/no-destructure-props-without-to-refs',\n severity: 'error',\n category: 'ai-slop',\n source: 'doctor',\n recommended: true,\n },\n {\n id: 'vue-doctor/no-destructure-reactive-without-to-refs',\n severity: 'error',\n category: 'ai-slop',\n source: 'doctor',\n recommended: true,\n },\n {\n id: 'vue-doctor/no-non-null-assertion-on-ref-value',\n severity: 'warn',\n category: 'ai-slop',\n source: 'doctor',\n recommended: true,\n },\n {\n id: 'vue-doctor/no-imports-from-vue-when-auto-imported',\n severity: 'warn',\n category: 'ai-slop',\n source: 'doctor',\n recommended: true,\n },\n\n {\n id: 'vue-doctor/reactivity/watch-without-cleanup',\n severity: 'warn',\n category: 'reactivity',\n source: 'doctor',\n recommended: true,\n },\n {\n id: 'vue-doctor/reactivity/prefer-shallowRef-for-large-data',\n severity: 'info',\n category: 'reactivity',\n source: 'doctor',\n recommended: false,\n },\n {\n id: 'vue-doctor/reactivity/prefer-readonly-for-injected',\n severity: 'info',\n category: 'reactivity',\n source: 'doctor',\n recommended: false,\n },\n\n {\n id: 'vue-doctor/composition/prefer-script-setup-for-new-files',\n severity: 'warn',\n category: 'composition',\n source: 'doctor',\n recommended: true,\n },\n {\n id: 'vue-doctor/composition/defineProps-typed',\n severity: 'warn',\n category: 'composition',\n source: 'doctor',\n recommended: true,\n },\n\n {\n id: 'vue-doctor/performance/prefer-defineAsyncComponent-on-route',\n severity: 'info',\n category: 'performance',\n source: 'doctor',\n recommended: false,\n },\n\n {\n id: 'vue-doctor/template/v-for-has-key',\n severity: 'error',\n category: 'template',\n source: 'doctor',\n recommended: true,\n },\n {\n id: 'vue-doctor/template/v-if-v-for-precedence',\n severity: 'error',\n category: 'template',\n source: 'doctor',\n recommended: true,\n },\n {\n id: 'vue-doctor/template/v-memo-on-large-list',\n severity: 'warn',\n category: 'performance',\n source: 'doctor',\n recommended: true,\n },\n {\n id: 'vue-doctor/template/no-inline-object-prop-in-list',\n severity: 'warn',\n category: 'performance',\n source: 'doctor',\n recommended: true,\n },\n {\n id: 'vue-doctor/template/no-computed-getter-in-template-loop',\n severity: 'warn',\n category: 'template-perf',\n source: 'doctor',\n recommended: true,\n },\n {\n id: 'vue-doctor/template/avoid-deep-v-bind-spread-in-list',\n severity: 'info',\n category: 'template-perf',\n source: 'doctor',\n recommended: true,\n },\n\n {\n id: 'vue-doctor/sfc/no-mixed-options-and-composition-api',\n severity: 'warn',\n category: 'sfc',\n source: 'doctor',\n recommended: true,\n },\n\n {\n id: 'vue-doctor/build-quality/tsconfig-strict-required',\n severity: 'warn',\n category: 'build-quality',\n source: 'doctor',\n recommended: true,\n },\n {\n id: 'vue-doctor/build-quality/vue-tsc-in-devDeps',\n severity: 'warn',\n category: 'build-quality',\n source: 'doctor',\n recommended: true,\n },\n {\n id: 'vue-doctor/build-quality/no-vue-cli',\n severity: 'warn',\n category: 'build-quality',\n source: 'doctor',\n recommended: true,\n },\n {\n id: 'vue-doctor/build-quality/eslint-plugin-vue-installed',\n severity: 'info',\n category: 'build-quality',\n source: 'doctor',\n recommended: true,\n },\n\n {\n id: 'vue-doctor/deps/duplicate-vue-versions',\n severity: 'error',\n category: 'deps',\n source: 'doctor',\n recommended: true,\n },\n\n {\n id: 'vue-doctor/deps/vue-major-current',\n severity: 'info',\n category: 'deps',\n source: 'doctor',\n recommended: false,\n },\n\n {\n id: 'dead-code/unused-file',\n severity: 'warn',\n category: 'dead-code',\n source: 'doctor',\n recommended: true,\n },\n {\n id: 'dead-code/unused-export',\n severity: 'warn',\n category: 'dead-code',\n source: 'doctor',\n recommended: true,\n },\n {\n id: 'dead-code/unused-type-export',\n severity: 'info',\n category: 'dead-code',\n source: 'doctor',\n recommended: true,\n },\n {\n id: 'dead-code/unused-member',\n severity: 'info',\n category: 'dead-code',\n source: 'doctor',\n recommended: true,\n },\n {\n id: 'dead-code/unused-dependency',\n severity: 'warn',\n category: 'dead-code',\n source: 'doctor',\n recommended: true,\n },\n {\n id: 'dead-code/unlisted-dependency',\n severity: 'error',\n category: 'dead-code',\n source: 'doctor',\n recommended: true,\n },\n {\n id: 'dead-code/duplicate-export',\n severity: 'warn',\n category: 'dead-code',\n source: 'doctor',\n recommended: true,\n },\n];\n\nexport interface ListRulesFilter {\n readonly preset?: 'recommended' | 'all';\n readonly category?: RuleCategory;\n readonly source?: RuleSource;\n readonly severity?: Severity;\n}\n\nexport function listRules(filter: ListRulesFilter = {}): RegisteredRule[] {\n let rules = [...RULE_REGISTRY];\n if (filter.preset === 'recommended') {\n rules = rules.filter((r) => r.recommended);\n }\n if (filter.category) {\n rules = rules.filter((r) => r.category === filter.category);\n }\n if (filter.source) {\n rules = rules.filter((r) => r.source === filter.source);\n }\n if (filter.severity) {\n rules = rules.filter((r) => r.severity === filter.severity);\n }\n return rules.sort((a, b) => a.id.localeCompare(b.id));\n}\n","import { RULE_REGISTRY } from '../rule-registry.js';\nimport type { Severity } from '../types.js';\n\nexport type PresetName = 'minimal' | 'recommended' | 'strict' | 'all';\n\nexport const PRESET_NAMES: readonly PresetName[] = [\n 'minimal',\n 'recommended',\n 'strict',\n 'all',\n];\n\nexport function isPresetName(value: string): value is PresetName {\n return (PRESET_NAMES as readonly string[]).includes(value);\n}\n\n/**\n * Resolve a preset name to its base ruleId -> Severity map.\n *\n * - `minimal` : errors only (warn/info turned off)\n * - `recommended` : errors + warns (info off) — same as today's default\n * - `strict` : errors + warns + infos all on at registered severity\n * - `all` : alias of `strict` for now; reserved to surface every\n * known ruleId regardless of preset opt-in policy\n *\n * The returned map is the BASE; downstream code merges user config\n * `rules:` on top, then CLI `--rule` overrides on top of that.\n */\nexport function resolvePreset(name: PresetName): Record<string, Severity> {\n const rules: Record<string, Severity> = {};\n for (const rule of RULE_REGISTRY) {\n if (name === 'minimal') {\n if (rule.severity === 'error') rules[rule.id] = 'error';\n } else if (name === 'recommended') {\n if (rule.severity === 'error' || rule.severity === 'warn') {\n rules[rule.id] = rule.severity;\n }\n } else {\n // strict | all\n rules[rule.id] = rule.severity;\n }\n }\n return rules;\n}\n","import { InvalidConfigError } from './errors.js';\nimport { isPresetName } from './presets.js';\n\nconst VALID_SEVERITIES = new Set(['error', 'warn', 'info', 'off']);\nconst VALID_FAIL_ON = new Set(['error', 'warn', 'none']);\n\nexport function validateConfig(raw: unknown): void {\n if (raw === null || typeof raw !== 'object' || Array.isArray(raw)) {\n throw new InvalidConfigError('config: must be an object');\n }\n\n const config = raw as Record<string, unknown>;\n\n if ('threshold' in config) {\n const threshold = config.threshold;\n if (typeof threshold !== 'number' || !Number.isInteger(threshold)) {\n throw new InvalidConfigError(\n `threshold: must be an integer 0..100, got ${JSON.stringify(threshold)}`,\n );\n }\n if (threshold < 0 || threshold > 100) {\n throw new InvalidConfigError(\n `threshold: must be 0..100, got ${threshold}`,\n );\n }\n }\n\n if ('preset' in config) {\n const preset = config.preset;\n if (typeof preset !== 'string' || !isPresetName(preset)) {\n throw new InvalidConfigError(\n `preset: must be one of 'minimal', 'recommended', 'strict', 'all', got ${JSON.stringify(preset)}`,\n );\n }\n }\n\n if ('failOn' in config) {\n const failOn = config.failOn;\n if (typeof failOn !== 'string' || !VALID_FAIL_ON.has(failOn)) {\n throw new InvalidConfigError(\n `failOn: must be 'error', 'warn', or 'none', got ${JSON.stringify(failOn)}`,\n );\n }\n }\n\n if ('include' in config) {\n const include = config.include;\n if (!Array.isArray(include)) {\n throw new InvalidConfigError('include: must be an array of strings');\n }\n if (!include.every((v) => typeof v === 'string')) {\n throw new InvalidConfigError('include: must be an array of strings');\n }\n }\n\n if ('exclude' in config) {\n const exclude = config.exclude;\n if (!Array.isArray(exclude)) {\n throw new InvalidConfigError('exclude: must be an array of strings');\n }\n if (!exclude.every((v) => typeof v === 'string')) {\n throw new InvalidConfigError('exclude: must be an array of strings');\n }\n }\n\n if ('rules' in config) {\n const rules = config.rules;\n if (rules === null || typeof rules !== 'object' || Array.isArray(rules)) {\n throw new InvalidConfigError('rules: must be an object');\n }\n for (const [key, value] of Object.entries(\n rules as Record<string, unknown>,\n )) {\n if (typeof value !== 'string' || !VALID_SEVERITIES.has(value)) {\n throw new InvalidConfigError(\n `rules.${key}: must be a severity ('error', 'warn', 'info', or 'off'), got ${JSON.stringify(value)}`,\n );\n }\n }\n }\n}\n","import { existsSync } from 'node:fs';\nimport { extname, resolve } from 'node:path';\nimport { loadConfig } from 'c12';\nimport { BUILT_IN_RECOMMENDED } from './built-in.js';\nimport {\n ConfigCycleError,\n ConfigFileNotFoundError,\n InvalidConfigError,\n} from './errors.js';\nimport { isPresetName, type PresetName, resolvePreset } from './presets.js';\nimport type {\n ConfigSource,\n DoctorUserConfig,\n ResolvedDoctorConfig,\n} from './types.js';\nimport { validateConfig } from './validate.js';\nimport type { Severity } from '../types.js';\n\nconst SOURCE_MAP: Record<string, ConfigSource> = {\n ts: 'ts',\n mjs: 'mjs',\n js: 'js',\n json: 'json',\n};\n\nexport interface LoadDoctorConfigOptions {\n readonly explicitPath?: string;\n readonly presetOverride?: string;\n}\n\nexport async function loadDoctorConfig(\n rootDir: string,\n explicitPathOrOptions?: string | LoadDoctorConfigOptions,\n): Promise<ResolvedDoctorConfig> {\n const opts: LoadDoctorConfigOptions =\n typeof explicitPathOrOptions === 'string'\n ? { explicitPath: explicitPathOrOptions }\n : (explicitPathOrOptions ?? {});\n const explicitPath = opts.explicitPath;\n if (opts.presetOverride !== undefined && !isPresetName(opts.presetOverride)) {\n throw new InvalidConfigError(\n `preset: must be one of 'minimal', 'recommended', 'strict', 'all', got ${JSON.stringify(opts.presetOverride)}`,\n );\n }\n if (explicitPath) {\n const absPath = resolve(rootDir, explicitPath);\n if (!existsSync(absPath)) {\n throw new ConfigFileNotFoundError(explicitPath);\n }\n }\n\n const chain: string[] = [];\n\n const result = await loadConfig<DoctorUserConfig>({\n cwd: rootDir,\n name: 'doctor',\n packageJson: 'doctor',\n rcFile: false,\n globalRc: false,\n ...(explicitPath ? { configFile: resolve(rootDir, explicitPath) } : {}),\n resolve(source, options) {\n const base = options.cwd;\n const key = resolve(base, source);\n if (chain.includes(key)) {\n throw new ConfigCycleError([...chain, key]);\n }\n chain.push(key);\n return undefined;\n },\n });\n\n const raw: DoctorUserConfig = result.config as DoctorUserConfig;\n\n validateConfig(raw);\n\n let source: ConfigSource;\n let configFile: string | undefined;\n\n if (explicitPath) {\n source = 'flag';\n configFile = resolve(rootDir, explicitPath);\n } else if (result._configFile) {\n const ext = extname(result._configFile).slice(1) as keyof typeof SOURCE_MAP;\n source = SOURCE_MAP[ext];\n configFile = result._configFile;\n } else if (Object.keys(raw).length > 0) {\n source = 'package.json';\n configFile = resolve(rootDir, 'package.json');\n } else {\n source = 'built-in';\n configFile = undefined;\n }\n\n // Resolve preset name: CLI override wins, then config file, default 'recommended'.\n const presetName: PresetName = (opts.presetOverride ??\n raw.preset ??\n 'recommended') as PresetName;\n const presetRules = resolvePreset(presetName);\n\n // User config: 'off' explicitly removes the rule from the base preset.\n const userRules: Record<string, Severity> = {};\n const userOff = new Set<string>();\n if (raw.rules && typeof raw.rules === 'object') {\n for (const [key, value] of Object.entries(raw.rules)) {\n if (value === 'off') {\n userOff.add(key);\n } else {\n userRules[key] = value as Severity;\n }\n }\n }\n\n // Merge: preset base -> user rules on top -> user 'off' removes entries.\n const mergedRules: Record<string, Severity> = {\n ...presetRules,\n ...userRules,\n };\n for (const key of userOff) delete mergedRules[key];\n\n return {\n rootDir,\n include: raw.include ?? BUILT_IN_RECOMMENDED.include,\n exclude: raw.exclude ?? BUILT_IN_RECOMMENDED.exclude,\n failOn: raw.failOn ?? BUILT_IN_RECOMMENDED.failOn,\n threshold: raw.threshold ?? BUILT_IN_RECOMMENDED.threshold,\n rules: mergedRules,\n preset: presetName,\n source,\n configFile,\n };\n}\n"],"mappings":";;;;;;;;;;;;;;;;AAEA,MAAa,uBAGT;CACF,SAAS;EAAC;EAAY;EAAW;EAAY;EAAW;EAAW;CACnE,SAAS;EAAC;EAAgB;EAAQ;EAAS;EAAW;EAAW;CACjE,QAAQ;CACR,WAAW;CACX,OAA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cAAc,cAAc,WAAW;CAG7C,MAAM,YAAsC,EAAE;CAC9C,MAAM,0BAAU,IAAI,KAAa;CACjC,IAAI,IAAI,SAAS,OAAO,IAAI,UAAU,UACpC,KAAK,MAAM,CAAC,KAAK,UAAU,OAAO,QAAQ,IAAI,MAAM,EAClD,IAAI,UAAU,OACZ,QAAQ,IAAI,IAAI;MAEhB,UAAU,OAAO;CAMvB,MAAM,cAAwC;EAC5C,GAAG;EACH,GAAG;EACJ;CACD,KAAK,MAAM,OAAO,SAAS,OAAO,YAAY;CAE9C,OAAO;EACL;EACA,SAAS,IAAI,WAAW,qBAAqB;EAC7C,SAAS,IAAI,WAAW,qBAAqB;EAC7C,QAAQ,IAAI,UAAU,qBAAqB;EAC3C,WAAW,IAAI,aAAa,qBAAqB;EACjD,OAAO;EACP,QAAQ;EACR;EACA;EACD"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@geoql/doctor-core",
3
- "version": "0.1.0-alpha.0",
3
+ "version": "0.2.0-alpha.0",
4
4
  "private": false,
5
5
  "description": "Audit engine for @geoql/vue-doctor and @geoql/nuxt-doctor. Hybrid two-pass: @vue/compiler-sfc template AST + oxlint subprocess. TypeScript, ESM.",
6
6
  "keywords": [
@@ -39,24 +39,32 @@
39
39
  "types": "./dist/index.d.ts"
40
40
  }
41
41
  },
42
+ "publishConfig": {
43
+ "access": "public"
44
+ },
42
45
  "dependencies": {
43
46
  "@vue/compiler-sfc": "^3.5.35",
44
47
  "c12": "^4.0.0-beta.5",
45
48
  "kolorist": "^1.8.0",
46
- "tinyglobby": "^0.2.16"
49
+ "oxc-parser": "0.133.0",
50
+ "oxlint": "^1.67.0",
51
+ "picocolors": "^1.1.1",
52
+ "semver": "^7.8.1",
53
+ "tinyglobby": "^0.2.16",
54
+ "@geoql/oxlint-plugin-vue-doctor": "^0.1.1-alpha.0"
47
55
  },
48
56
  "devDependencies": {
49
57
  "@types/node": "^25.9.1",
58
+ "@types/semver": "^7.7.1",
50
59
  "@vue/compiler-core": "^3.5.35",
60
+ "knip": "^6.14.2",
51
61
  "typescript": "^6.0.3",
52
62
  "vitest": "^4.1.7"
53
63
  },
54
64
  "peerDependencies": {
65
+ "knip": "^6.14.2",
55
66
  "oxlint": "^1.66.0"
56
67
  },
57
- "publishConfig": {
58
- "access": "public"
59
- },
60
68
  "scripts": {
61
69
  "lint": "vp lint src",
62
70
  "lint:fix": "vp lint src --fix",