@putout/plugin-remove-useless-assign
v2.0.0
Published
šPutout plugin adds ability to remove useless assign
Maintainers
Readme
@putout/plugin-remove-useless-assign 
The
Object.assign()method copies all enumerable own properties from one or more source objects to a target object. It returns the modified target object.(c) MDN
šPutout plugin adds ability to remove useless assign.
Check it out in šPutout Editor.
Install
npm i @putout/plugin-remove-useless-assignRule
{
"rules": {
"remove-useless-assign": "on"
}
}ā Example of incorrect code
const load = stub().rejects(assign(Error('LOAD USED')));ā Example of correct code
const load = stub().rejects(Error('LOAD USED'));License
MIT
