An Eclipse plug-in for linting TypeScript code using tslint.
- Install Node.js.
- Open Eclipse and go to
Help
-Install New Software
. - Add the update site: http://eclipse-update.palantir.com/eclipse-tslint.
- Reboot Eclipse.
- From the
Navigator
view, right-click on a project containing TypeScript files. - Select
Configure
-Enable TSLint Builder
.
The plugin expects the configuration file tslint.json
to be present in the project's root directory. If no such file is present, then no linting is performed on TypeScript files.
git clone git@github.com:palantir/eclipse-tslint.git
- Run
npm install --prefix com.palantir.tslint com.palantir.tslint
in the root directory of the project to install npm dependencies. - In Eclipse, right-click on the
eclipse-tslint
project and selectDebug As
-Eclipse Application
.
grunt
mvn clean install
The update site will be in com.palantir.tslint.p2updatesite/target/repository.