$ npm install @putout/plugin-remove-useless-type-convertion
putout
plugin adds ability to apply shorthand properties. Renamed to @putout/remove-useless-type-conversion
npm i @putout/plugin-remove-useless-convertion
{
"rules": {
"remove-useless-convertion/named": "on",
"remove-useless-convertion/with-double-negations": "on"
}
}
const a = !![1].includes(1);
const b = Boolean([1].includes(1));
const a = [1].includes(1);
MIT
© 2010 - cnpmjs.org x YWFE | Home | YWFE