From d2e1364c981dd94d9aaceee3af36d82aab12e5f2 Mon Sep 17 00:00:00 2001 From: Oleg S <97077423+RobotSail@users.noreply.github.com> Date: Wed, 1 Feb 2023 14:09:07 -0500 Subject: [PATCH] add target to fix all prettier issues Signed-off-by: Oleg S <97077423+RobotSail@users.noreply.github.com> --- package.json | 1 + packages/catalog-model/examples/apis/hello-world-trpc-api.yaml | 2 +- plugins/api-docs/dev/trpc-example-api.yaml | 2 +- 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index 912dd53b8a..e08ca3adfd 100644 --- a/package.json +++ b/package.json @@ -27,6 +27,7 @@ "create-plugin": "echo \"use 'yarn new' instead\"", "release": "node scripts/prepare-release.js && changeset version && yarn prettier --write '{packages,plugins}/*/{package.json,CHANGELOG.md}' '.changeset/*.json' && yarn install --no-immutable", "prettier:check": "prettier --check .", + "prettier:fix": "prettier --write .", "storybook": "yarn ./storybook run start", "snyk:test": "npx snyk test --yarn-workspaces --strict-out-of-sync=false", "snyk:test:package": "yarn snyk:test --include", diff --git a/packages/catalog-model/examples/apis/hello-world-trpc-api.yaml b/packages/catalog-model/examples/apis/hello-world-trpc-api.yaml index eff7efa8f1..f5807537b3 100644 --- a/packages/catalog-model/examples/apis/hello-world-trpc-api.yaml +++ b/packages/catalog-model/examples/apis/hello-world-trpc-api.yaml @@ -10,7 +10,7 @@ spec: definition: | import { z } from 'zod'; import { publicProcedure, router } from '../trpc'; - + export const apiRouter = router({ version: publicProcedure.query(() => { return { version: '0.42.0' }; diff --git a/plugins/api-docs/dev/trpc-example-api.yaml b/plugins/api-docs/dev/trpc-example-api.yaml index eff7efa8f1..f5807537b3 100644 --- a/plugins/api-docs/dev/trpc-example-api.yaml +++ b/plugins/api-docs/dev/trpc-example-api.yaml @@ -10,7 +10,7 @@ spec: definition: | import { z } from 'zod'; import { publicProcedure, router } from '../trpc'; - + export const apiRouter = router({ version: publicProcedure.query(() => { return { version: '0.42.0' };