nl_tokens: Returns false if node is a require expression where the module path ends with . js .
pl_tokens: function checkCallExpression ( node ) { var callee = node . callee ; if ( callee . type === 'Identifier' && callee . name === 'require' ) { var pathNode = node . arguments [ 0 ] ; if ( pathNode . <mask> === 'Literal' ) { var p = pathNode . value ; // Only check relatively-imported modules. if ( startswith ( p , [ '/' , './' , '../' ] ) ) { return ! endswith ( p , '.js' ) ; } } } return true ; }