@putout/plugin-convert-label-to-object
v2.0.1
Published
šPutout plugin adds ability to find and convert 'label' to 'object'
Maintainers
Readme
@putout/plugin-convert-label-to-object 
A labeled statement is any
statementthat is prefixed with anidentifier. You can jump to this label using abreakorcontinuestatement 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-objectRule
{
"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
