diff --git a/.vscode/settings.json b/.vscode/settings.json index 0ec7d4a..70d965e 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -23,7 +23,7 @@ }, "rust-analyzer.linkedProjects": [ "./sql-extraction/rs/Cargo.toml", - "./vsce/test-workspace-rs/Cargo.toml" + "./vsce-test/test-workspace-rs/Cargo.toml" ], "github-actions.workflows.pinned.workflows": [ ".github/workflows/e2e-test.yaml", diff --git a/biome.json b/biome.json index 922a070..ddc5b95 100644 --- a/biome.json +++ b/biome.json @@ -17,17 +17,19 @@ "rules": { "recommended": true, "suspicious": { - "noExplicitAny": "warn" + "noExplicitAny": "warn", + "noConsoleLog": "error" }, "style": { "noParameterAssign": "warn", "noNonNullAssertion": "warn" } - } + }, + "ignore": ["test-workspace*"] }, "json": { "parser": { - "allowTrailingCommas": false, + "allowTrailingCommas": true, "allowComments": true } } diff --git a/lefthook.yaml b/lefthook.yaml index f018849..9371d61 100644 --- a/lefthook.yaml +++ b/lefthook.yaml @@ -15,9 +15,9 @@ pre-commit: biome: glob: "*.{js,ts,jsx,tsx,json,css,scss}" run: | - bunx biome check --apply {staged_files} && git add {staged_files} + pnpm biome check --apply {staged_files} && git add {staged_files} cspell: glob: "*" run: | # check file name - git diff --name-only --cached | bunx cspell --no-progress --show-context stdin --cache + git diff --name-only --cached | pnpm cspell --no-progress --show-context stdin --cache diff --git a/vsce-test/test/suite-ts/extension.test.ts b/vsce-test/test/suite-ts/extension.test.ts index 2a01dee..e357951 100644 --- a/vsce-test/test/suite-ts/extension.test.ts +++ b/vsce-test/test/suite-ts/extension.test.ts @@ -25,7 +25,6 @@ afterEach(async () => { describe("Install sqls if not found in PATH", () => { test("Should find sqls in PATH", async () => { const sqlsVersion = execSync("sqls --version").toString(); - console.log(sqlsVersion); expect(sqlsVersion).not.toBe(""); }); }); diff --git a/vsce/src/extension.ts b/vsce/src/extension.ts index 5293d17..60fd605 100644 --- a/vsce/src/extension.ts +++ b/vsce/src/extension.ts @@ -131,7 +131,6 @@ export async function activate(context: vscode.ExtensionContext) { config = undefined; } sqlNodes = await extractSqlListRs(rawContent, config?.configs); - console.log(sqlNodes); break; } default: