@putout/plugin-remove-useless-async
Putout
plugin adds ability to remove useless async
. Part of @putout/plugin-promises.
Install
npm i @putout/plugin-remove-useless-async
Rule
{
"rules": {
"remove-useless-async": "on"
}
}
❌ Incorrect code example
async function show() {
console.log('hello');
}
✅ Correct code Example
function show() {
console.log('hello');
}
License
MIT