An Eclipse plug-in for linting TypeScript code.
Java TypeScript JavaScript
Latest commit 4137e62 Nov 11, 2016 @nmiyake nmiyake committed with adidahiya Update LICENSE (#27)
Use default Apache 2.0 LICENSE file provided by GitHub.com

README.md

Eclipse TSLint Plug-in

An Eclipse plug-in for linting TypeScript code using tslint.

Installation

  1. Install Node.js.
  2. Open Eclipse and go to Help-Install New Software.
  3. Add the update site: http://eclipse-update.palantir.com/eclipse-tslint.
  4. Reboot Eclipse.

Enabling the Builder

  1. From the Navigator view, right-click on a project containing TypeScript files.
  2. Select Configure-Enable TSLint Builder.

Configuration File

The plugin expects the configuration file tslint.json to be present in the project's root directory. If no such file is present, then create .settings/com.palantir.tslint.prefs and add configPath=<path to tslint.json>.

Development

  1. git clone git@github.com:palantir/eclipse-tslint.git
  2. Run npm install --prefix com.palantir.tslint com.palantir.tslint in the root directory of the project to install npm dependencies.
  3. In Eclipse, right-click on the eclipse-tslint project and select Debug As - Eclipse Application.

Building the Eclipse Update Site

grunt
mvn clean install
The update site will be in com.palantir.tslint.p2updatesite/target/repository.