0.1.10 • Published 4 years ago

js-langserver v0.1.10

Weekly downloads
3
License
MIT
Repository
github
Last release
4 years ago

js-langserver npm.io dependencies Status

A simple language server for JavaScript, powered by ESLint and Tern.

I made this because sourcegraph/javascript-typescript-langserver is really bad at untyped JavaScript. It uses the intellisense library that's part of TypeScript as a backend, which makes it really good at TypeScript (probably, I've never used it for TypeScript) but much worse than Tern at regular JavaScript.

Using the thing

I'm a vim user, so I just do this:

let g:LanguageClient_serverCommands = {
    \ 'javascript.jsx': ['js-langserver', '--stdio'],
    \ }

If you want to use VSCode, I think you're going to have to fork the project and add a 20-line VSCode extension. Not really sure how VSCode works.

Obligatory stupid arbitrary feature matrix table thing

js-langserverjavascript-typescript-langservervscode-eslintvscode-ternjs
Lines of code (according to tokei)1538,6181,787326
GitHub stars
Tern:white_check_mark::x::x:yes, but no completions (???)
ESLint:white_check_mark::x::white_check_mark::x:

VSCode's builtin JavaScript support is not in here because I can't figure out how to use it with vim. vscode-ternjs is here despite having 1 GitHub star because it is literally the only language server I could find that used Tern.

0.1.10

4 years ago

0.1.9

5 years ago

0.1.8

6 years ago

0.1.7

6 years ago

0.1.6

6 years ago

0.1.5

6 years ago

0.1.4

6 years ago

0.1.3

6 years ago

0.1.2

6 years ago

0.1.1

6 years ago

0.1.0

6 years ago