$ npm install @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.
npm i @putout/plugin-convert-label-to-object
{
"rules": {
"convert-label-to-object": "on"
}
}
const a = () => {
hello: 'world';
x: 'm';
};
const a = () => ({
hello: 'world',
x: 'm',
});
MIT
© 2010 - cnpmjs.org x YWFE | Home | YWFE