viberails 0.6.9 → 0.6.10

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/index.cjs CHANGED
@@ -3765,13 +3765,14 @@ function setupLintHook(projectRoot, linter) {
3765
3765
  let command;
3766
3766
  let lefthookExtra;
3767
3767
  if (isLefthook) {
3768
- command = linter === "biome" ? "npx biome check {staged_files}" : "npx eslint {staged_files}";
3768
+ command = linter === "biome" ? "npx biome check --write {staged_files}" : "npx eslint --fix {staged_files}";
3769
3769
  lefthookExtra = {
3770
- glob: linter === "biome" ? "*.{js,ts,jsx,tsx,json,css}" : "*.{js,ts,jsx,tsx}"
3770
+ glob: linter === "biome" ? "*.{js,ts,jsx,tsx,json,css}" : "*.{js,ts,jsx,tsx}",
3771
+ stage_fixed: "true"
3771
3772
  };
3772
3773
  } else {
3773
3774
  const exts = linter === "biome" ? "'*.js' '*.ts' '*.jsx' '*.tsx' '*.json' '*.css'" : "'*.js' '*.ts' '*.jsx' '*.tsx'";
3774
- const lintCmd = linter === "biome" ? "biome check" : "eslint";
3775
+ const lintCmd = linter === "biome" ? "biome check --write" : "eslint --fix";
3775
3776
  command = `git diff --cached --name-only --diff-filter=ACMR -- ${exts} | xargs npx ${lintCmd}`;
3776
3777
  }
3777
3778
  const target = addPreCommitStep(projectRoot, "lint", command, linter, lefthookExtra);
@@ -4130,7 +4131,7 @@ ${import_chalk17.default.bold("Synced:")}`);
4130
4131
  }
4131
4132
 
4132
4133
  // src/index.ts
4133
- var VERSION = "0.6.9";
4134
+ var VERSION = "0.6.10";
4134
4135
  var program = new import_commander.Command();
4135
4136
  program.name("viberails").description("Guardrails for vibe coding").version(VERSION);
4136
4137
  program.command("init", { isDefault: true }).description("Scan your project and set up enforcement guardrails").option("-y, --yes", "Non-interactive mode (use defaults, high-confidence only)").option("-f, --force", "Re-initialize, replacing existing config").action(async (options) => {