$ npm install @putout/plugin-remove-useless-types-from-constants
🐊Putout plugin adds ability to remove useless types from constants.
Moved to @putout/plugin-typescript.
npm i @putout/plugin-remove-useless-types-from-constants -D
Rule remove-useless-types-from-constants is enabled by default for ts and tsx files, to disable add to .putout.json:
{
"rules": {
"remove-useless-types-from-constants": "off"
}
}
const x: any = 5;
const x = 5;
MIT
© 2010 - cnpmjs.org x YWFE | Home | YWFE