@putout/plugin-convert-label-to-object
🐊Putout plugin adds ability to find and convert 'label' to 'object'
Last updated a year ago by coderaiser .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ npm install @putout/plugin-convert-label-to-object 
SYNC missed versions from official npm registry.

@putout/plugin-convert-label-to-object NPM version

A labeled statement is any statement that is prefixed with an identifier. You can jump to this label using a break or continue statement nested within the labeled statement. (c) MDN

🐊Putout plugin adds ability to find and convert label to object.

Checkout in 🐊Putout Editor.

Install

npm i @putout/plugin-convert-label-to-object

Rule

{
    "rules": {
        "convert-label-to-object": "on"
    }
}

❌ Example of incorrect code

const a = () => ({
    hello: 'world',
    x: 'm',
});

✅ Example of correct code

const a = () => ({
    hello: 'world',
    x: 'm',
});

License

MIT

Current Tags

  • 2.0.1                                ...           latest (4 months ago)

5 Versions

  • 2.0.1                                ...           4 months ago
  • 2.0.0                                ...           4 months ago
  • 1.0.2                                ...           a year ago
  • 1.0.1                                ...           a year ago
  • 1.0.0                                ...           a year ago
Maintainers (1)
Downloads
Total 0
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 0
Dependencies (0)
None
Dev Dependencies (8)
Dependents (1)

© 2010 - cnpmjs.org x YWFE | Home | YWFE