UNPKG

@putout/plugin-convert-assignment-to-comparison

Version:
8 lines (5 loc) 185 B
'use strict'; module.exports.report = () => 'Expected comparison instead of assignment'; module.exports.replace = () => ({ 'if (__a = __b) __body': 'if (__a === __b) __body', });