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

1.0.2 • Public • Published

@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

Package Sidebar

Install

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

Weekly Downloads

1,514

Version

1.0.2

License

MIT

Unpacked Size

4.65 kB

Total Files

4

Last publish

Collaborators

  • coderaiser