Skip to content

Commit

Permalink
feat(pmp): add prettier to git add hook
Browse files Browse the repository at this point in the history
  • Loading branch information
wjanaszek committed Dec 24, 2019
1 parent 043bb8d commit a0cec3b
Show file tree
Hide file tree
Showing 6 changed files with 744 additions and 2 deletions.
6 changes: 6 additions & 0 deletions .huskyrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"skipCI": true,
"hooks": {
"pre-commit": "lint-staged"
}
}
3 changes: 3 additions & 0 deletions .lintstagedrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"*.{json,css,scss,js,ts,html}": ["prettier --write", "git add"]
}
2 changes: 1 addition & 1 deletion .prettierignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Add files here to ignore them from prettier formatting

node_modules
/dist
/coverage
11 changes: 10 additions & 1 deletion .prettierrc
Original file line number Diff line number Diff line change
@@ -1,3 +1,12 @@
{
"singleQuote": true
"useTabs": false,
"printWidth": 100,
"tabWidth": 2,
"singleQuote": true,
"trailingComma": "none",
"jsxBracketSameLine": false,
"semi": true,
"arrowParens": "avoid",
"proseWrap": "preserve",
"bracketSpacing": true
}
Loading

0 comments on commit a0cec3b

Please sign in to comment.