0.0.4 • Published 6 years ago

tslint-fun-times v0.0.4

Weekly downloads
3
License
Apache-2.0
Repository
github
Last release
6 years ago

tslint-fun-times

Fun lint rules for TSLint.

This project was originally forked from tslint-react.

Usage

tslint-fun-times has peer dependencies on TSLint and TypeScript.

To use these lint rules with the default preset, use configuration inheritance via the extends keyword. Here's a sample configuration where tslint.json lives adjacent to your node_modules folder:

{
  "extends": ["tslint:latest", "tslint-fun-times"],
  "rules": {
    // override tslint-fun-times rules here
    "single-element-tuple": false
  }
}

Rules

  • single-element-tuple (since 0.0.1)
    • Allows blacklisting of single element tuples (ex. [string]) and suggests they be changed to fully typed arrays (ex. string[])

Development

Quick Start (requires Node v6+, yarn v0.22+):

  1. yarn
  2. yarn verify
  3. yarn lint
0.0.4

6 years ago

0.0.3

6 years ago

0.0.2

6 years ago

0.0.1

6 years ago