$ npm install @putout/plugin-apply-shorthand-properties
🐊Putout plugin adds ability to apply shorthand properties.
npm i @putout/plugin-apply-shorthand-properties -D
{
"rules": {
"apply-shorthand-properties": ["on", {
"ignore": []
}]
},
"plugins": [
"apply-shorthand-properties"
]
}
const AUTH_SESSION = 'xx';
export const setSession = (session) => ({
type: AUTH_SESSION,
payload: session,
});
const type = 'xx';
export const setSession = (payload) => ({
type,
payload,
});
MIT
© 2010 - cnpmjs.org x YWFE | Home | YWFE