rhyeks-tslint-rules

0.1.0 • Public • Published

rhyeks-tslint-rules@0.1.0

A few useful tslint rules.

Installation

Download node at nodejs.org and install it, if you haven't already.

npm install rhyeks-tslint-rules --save

This package is provided in these module formats:

  • CommonJS

Usage

In your tslint.json:

{
  ...
  "extends": [
    "rhyeks-tslint-rules"
  ],
  "rules": {
    "no-operator-on-type": [true, {
      "binary": [
        ["string", "string", ["+", "+=", "<", "<=", ">", ">="]],
        ["string", "number", ["+", "+="]], // order of types does not matter
      ]
    }],
  }
}

The rule by default does nothing. You must explicitly set what operators you want to disable.

Dependencies

  • tslint: An extensible static analysis linter for the TypeScript language
  • typescript: TypeScript is a language for application scale JavaScript development

Dev Dependencies

License

ISC

Readme

Keywords

none

Package Sidebar

Install

npm i rhyeks-tslint-rules

Weekly Downloads

0

Version

0.1.0

License

ISC

Unpacked Size

11.5 kB

Total Files

8

Last publish

Collaborators

  • rhyek