From 391d8a98808455feae9273870f6fc911b96b011c Mon Sep 17 00:00:00 2001 From: Joe Karow <58997957+JoeKarow@users.noreply.github.com> Date: Mon, 18 Sep 2023 14:57:02 -0400 Subject: [PATCH] update prettier ignore --- .prettierrc.js | 1 - apps/app/.prettierignore | 1 - apps/app/lib/generators/translationKeys.ts | 2 +- 3 files changed, 1 insertion(+), 3 deletions(-) diff --git a/.prettierrc.js b/.prettierrc.js index 39ee4754bb..5297085fa6 100644 --- a/.prettierrc.js +++ b/.prettierrc.js @@ -1,4 +1,3 @@ -/* eslint-disable import/no-unused-modules */ /** * @template {import('@types/prettier').RequiredOptions} T * @param {T} config A generic parameter that flows through to the return type diff --git a/apps/app/.prettierignore b/apps/app/.prettierignore index 362bc5fa5b..7356184d15 100644 --- a/apps/app/.prettierignore +++ b/apps/app/.prettierignore @@ -1,6 +1,5 @@ node_modules .next -public storybook-static dist diff --git a/apps/app/lib/generators/translationKeys.ts b/apps/app/lib/generators/translationKeys.ts index 6d978aedb4..3b5ad7ef5f 100644 --- a/apps/app/lib/generators/translationKeys.ts +++ b/apps/app/lib/generators/translationKeys.ts @@ -22,7 +22,7 @@ const isObject = (data: unknown): data is Record => const countKeys = (obj: Output): number => Object.keys(flatten(obj)).length export const generateTranslationKeys = async (task: ListrTask) => { - const prettierOpts = (await prettier.resolveConfig(__dirname)) ?? undefined + const prettierOpts = (await prettier.resolveConfig(__filename)) ?? undefined const data = await prisma.translationNamespace.findMany({ where: {