Skip to content

Commit

Permalink
Move javascript ALE config into filetype config files
Browse files Browse the repository at this point in the history
  • Loading branch information
iamrgon committed Dec 27, 2019
1 parent c129324 commit 77891d5
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 6 deletions.
7 changes: 7 additions & 0 deletions after/ftplugin/javascript.vim
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,10 @@ setlocal shiftwidth=2
setlocal softtabstop=2
setlocal tabstop=2
setlocal expandtab

"" ale linters
" Support the "standard" lint style for Javascript.
let g:ale_linters = {
\ 'javascript': ['standard'],
\}
let b:ale_fixers = {'javascript': ['standard']}
7 changes: 1 addition & 6 deletions vimrc
Original file line number Diff line number Diff line change
Expand Up @@ -128,12 +128,7 @@ let g:syntastic_loc_list_height = 5
"" syntastic filetype checkers
let g:syntastic_go_checkers = ['golint']

"" ale linters
" Support the "standard" lint style for Javascript.
let g:ale_linters = {
\ 'javascript': ['standard'],
\}
let g:ale_fixers = {'javascript': ['standard']}
"" ALE
let g:ale_lint_on_save = 1
let g:ale_fix_on_save = 1

Expand Down

0 comments on commit 77891d5

Please sign in to comment.