nl_tokens: Copyright 2017 - present Callstack . All rights reserved .
pl_tokens: function fixRequireIssue ( ) { return { visitor : { AssignmentExpression ( path ) { if ( path . node . operator === '=' ) { const { left } = path . <mask> ; if ( left . type !== 'MemberExpression' ) { return ; } const { object } = left ; if ( // require.xxx ( object . type === 'Identifier' && object . name === 'require' ) || // (require: any).xxx ( object . type === 'TypeCastExpression' && object . expression . name === 'require' ) ) { path . remove ( ) ; } } } , } , } ; }