Better fix with ALE
This commit is contained in:
parent
7159f94e3d
commit
f4337b533d
vim
2
vim/ftplugin/javascript.vim
Normal file
2
vim/ftplugin/javascript.vim
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
let b:ale_fixers = ['prettier', 'eslint']
|
||||||
|
let g:ale_fix_on_save = 1
|
@ -1,7 +0,0 @@
|
|||||||
function! FixEsLint()
|
|
||||||
silent !clear
|
|
||||||
execute "!" . "yarn eslint --fix " . bufname("%")
|
|
||||||
execute "e!"
|
|
||||||
endfunction
|
|
||||||
|
|
||||||
au FileType javascript nmap <leader>e :call FixEsLint()<cr>
|
|
Loading…
x
Reference in New Issue
Block a user