@putout/plugin-remove-useless-continue
putout plugin adds ability to remove useless continue
Last updated 5 years ago by coderaiser .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install @putout/plugin-remove-useless-continue 
SYNC missed versions from official npm registry.

@putout/plugin-remove-useless-continue NPM version

The continue statement terminates execution of the statements in the current iteration of loop.

(c) MDN

????Putout plugin adds ability to remove useless continue.

Install

npm i @putout/plugin-remove-useless-continue

Rule

{
    "rules": {
        "remove-useless-continue": "on"
    }
}

❌ Example of incorrect code

for ((sign = decpt, i = 0); sign /= 10 !== 0; i++) {
    console.log('hello');
    continue;
}

✅ Example of correct code

for ((sign = decpt, i = 0); sign /= 10 !== 0; i++) {
    console.log('hello');
}

License

MIT

Current Tags

  • 3.0.0                                ...           latest (a year ago)

4 Versions

  • 3.0.0                                ...           a year ago
  • 2.0.0                                ...           3 years ago
  • 1.0.1                                ...           5 years ago
  • 1.0.0                                ...           5 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 1
Dependencies (0)
None
Dev Dependencies (6)
Dependents (1)

Copyright 2013 - present © cnpmjs.org | Home |