Skip to content

Commit e052fe7

Browse files
authored
add prettier (#30)
1 parent 64d6d61 commit e052fe7

141 files changed

Lines changed: 429 additions & 16033 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.husky/pre-commit

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
#!/bin/bash
2+
if test $(git rev-parse --abbrev-ref HEAD) = "main" ; then
3+
echo "Cannot commit on main"
4+
exit 1
5+
fi
6+
7+
yarn lint-staged

.lintstagedrc.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
"*.{js,jsx,ts,tsx,md,mdx,json,jsonc,html,graphql,yml,yaml}":
2+
- prettier --write

.prettierignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
**/node_modules
2+
.yarn/
3+
app/public/
7.49 KB
Binary file not shown.
3.81 KB
Binary file not shown.
6.89 KB
Binary file not shown.
3.07 KB
Binary file not shown.
4.66 KB
Binary file not shown.
7.01 KB
Binary file not shown.
49.9 KB
Binary file not shown.

0 commit comments

Comments
 (0)