No release in over 3 years
Low commit activity in last 3 years
Pronto runner for TSLint, pluggable linting utility for TypeScript
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

< 13, >= 11.0
~> 3.4
>= 9

Runtime

~> 0.9.1
 Project Readme

Pronto runner for TSLint (using tslint from npm)

forked from doits/pronto-eslint_npm

Gem Version Build Status Code Climate Issue Count Dependency Status Coverage Status Inline docs

Pronto runner for TSlint, pluggable linting utility for TypeScript. What is Pronto?

Uses official tslint executable installed by npm.

Prerequisites

You'll need to install tslint by yourself with npm. If tslint is in your PATH, everything will simply work, otherwise you have to provide pronto-tslint-npm your custom executable path (see below).

Installation

First, ensure you have node with npm installed, then install tslint using the following command in your terminal:

npm install -g tslint

Second, ensure you have pronto installed, if you have not already:

gem install pronto

Finally, install this gem, using the following command

gem install pronto-tslint_npm

Configuration of TSLint

Configuring TSLint via tslint.json will work just fine with pronto-eslint_npm.

Configuration of TSLintNPM

pronto-tslint-npm can be configured by placing a .pronto_tslint_npm.yml inside the directory where pronto is run.

Following options are available:

Option Meaning Default
tslint_executable TSLint executable to call. tslint (calls tslint in PATH)
files_to_lint What files to lint. Absolute path of offending file will be matched against this Regexp. (\.ts)$

Example configuration to call custom eslint executable and only lint files ending with .my_custom_extension:

# .pronto_tslint_npm.yml
tslint_executable: '/my/custom/node/path/.bin/tslint'
files_to_lint: '\.my_custom_extension$'