Michael Treat
Michael Treat

Reputation: 519

ESlint for VSCode without using node or alternative?

We are teaching fundamental JavaScript to beginners and have recently switched from the Atom editor to VSCode. The problem with this is that VSCode requires us to install node and then npm install eslint, whereas in Atom, we can use the atom package manager to download a linter-eslint package that we can then point directly at a gloabl .eslint file. While it's not a huge deal to install and use node, we are trying to reserve all things node related for a later more advanced class so we can focus on fundamentals.

Is there a way to use ESlint in VSCode without downloading and installing it through node, or is there another alternative extension that we can use that would give us similar functionality?

Upvotes: 5

Views: 4506

Answers (1)

Paul
Paul

Reputation: 36339

There is an eslint extension for VS Code that MS supports: https://github.com/Microsoft/vscode-eslint

FWIW, I found that by googling "ESLint vscode". ;)

Given that the MS supported version still wants you to install eslint via npm, this is probably the only way to go.

FWIW, Atom itself is written in Node, so I'm guessing that it's doing the same thing, just hidden behind some UI snazziness.

Upvotes: 0

Related Questions