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:
Donovan Glover 2022-07-29 10:36:19 -04:00
parent c887d1823d
commit 750fb7a2ba
No known key found for this signature in database
GPG Key ID: EA7408A77AE1BE65

View File

@ -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'