$ npm install @putout/plugin-convert-label-to-object
A labeled statement is any
statement
that is prefixed with anidentifier
. You can jump to this label using abreak
orcontinue
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.
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