Support loading eslint from node_modules, re issue #118.

This commit is contained in:
w0rp committed 2016-10-23 13:04:41 +01:00
1 parent f94865c4ce
commit 36461b69d7
4 files changed
+71 -4

No files matched your search

+15
View File
@@ -0,0 +1,15 @@
Execute(Open a file some directory down):
silent! cd /testplugin/test
:e! top/middle/bottom/dummy.txt
Then(We should be able to to find the local version of a file):
AssertEqual
\ expand('%:p:h:h:h:h') . '/top/example.ini',
\ ale#util#ResolveLocalPath(bufnr('%'), 'example.ini', '/global/config.ini')
Execute(Do nothing):
Then(We shouldn't find anything for files which don't match):
AssertEqual
\ '/global/config.ini',
\ ale#util#ResolveLocalPath(bufnr('%'), 'missing.ini', '/global/config.ini')