From 7f7b95c56ce35e48c8336c3f622f20fefb3b791b Mon Sep 17 00:00:00 2001 From: Scott Lamb Date: Mon, 10 Feb 2025 11:20:38 -0800 Subject: [PATCH] make prettier ignore pnpm lockfile --- ui/.gitignore | 5 +---- ui/.prettierignore | 34 ++++++++++++++++++++++++++++++++++ ui/package.json | 4 ++-- 3 files changed, 37 insertions(+), 6 deletions(-) create mode 100644 ui/.prettierignore diff --git a/ui/.gitignore b/ui/.gitignore index 07f60c2..f96ebb3 100644 --- a/ui/.gitignore +++ b/ui/.gitignore @@ -9,10 +9,7 @@ # testing /coverage -# production, current path -/build - -# production, old path +# production /dist # misc diff --git a/ui/.prettierignore b/ui/.prettierignore new file mode 100644 index 0000000..ca2c2a9 --- /dev/null +++ b/ui/.prettierignore @@ -0,0 +1,34 @@ + +#------------------------------------------------------------------------------------------------------------------- +# Keep this section in sync with .gitignore +#------------------------------------------------------------------------------------------------------------------- + +# dependencies +/node_modules +/.pnp +.pnp.js +/.idea + +# testing +/coverage + +# production +/dist + +# misc +.DS_Store +.env.local +.env.development.local +.env.test.local +.env.production.local +.eslintcache + +npm-debug.log* +yarn-debug.log* +yarn-error.log* + +#------------------------------------------------------------------------------------------------------------------- +# Prettier-specific overrides +#------------------------------------------------------------------------------------------------------------------- + +pnpm-lock.yaml diff --git a/ui/package.json b/ui/package.json index 5365208..dbbb652 100644 --- a/ui/package.json +++ b/ui/package.json @@ -21,10 +21,10 @@ "react-router-dom": "^6.22.3" }, "scripts": { - "check-format": "prettier --check --ignore-path .gitignore .", + "check-format": "prettier --check --ignore-path .prettierignore .", "dev": "vite", "build": "tsc && vite build", - "format": "prettier --write --ignore-path .gitignore .", + "format": "prettier --write --ignore-path .prettierignore .", "lint": "eslint . --ext ts,tsx --report-unused-disable-directives --max-warnings 0", "preview": "vite preview", "test": "vitest"