@putout/plugin-remove-useless-assign
🐊Putout plugin adds ability to remove useless assign
Last updated a year ago by coderaiser .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install @putout/plugin-remove-useless-assign 
SYNC missed versions from official npm registry.

@putout/plugin-remove-useless-assign NPM version

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-assign

Rule

{
    "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

Current Tags

  • 2.0.0                                ...           latest (a year ago)

3 Versions

  • 2.0.0                                ...           a year ago
  • 1.1.0                                ...           4 years ago
  • 1.0.0                                ...           4 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 1
Last Month 1
Dependencies (0)
None
Dev Dependencies (7)
Dependents (1)

Copyright 2013 - present © cnpmjs.org | Home |