mirror of
https://github.com/dense-analysis/ale.git
synced 2026-11-06 20:25:57 +08:00
Get fixer tests to work on Windows
This commit is contained in:
1 parent
638ca42082
commit
5091e2de45
15 files changed
+106
-68
No files matched your search
@@ -1,6 +1,8 @@
|
||||
" Author: w0rp <devw0rp@gmail.com>
|
||||
" Description: Functions for working with eslint, for checking or fixing files.
|
||||
|
||||
let s:sep = has('win32') ? '\' : '/'
|
||||
|
||||
call ale#Set('javascript_eslint_options', '')
|
||||
call ale#Set('javascript_eslint_executable', 'eslint')
|
||||
call ale#Set('javascript_eslint_use_global', 0)
|
||||
@@ -15,7 +17,7 @@ function! ale#handlers#eslint#FindConfig(buffer) abort
|
||||
\ '.eslintrc.json',
|
||||
\ '.eslintrc',
|
||||
\]
|
||||
let l:config = ale#path#Simplify(l:path . '/' . l:basename)
|
||||
let l:config = ale#path#Simplify(join([l:path, l:basename], s:sep))
|
||||
|
||||
if filereadable(l:config)
|
||||
return l:config
|
||||
|
||||
Reference in new issue
Block a user