removed hardcoded eslintrc configuratin location

This commit is contained in:
ManjaroOne666 2017-09-24 17:07:15 +01:00
parent 6a16760fdd
commit 842107925b
1 changed files with 4 additions and 4 deletions

8
vimrc
View File

@ -295,12 +295,12 @@ let g:ale_sign_column_always = 1
let g:ale_linters = {'scss': ['stylelint'], 'javascript': ['eslint'], 'php':['php'], 'html':['htmlhint']} let g:ale_linters = {'scss': ['stylelint'], 'javascript': ['eslint'], 'php':['php'], 'html':['htmlhint']}
let g:ale_html_htmlhint_options = '-c ~/.htmlhintrc --format=unix' let g:ale_html_htmlhint_options = '-c ~/.htmlhintrc --format=unix'
let g:ale_javascript_eslint_options = '-c ~/.config/eslint/.eslintrc.js' " let g:ale_javascript_eslint_options = '-c ~/.config/eslint/.eslintrc.js'
let g:ale_fixers = {'javascript': ['eslint']} let g:ale_fixers = {'javascript': ['eslint']}
function! ale#handlers#eslint#FindConfig(buffer) " function! ale#handlers#eslint#FindConfig(buffer)
return '/home/ray/.config/eslint/.eslintrc.js' " return '/home/ray/.config/eslint/.eslintrc.js'
endfunction " endfunction