Browse Source

update js config

master
Schneider 3 years ago
parent
commit
1c5bd56b8b
Signed by: schneider GPG Key ID: 3F50B02A50039F3B
  1. 8
      vim/ftplugin/javascript.vim

8
vim/ftplugin/javascript.vim

@ -2,8 +2,8 @@ let b:ale_fixers = {}
let b:ale_fixers['javascript'] = ['eslint']
let b:ale_fixers['typescript'] = ['eslint']
let b:ale_fixers['json'] = ['eslint']
let b:ale_javascript_prettier_options = '--no-semi --single-quote --tab-width 4'
let b:ale_typescript_prettier_options = '--no-semi --single-quote --tab-width 4'
let b:ale_javascript_prettier_options = '--no-semi --single-quote --tab-width 2'
let b:ale_typescript_prettier_options = '--no-semi --single-quote --tab-width 2'
let b:ale_fixers['vue'] = ['prettier']
let b:ale_vue_prettier_options = '--no-semi --single-quote'
let b:ale_fix_on_save = 1
@ -20,6 +20,7 @@ g:ale_json_eslint_use_global = 1
g:ale_json_eslint_executable = 'yarn'
g:ale_json_eslint_options = 'run eslint'
let g:jsdoc_formatter = 'tsdoc'
"autocmd bufwritepost *.js silent !standard --fix %
setlocal wildignore+=node_modules
@ -28,5 +29,6 @@ setlocal tabstop=2
setlocal shiftwidth=2
" Create jsdoc with ,h
nnoremap <leader>h :JsDoc<CR>
nnoremap <leader>h :JsDoc<CR>
nnoremap <F8> Biawait <ESC>A
nnoremap <F2> :Prettier<CR>
Loading…
Cancel
Save