Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
import * as utils from 'eslint-plugin-prettier';
declare function log(...args: Array): void;
utils.showInvisibles(' some string ');
utils.generateDifferences('abc', 'def').forEach(difference => {
const {
operation,
offset,
deleteText = '',
insertText = '',
} = difference;
switch (operation) {
case 'delete':
log('delete', offset, deleteText);
break;
case 'insert':
log('insert', offset, insertText);
break;