-
-
Notifications
You must be signed in to change notification settings - Fork 139
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #196 from prettier/shore/master-rebasing
Shore/master rebasing
- Loading branch information
Showing
5 changed files
with
20 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
TODO | ||
doc/tags | ||
node_modules | ||
.yarn_lock | ||
yarn.lock |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
augroup PrettierFileDetect | ||
autocmd BufNewFile,BufReadPost *.js setfiletype javascript | ||
autocmd BufNewFile,BufReadPost *.js,*jsx setfiletype javascript | ||
augroup end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
augroup PrettierFileDetect | ||
autocmd BufNewFile,BufReadPost *.ts setfiletype typescript | ||
autocmd BufNewFile,BufReadPost *.ts,*.tsx setfiletype typescript | ||
augroup end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
" markdown files run this as well | ||
" https://stackoverflow.com/questions/22839269/why-does-vim-default-markdown-ftplugin-source-html-ftplugins-is-there-any-ways | ||
if &ft !~# 'markdown' | ||
let b:prettier_ft_default_args = { | ||
\ 'parser': 'html', | ||
\ } | ||
endif | ||
|
||
augroup Prettier | ||
autocmd! | ||
if g:prettier#autoformat | ||
autocmd BufWritePre *.html call prettier#Autoformat() | ||
endif | ||
augroup end |