forked from extern/nix-config
vim(ale): Fix linting with standardjs
Previously ale would show an error message when dealing with JavaScript files without an .eslintrc. That has now been fixed and standardjs works as intended.
This commit is contained in:
parent
c887d1823d
commit
750fb7a2ba
@ -15,6 +15,10 @@ endif
|
||||
|
||||
let g:ale_disable_lsp = 1
|
||||
|
||||
autocmd FileType javascript let g:ale_linters = {
|
||||
\ 'javascript': glob('.eslintrc*', '.;') != '' ? [ 'eslint', 'flow' ] : [ 'standard', 'flow' ],
|
||||
\}
|
||||
|
||||
call plug#begin('~/.vim/plugged')
|
||||
Plug 'dylanaraps/wal.vim' " Color scheme
|
||||
Plug 'preservim/nerdtree'
|
||||
|
Loading…
Reference in New Issue
Block a user