Skip to content
This repository has been archived by the owner on Jun 17, 2019. It is now read-only.

buildo/tslint-no-loops

Repository files navigation

tslint-no-loops

It's 2018 and you still use loops?

Build Status npm

This is a porting of eslint-plugin-no-loops.

It disallows the use of loops (for, for-in, while, for-of).

Usage

Add tslint-no-loops as a dev dependency:

yarn add --dev tslint-no-loops
# or npm install --save-dev tslint-no-loops

Edit your tslint.json:

{
  "extends": [
    "some-other-config",
+   "tslint-no-loops"
  ],
  "rules": {
    "some-other-rule": true,
+   "no-loops": true 
  }
}