Home

Awesome

sbt-tslint Build Status

An sbt plugin for tslint. It will statically check your typescript files for error prone code. By default linting occurs as part of your project's tslint task. Both src/main/assets/**/*.ts and src/test/assets/**/*.ts sources are linted. The rules that will be checked in your project can be specified with a tslint.json file.

Installing

To use this plugin use the addSbtPlugin command within your project's plugins.sbt (or as a global setting) i.e.:

addSbtPlugin("name.de-vries" % "sbt-tslint" % "5.7.0")

Your project's build file also needs to enable sbt-web plugins. For example with build.sbt:

lazy val root = (project in file(".")).enablePlugins(SbtWeb)

If you want to use just the tslint rules you can use this tslint.json as a starter.

You can also use different linting rule sets. The plugin provides convenience settings for the following rule sets:

To add f.i. tslint-eslint add the following to your build.sbt.

libraryDependencies ++=Seq(   "org.webjars.npm" % "tslint-eslint-rules" % "3.1.0")

(rulesDirectories in tslint) := Some(List((tslintEslintRulesDir).value))

See the setting keys for configuration options. For example: the default formatter is "prose".

History

v5.7.0

v5.1.0

v4.4.2

v4.0.2-1

v3.15.1-1

v3.15.1

v3.13.0

v0.9.7

v0.9.6

v0.9.5

v0.9.4

v0.9.3

v0.9.1_01

v0.9.1