fixers/xo: remove unnecessary directory crawl

This commit is contained in:
Charles B Johnson
2020-07-04 14:12:14 -05:00
parent 1991313ee7
commit 23ff19a162
4 changed files with 3 additions and 14 deletions

View File

@@ -37,8 +37,7 @@ Execute(--stdin should be used when xo is new enough):
GivenCommandOutput ['0.30.0']
AssertFixer
\ {
\ 'command': ale#path#CdString(ale#path#Simplify(g:dir . '/../xo-test-files/monorepo'))
\ . (has('win32') ? 'node.exe ' : '')
\ 'command': (has('win32') ? 'node.exe ' : '')
\ . ale#Escape(ale#path#Simplify(g:dir . '/../xo-test-files/monorepo/node_modules/xo/cli.js'))
\ . ' --stdin --stdin-filename %s'
\ . ' --fix'

View File

@@ -37,8 +37,7 @@ Execute(--stdin should be used when xo is new enough):
GivenCommandOutput ['0.30.0']
AssertFixer
\ {
\ 'command': ale#path#CdString(ale#path#Simplify(g:dir . '/../xo-test-files/monorepo'))
\ . (has('win32') ? 'node.exe ' : '')
\ 'command': (has('win32') ? 'node.exe ' : '')
\ . ale#Escape(ale#path#Simplify(g:dir . '/../xo-test-files/monorepo/node_modules/xo/cli.js'))
\ . ' --stdin --stdin-filename %s'
\ . ' --fix'