2.0.1 β€’ Published 11 months ago

@putout/plugin-convert-label-to-object v2.0.1

Weekly downloads
-
License
MIT
Repository
github
Last release
11 months ago

@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. Merged to @putout/plugin-labels.

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

2.0.1

11 months ago

2.0.0

11 months ago

1.0.2

2 years ago

1.0.1

2 years ago

1.0.0

2 years ago