Skip to content

Commit

Permalink
build: add prettier
Browse files Browse the repository at this point in the history
  • Loading branch information
blaise-favor committed May 16, 2024
1 parent 03228d7 commit 2b8ab9f
Show file tree
Hide file tree
Showing 5 changed files with 531 additions and 26 deletions.
1 change: 1 addition & 0 deletions .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
npx lint-staged
3 changes: 3 additions & 0 deletions .lintstagedrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"*.js": ["prettier --write"]
}
9 changes: 9 additions & 0 deletions .prettierrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"tabWidth": 2,
"singleQuote": true,
"semi": true,
"trailingComma": "all",
"htmlWhitespaceSensitivity": "ignore",
"endOfLine": "lf",
"useTabs": false
}
Loading

0 comments on commit 2b8ab9f

Please sign in to comment.