@putout/plugin-simplify-assignment

3.1.0 • Public • Published

@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

Package Sidebar

Install

npm i @putout/plugin-simplify-assignment

Weekly Downloads

3,749

Version

3.1.0

License

MIT

Unpacked Size

4.13 kB

Total Files

4

Last publish

Collaborators

  • coderaiser