mirror of
https://github.com/dense-analysis/ale.git
synced 2026-01-27 21:32:18 +08:00
Fix #923 Use package.json as a last resort for eslint --fix
This commit is contained in:
@@ -9,7 +9,6 @@ function! s:FindConfig(buffer) abort
|
||||
\ '.eslintrc.yml',
|
||||
\ '.eslintrc.json',
|
||||
\ '.eslintrc',
|
||||
\ 'package.json',
|
||||
\]
|
||||
let l:config = ale#path#Simplify(l:path . '/' . l:basename)
|
||||
|
||||
@@ -19,7 +18,7 @@ function! s:FindConfig(buffer) abort
|
||||
endfor
|
||||
endfor
|
||||
|
||||
return ''
|
||||
return ale#path#FindNearestFile(a:buffer, 'package.json')
|
||||
endfunction
|
||||
|
||||
function! ale#fixers#eslint#Fix(buffer) abort
|
||||
|
||||
Reference in New Issue
Block a user