Skip to content

Commit

Permalink
add pre-commit and prettier
Browse files Browse the repository at this point in the history
  • Loading branch information
Joseph Hamman committed Jun 4, 2020
1 parent 30c1826 commit c07ef0f
Show file tree
Hide file tree
Showing 4 changed files with 40 additions and 0 deletions.
25 changes: 25 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
repos:
- repo: https://github.com/prettier/prettier
rev: '2.0.5'
hooks:
- id: prettier
files: "\\.(\
css|less|scss\
|graphql|gql\
|html\
|js|jsx\
|json\
|ts|tsx\
|vue\
|yaml|yml\
)$"
- repo: https://github.com/prettier/prettier
rev: '2.0.5'
hooks:
- id: prettier
name: prettier-markdown
entry: prettier --write --parser mdx
files: "\\.(\
|md|markdown|mdown|mkdn\
|mdx\
)$"
8 changes: 8 additions & 0 deletions .prettierrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"tabWidth": 2,
"semi": false,
"singleQuote": true,
"printWidth": 80,
"quoteProps": "as-needed",
"jsxSingleQuote": true
}
6 changes: 6 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@
"theme-ui": "^0.3.1"
},
"devDependencies": {
"prettier": "2.0.5",
"redux-devtools-extension": "^2.13.8"
}
}

0 comments on commit c07ef0f

Please sign in to comment.