Skip to content

Latest commit

 

History

History

README.md

@putout/plugin-remove-useless-type-conversion NPM version Dependency Status

putout plugin adds ability to apply shorthand properties.

Install

npm i @putout/plugin-remove-useless-type-conversion

Rule

{
    "rules": {
        "remove-useless-type-conversion/named": "on",
        "remove-useless-type-conversion/with-double-negations": "on"
    }
}

❌ Incorrect code example

const a = !![1].includes(1);
const b = Boolean([1].includes(1));

✅ Correct code Example

const a = [1].includes(1);

License

MIT