UNPKG

@putout/plugin-convert-throw

Version:

putout plugin adds ability to convert throw statement into throw expression

9 lines (5 loc) 180 B
'use strict'; module.exports.report = () => '"throw" should be used without body'; module.exports.replace = () => ({ '(__args) => {throw __a}': '(__args) => throw __a', });