Reputation: 31
I have node, npm and eslint instaled on WSL. Can't setup Sublimelinter in Sublime Text 3 in Windows to hook up with eslint installed via bash in WSL. Which path's i should enter in linter settings in Sublime?
Upvotes: 2
Views: 1160
Reputation: 1465
Sublimetext3 works inside WSL so you can install the Sublimetext3 linux binaries and use an Xserver on Windows side to launch it. With that method, plugins that need things installed inside WSL should work.
Edit: If the plugin is simple enough you can call linux binaries from Windows Sublimetext3 (32bit) with the command
bash.exe -c "bash command"
For example, you can try modifying ESLint.py with something like this
args = {
'cmd': [
'C:\\windows\\sysnative\\bash.exe',
'-c',
'node',
linter_path,
files[0],
node_modules_path,
config_file
],
But then you will see is not that simple. You will have problems with paths like c:\myfolder being /mnt/c/myfolder on WSL and so on. At the end It's easier to just use the Ubuntu binaries.
Upvotes: -1