@putout/plugin-remove-useless-map

1.1.0 • Public • Published

@putout/plugin-remove-useless-map NPM version Dependency Status

putout plugin adds ability to remove useless map.

Install

npm i @putout/plugin-remove-useless-map

Rule

{
    "rules": {
        "remove-useless-map": "on"
    }
}

Incorrect code example

const [str] = lines.map((line) => `hello ${line}`);

Correct code Example

const [line] = lines;
const str = `hello ${line}`;

License

MIT

Package Sidebar

Install

npm i @putout/plugin-remove-useless-map

Weekly Downloads

4,749

Version

1.1.0

License

MIT

Unpacked Size

4.08 kB

Total Files

4

Last publish

Collaborators

  • coderaiser