mirror of
https://github.com/dense-analysis/ale.git
synced 2025-12-07 21:24:33 +08:00
Fix eslint cwd strategy (#4781)
Change eslint cwd to follow configuration file paths.
This commit is contained in:
@@ -50,13 +50,6 @@ Execute(use-global should override other app directories):
|
||||
AssertLinterCwd ale#path#Simplify(g:dir . '/../test-files/eslint')
|
||||
AssertLinter b:executable, ale#Escape(b:executable) . b:args
|
||||
|
||||
Execute(eslint_d should be detected correctly):
|
||||
call ale#test#SetFilename('../test-files/eslint/app-with-eslint-d/testfile.js')
|
||||
|
||||
let b:executable = ale#path#Simplify(g:dir . '/../test-files/eslint/app-with-eslint-d/node_modules/.bin/eslint_d')
|
||||
AssertLinterCwd ale#path#Simplify(g:dir . '/../test-files/eslint/app-with-eslint-d')
|
||||
AssertLinter b:executable, ale#Escape(b:executable) . b:args
|
||||
|
||||
Execute(eslint.js executables should be run with node on Windows):
|
||||
call ale#test#SetFilename('../test-files/eslint/react-app/subdir/testfile.js')
|
||||
|
||||
|
||||
Reference in New Issue
Block a user