Skip to content

Commit

Permalink
prettier runs for markdown on precommit now.
Browse files Browse the repository at this point in the history
  • Loading branch information
nickytonline committed Aug 12, 2018
1 parent b33c4c2 commit 97d95ea
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 24 deletions.
16 changes: 8 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,25 +22,25 @@ Added the GatbsyJS markdown page snippet.

Initial release.

-----------------------------------------------------------------------------------------------------------
---

## Gatsby snippets shortcuts

Press `Ctrl+Space` (Windows, Linux) or `Cmd+Space` (OSX) to see a list of Markdown snippets

* `ga` - creates a new article
* `gp` - creates a new page
- `ga` - creates a new article
- `gp` - creates a new page

## Working with Markdown

Here are some useful editor keyboard shortcuts:

* Split the editor (`Cmd+\` on OSX or `Ctrl+\` on Windows and Linux)
* Toggle preview (`Shift+CMD+V` on OSX or `Shift+Ctrl+V` on Windows and Linux)
- Split the editor (`Cmd+\` on OSX or `Ctrl+\` on Windows and Linux)
- Toggle preview (`Shift+CMD+V` on OSX or `Shift+Ctrl+V` on Windows and Linux)

### For more information

* [Visual Studio Code's Markdown Support](http://code.visualstudio.com/docs/languages/markdown)
* [Markdown Syntax Reference](https://help.github.com/articles/markdown-basics/)
- [Visual Studio Code's Markdown Support](http://code.visualstudio.com/docs/languages/markdown)
- [Markdown Syntax Reference](https://help.github.com/articles/markdown-basics/)

**Enjoy!**
**Enjoy!**
36 changes: 20 additions & 16 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,10 @@
"*.json": [
"prettier --write",
"git add"
],
"*.md": [
"prettier --write",
"git add"
]
},
"prettier": {
Expand All @@ -34,22 +38,22 @@
{
"language": "markdown",
"path": "./snippets/markdown-snippets.json"
},
{
"language": "javascriptreact",
"path": "./snippets/react-snippets.json"
},
{
"language": "javascript",
"path": "./snippets/react-snippets.json"
},
{
"language": "typescript",
"path": "./snippets/react-snippets.json"
},
{
"language": "typescriptreact",
"path": "./snippets/react-snippets.json"
},
{
"language": "javascriptreact",
"path": "./snippets/react-snippets.json"
},
{
"language": "javascript",
"path": "./snippets/react-snippets.json"
},
{
"language": "typescript",
"path": "./snippets/react-snippets.json"
},
{
"language": "typescriptreact",
"path": "./snippets/react-snippets.json"
}
]
},
Expand Down

0 comments on commit 97d95ea

Please sign in to comment.