@next-vibe/checker 1.0.12 → 1.0.14
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.
- package/.dist/bin/vibe-runtime.js +25 -12
- package/.dist/bin/vibe-runtime.js.map +5 -5
- package/.dist/oxlint-plugins/i18n.js +4 -0
- package/.dist/oxlint-plugins/i18n.js.map +1 -0
- package/.dist/oxlint-plugins/jsx-capitalization.js +4 -0
- package/.dist/oxlint-plugins/jsx-capitalization.js.map +1 -0
- package/.dist/oxlint-plugins/restricted-syntax.js +4 -0
- package/.dist/oxlint-plugins/restricted-syntax.js.map +1 -0
- package/check.config.ts +3 -11
- package/package.json +1 -1
- package/src/app/api/[locale]/system/builder/enum.ts +1 -0
- package/src/app/api/[locale]/system/check/config/repository.ts +79 -12
- package/src/app/api/[locale]/system/check/oxlint/repository.ts +1 -1
- package/src/app/api/[locale]/system/check/test-project/bun.lock +158 -75
- package/src/app/api/[locale]/system/check/test-project/check.config.ts +3 -11
- package/src/app/api/[locale]/system/check/test-project/package.json +4 -12
- package/src/app/api/[locale]/system/check/test-project/tsconfig.json +1 -5
- package/src/app/api/[locale]/system/check/test-project/tsconfig.tsbuildinfo +1 -1
|
@@ -28108,6 +28108,7 @@ var init_enum2 = __esm(() => {
|
|
|
28108
28108
|
})(ViteBuildTypeEnum ||= {});
|
|
28109
28109
|
((BunBuildTypeEnum2) => {
|
|
28110
28110
|
BunBuildTypeEnum2["EXECUTABLE"] = "executable";
|
|
28111
|
+
BunBuildTypeEnum2["MODULE"] = "module";
|
|
28111
28112
|
})(BunBuildTypeEnum ||= {});
|
|
28112
28113
|
BuildTypeEnum = {
|
|
28113
28114
|
...ViteBuildTypeEnum,
|
|
@@ -37206,17 +37207,28 @@ class ConfigRepositoryImpl {
|
|
|
37206
37207
|
return resolve12(process.cwd(), "check.config.ts");
|
|
37207
37208
|
}
|
|
37208
37209
|
static resolveJsPluginPath(pluginPath) {
|
|
37209
|
-
|
|
37210
|
-
|
|
37211
|
-
|
|
37212
|
-
|
|
37213
|
-
|
|
37214
|
-
|
|
37215
|
-
|
|
37216
|
-
|
|
37210
|
+
if (pluginPath.startsWith("@next-vibe/checker/oxlint-plugins/")) {
|
|
37211
|
+
const fileName = pluginPath.slice("@next-vibe/checker/oxlint-plugins/".length);
|
|
37212
|
+
const baseName = fileName.replace(/\.(ts|js)$/, "");
|
|
37213
|
+
const extension = fileName.endsWith(".ts") ? "ts" : "js";
|
|
37214
|
+
if (extension === "ts") {
|
|
37215
|
+
const sourcePath = resolve12(process.cwd(), "src", "app", "api", "[locale]", "system", "check", "oxlint", "plugins", baseName, "src", "index.ts");
|
|
37216
|
+
if (existsSync11(sourcePath)) {
|
|
37217
|
+
return sourcePath;
|
|
37218
|
+
}
|
|
37219
|
+
} else {
|
|
37220
|
+
const compiledPath = resolve12(process.cwd(), "node_modules", "@next-vibe", "checker", "oxlint-plugins", fileName);
|
|
37221
|
+
if (existsSync11(compiledPath)) {
|
|
37222
|
+
return compiledPath;
|
|
37223
|
+
}
|
|
37217
37224
|
}
|
|
37225
|
+
return extension === "ts" ? resolve12(process.cwd(), "src", "app", "api", "[locale]", "system", "check", "oxlint", "plugins", baseName, "src", "index.ts") : resolve12(process.cwd(), "node_modules", "@next-vibe", "checker", "oxlint-plugins", fileName);
|
|
37226
|
+
}
|
|
37227
|
+
if (pluginPath.startsWith("/")) {
|
|
37228
|
+
return pluginPath;
|
|
37218
37229
|
}
|
|
37219
|
-
|
|
37230
|
+
const absolutePath = resolve12(process.cwd(), pluginPath);
|
|
37231
|
+
return existsSync11(absolutePath) ? absolutePath : pluginPath;
|
|
37220
37232
|
}
|
|
37221
37233
|
static resolveJsPlugins(jsPlugins) {
|
|
37222
37234
|
if (!jsPlugins || jsPlugins.length === 0) {
|
|
@@ -37537,7 +37549,8 @@ export default checkConfig.eslint?.buildFlatConfig?.(
|
|
|
37537
37549
|
error: `Template check.config.ts not found at ${templatePath}`
|
|
37538
37550
|
};
|
|
37539
37551
|
}
|
|
37540
|
-
|
|
37552
|
+
let templateContent = await fs.readFile(templatePath, "utf8");
|
|
37553
|
+
templateContent = templateContent.replace(/@next-vibe\/checker\/oxlint-plugins\/([^"']+)\.ts/g, "@next-vibe/checker/oxlint-plugins/$1.js");
|
|
37541
37554
|
await fs.writeFile(configPath, templateContent, "utf8");
|
|
37542
37555
|
logger.info("Created check.config.ts from template", {
|
|
37543
37556
|
path: configPath,
|
|
@@ -38706,7 +38719,7 @@ class OxlintRepositoryImpl {
|
|
|
38706
38719
|
} catch (parseError2) {
|
|
38707
38720
|
logger.warn("Failed to parse oxlint JSON output", {
|
|
38708
38721
|
error: parseError2 instanceof Error ? parseError2.message : String(parseError2),
|
|
38709
|
-
|
|
38722
|
+
stdout
|
|
38710
38723
|
});
|
|
38711
38724
|
return { issues };
|
|
38712
38725
|
}
|
|
@@ -55470,4 +55483,4 @@ export {
|
|
|
55470
55483
|
binaryStartTime
|
|
55471
55484
|
};
|
|
55472
55485
|
|
|
55473
|
-
//# debugId=
|
|
55486
|
+
//# debugId=726E9B216EB061AF64756E2164756E21
|