Skip to content

Commit

Permalink
Merge pull request #2 from MichaelDeBoey/prettier
Browse files Browse the repository at this point in the history
Add Prettier config + pre-commit hook
  • Loading branch information
tesseralis authored Nov 8, 2019
2 parents 9c33be8 + fca789b commit 6b401cf
Show file tree
Hide file tree
Showing 6 changed files with 676 additions and 6 deletions.
1 change: 1 addition & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
* text=auto eol=lf
5 changes: 5 additions & 0 deletions .huskyrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
module.exports = {
hooks: {
"pre-commit": "pretty-quick --staged",
},
}
5 changes: 5 additions & 0 deletions .prettierrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
module.exports = {
endOfLine: "lf",
semi: false,
trailingComma: "es5",
}
5 changes: 1 addition & 4 deletions docs/docs/how-shadowing-works.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,7 @@ configures two sibling themes:

```js:title=gatsby-config.js
module.exports = {
plugins: [
"gatsby-theme-tomato-blog",
"gatsby-theme-tomato-portfolio",
],
plugins: ["gatsby-theme-tomato-blog", "gatsby-theme-tomato-portfolio"],
}
```

Expand Down
4 changes: 3 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
{
"devDependencies": {
"prettier": "^1.18.2"
"husky": "^3.0.9",
"prettier": "1.18.2",
"pretty-quick": "^2.0.0"
}
}
Loading

0 comments on commit 6b401cf

Please sign in to comment.