It's 2018 and you still use loops?
This is a porting of eslint-plugin-no-loops.
It disallows the use of loops (for, for-in, while, for-of).
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
}
}