-
Notifications
You must be signed in to change notification settings - Fork 1.5k
JavaScript and TypeScript integration
w0rp edited this page May 10, 2019
·
4 revisions
ALE integrates with almost all JavaScript tools very well, and most things should work without requiring any configuration.
ESLint is the most popular linter for JavaScript code, and can be installed in your project like so.
# Install ESLInt with NPM
npm install eslint --save-dev
# Create an initial configuration file.
./node_modules/.bin/eslint --initAfter ESLInt is installed in your project, ALE should discover it and run it automatically.
ALE integrates with TypeScript's built-in version of a server similar to language servers with Language Server Protocol. Make sure TypeScript is installed in your project.
npm install typescriptALE will discover the location of tsserver in node_modules and run it
automatically for checking your code.
- Code fixed with ESLint doesn't respect
ale_javascript_eslint_options. #1989