nl_tokens: statement like var x = 10 doesn t come under AssignmentExpression so needs to be checked separately
pl_tokens: function inspectVariableDeclaration ( emitted ) { let node = emitted . node , code = sourceCode . getText ( node ) ; if ( emitted . exit ) { return ; } //if a particular character is '=', check its left and right for single space for ( let i = 2 ; i < <mask> . length ; i ++ ) { if ( code [ i ] === "=" ) { ( ! / ^[^\/\s] $ / . test ( code . slice ( i - 2 , i ) ) ) && context . report ( { node : node , message : "There should be only a single space between assignment operator '=' and its left side." } ) ; ( ! / ^ [^\/\s]$ / . test ( code . slice ( i + 1 , i + 3 ) ) ) && context . report ( { node : node , message : "There should be only a single space between assignment operator '=' and its right side." } ) ; } } }