From 4653f2cfe48181128a47a7b52c546fbc9ac36cc5 Mon Sep 17 00:00:00 2001 From: Hank Stoever Date: Wed, 4 Sep 2024 09:43:14 -0700 Subject: [PATCH] fix: prettier --- .vscode/settings.json | 14 +++++++++++++- packages/clarigen-test/vitest.config.js | 2 +- packages/cli/test/dependencies/vitest.config.js | 10 ++++------ 3 files changed, 18 insertions(+), 8 deletions(-) diff --git a/.vscode/settings.json b/.vscode/settings.json index 3f225ea..9e7cccb 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -8,5 +8,17 @@ "**/dist/**/*": true }, "deno.enable": false, - "tailwindCSS.experimental.configFile": "./docs-site/tailwind.config.ts" + "tailwindCSS.experimental.configFile": "./docs-site/tailwind.config.ts", + "[typescript]": { + "editor.defaultFormatter": "esbenp.prettier-vscode" + }, + "[javascript]": { + "editor.defaultFormatter": "esbenp.prettier-vscode" + }, + "[typescriptreact]": { + "editor.defaultFormatter": "esbenp.prettier-vscode" + }, + "[javascriptreact]": { + "editor.defaultFormatter": "esbenp.prettier-vscode" + } } diff --git a/packages/clarigen-test/vitest.config.js b/packages/clarigen-test/vitest.config.js index c640f2a..e3ebd2d 100644 --- a/packages/clarigen-test/vitest.config.js +++ b/packages/clarigen-test/vitest.config.js @@ -21,7 +21,7 @@ import { vitestSetupFilePath, getClarinetVitestsArgv } from '@hirosystems/clarin export default defineConfig({ test: { environment: 'clarinet', // use vitest-environment-clarinet - pool: "forks", + pool: 'forks', poolOptions: { threads: { singleThread: true }, forks: { singleFork: true }, diff --git a/packages/cli/test/dependencies/vitest.config.js b/packages/cli/test/dependencies/vitest.config.js index c6a8506..5e43432 100644 --- a/packages/cli/test/dependencies/vitest.config.js +++ b/packages/cli/test/dependencies/vitest.config.js @@ -1,8 +1,7 @@ - /// -import { defineConfig } from "vite"; -import { vitestSetupFilePath, getClarinetVitestsArgv } from "@hirosystems/clarinet-sdk/vitest"; +import { defineConfig } from 'vite'; +import { vitestSetupFilePath, getClarinetVitestsArgv } from '@hirosystems/clarinet-sdk/vitest'; /* In this file, Vitest is configured so that it works seamlessly with Clarinet and the Simnet. @@ -21,8 +20,8 @@ import { vitestSetupFilePath, getClarinetVitestsArgv } from "@hirosystems/clarin export default defineConfig({ test: { - environment: "clarinet", // use vitest-environment-clarinet - pool: "forks", + environment: 'clarinet', // use vitest-environment-clarinet + pool: 'forks', poolOptions: { threads: { singleThread: true }, forks: { singleFork: true }, @@ -39,4 +38,3 @@ export default defineConfig({ }, }, }); -