|
|
@ -1,8 +1,18 @@ |
|
|
|
if has("nvim") |
|
|
|
" use prettier in ALE |
|
|
|
let g:ale_fixers = {} |
|
|
|
let g:ale_fixers['javascript'] = ['eslint', 'prettier'] |
|
|
|
let g:ale_javascript_prettier_options = '--no-semi --single-qoute' |
|
|
|
let g:ale_fixers['javascript'] = ['prettier'] |
|
|
|
let g:ale_javascript_prettier_options = '--no-semi --single-quote' |
|
|
|
let g:ale_fixers['vue'] = ['prettier'] |
|
|
|
let g:ale_vue_prettier_options = '--no-semi --single-quote' |
|
|
|
let g:ale_fix_on_save = 1 |
|
|
|
|
|
|
|
"Add extra filetypes for deoplete tern |
|
|
|
let g:deoplete#sources#ternjs#filetypes = [ |
|
|
|
\ 'jsx', |
|
|
|
\ 'javascript.jsx', |
|
|
|
\ 'vue', |
|
|
|
\ ] |
|
|
|
else |
|
|
|
" Syntastic {{{ |
|
|
|
"let g:syntastic_javascript_checkers = ['standard'] |
|
|
|