Skip to content

Commit

Permalink
style: disable prettier for snapshots and run prettier on staged html…
Browse files Browse the repository at this point in the history
… and css files
  • Loading branch information
nerdyman committed Sep 1, 2023
1 parent 453c486 commit cc00585
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
1 change: 1 addition & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
Expand Up @@ -11,3 +11,4 @@ pnpm-lock.yaml
storybook-static/
.next/
docs/storybook/src
docs/ssr-tests/snapshots
5 changes: 4 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,10 @@
}
},
"lint-staged": {
"**/*.{js,jsx,ts,tsx}": [
"**/*.{html,css}": [
"pretty-quick --staged"
],
"**/*.{js,jsx,mjs,ts,tsx}": [
"pretty-quick --staged",
"eslint --fix"
]
Expand Down

0 comments on commit cc00585

Please sign in to comment.