Add 'prettier' fixer support to TypeScript, CSS, SCSS and JSON (#910)

* Add prettier fixer support for typescript

* Add prettier fixer support for css and scss

* Add prettier fixer support for json

* Use getbufvar() to get &filetype
This commit is contained in:
Peter Renström
2017-09-06 16:21:26 +02:00
committed by w0rp
parent c277cdef8c
commit 03f1c1e81b
13 changed files with 126 additions and 10 deletions

View File

@@ -34,7 +34,7 @@ let s:default_registry = {
\ },
\ 'prettier': {
\ 'function': 'ale#fixers#prettier#Fix',
\ 'suggested_filetypes': ['javascript'],
\ 'suggested_filetypes': ['javascript', 'typescript', 'json', 'css', 'scss'],
\ 'description': 'Apply prettier to a file.',
\ },
\ 'prettier_eslint': {