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

@putout/plugin-simplify-assignment NPM version

🐊Putout plugin adds ability to simplify assignment.

Install

npm i @putout/plugin-simplify-assignment -D

Rule

{
    "rules": {
        "simplify-assignment": "on"
    }
}

❌ Example of incorrect code

const {a} = {
    a: 5,
};

const [b] = [5];
const c = (() => 7)();

✅ Example of correct code

const a = 5;
const b = 5;
const c = 7;

License

MIT

Current Tags

  • 3.1.0                                ...           latest (a year ago)

4 Versions

  • 3.1.0                                ...           a year ago
  • 3.0.0                                ...           2 years ago
  • 2.0.0                                ...           2 years ago
  • 1.0.0                                ...           3 years ago
Maintainers (1)
Downloads
Total 0
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 0
Dependencies (0)
None
Dev Dependencies (6)
Dependents (1)

© 2010 - cnpmjs.org x YWFE | Home | YWFE