Socket
Socket
Sign inDemoInstall

@putout/plugin-remove-useless-continue

Package Overview
Dependencies
389
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    @putout/plugin-remove-useless-continue

🐊Putout plugin adds ability to remove useless 'continue'


Version published
Weekly downloads
16K
decreased by-9.74%
Maintainers
1
Install size
4.05 kB
Created
Weekly downloads
 

Readme

Source

@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

Keywords

FAQs

Last updated on 01 Feb 2023

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc