6.0.0 • Published 11 months ago
babel-plugin-putout v6.0.0
babel-plugin-putout
Use 🐊Putout as babel plugin
.
Example
-const s = 'hi';
Installation
$ npm install babel-plugin-putout
Usage
Via .babelrc.json
(Recommended)
.babelrc.json
{
"plugins": [
["putout", {
"rules": {
"remove-unused-variables": false
}
}]
]
}
Via CLI
$ babel --plugins putout script.js
Via Node API
require('babel-core').transform('code', {
plugins: ['putout'],
});