mirror of
https://github.com/dense-analysis/ale.git
synced 2026-10-07 20:54:34 +08:00
Fix #923 Use package.json as a last resort for eslint --fix
This commit is contained in:
1 parent
8a374a69a3
commit
c3844db973
4 files changed
+27
-3
No files matched your search
@@ -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