Skip to content

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.

Linter installation guides

ESLint

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 --init

After ESLInt is installed in your project, ALE should discover it and run it automatically.

tsserver (TypeScript)

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 typescript

ALE will discover the location of tsserver in node_modules and run it automatically for checking your code.

Outstanding issues

  • Code fixed with ESLint doesn't respect ale_javascript_eslint_options. #1989

Clone this wiki locally