make prettier ignore pnpm lockfile

This commit is contained in:
Scott Lamb 2025-02-10 11:20:38 -08:00
parent c75292e43b
commit 7f7b95c56c
3 changed files with 37 additions and 6 deletions

5
ui/.gitignore vendored
View File

@ -9,10 +9,7 @@
# testing
/coverage
# production, current path
/build
# production, old path
# production
/dist
# misc

34
ui/.prettierignore Normal file
View File

@ -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

View File

@ -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"