summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNathan Herald <me@nathanherald.com>2020-07-29 18:23:00 +0200
committerNathan Herald <me@nathanherald.com>2020-11-17 17:12:04 +0100
commitb74827de99e842dc7698d8d6274486550d90f05a (patch)
tree50bc63b3576ff96722b229dba154272077872ce8
parent48fe0dd4f629bb1282277ba8a6757a84c13a4dda (diff)
downloadale-b74827de99e842dc7698d8d6274486550d90f05a.zip
Look for node packages in .yarn/sdks as well
-rw-r--r--ale_linters/typescript/tsserver.vim1
-rw-r--r--autoload/ale/handlers/eslint.vim1
2 files changed, 2 insertions, 0 deletions
diff --git a/ale_linters/typescript/tsserver.vim b/ale_linters/typescript/tsserver.vim
index 840889f3..4726e40d 100644
--- a/ale_linters/typescript/tsserver.vim
+++ b/ale_linters/typescript/tsserver.vim
@@ -9,6 +9,7 @@ call ale#linter#Define('typescript', {
\ 'name': 'tsserver',
\ 'lsp': 'tsserver',
\ 'executable': {b -> ale#node#FindExecutable(b, 'typescript_tsserver', [
+\ '.yarn/sdks/typescript/bin/tsserver',
\ 'node_modules/.bin/tsserver',
\ ])},
\ 'command': '%e',
diff --git a/autoload/ale/handlers/eslint.vim b/autoload/ale/handlers/eslint.vim
index e37d6902..b8610612 100644
--- a/autoload/ale/handlers/eslint.vim
+++ b/autoload/ale/handlers/eslint.vim
@@ -5,6 +5,7 @@ let s:executables = [
\ 'node_modules/.bin/eslint_d',
\ 'node_modules/eslint/bin/eslint.js',
\ 'node_modules/.bin/eslint',
+\ '.yarn/sdks/eslint/bin/eslint',
\]
let s:sep = has('win32') ? '\' : '/'