lib/rules/no-trailing-underscore.js
/**
     * Check if method declaration or method property has a underscore at the end
     * @param {ASTNode} node node to evaluate
     * @returns {void}
     * @private
     */
Check if method declaration or method property has a underscore at the end
@param {ASTNode} node node to evaluate
@returns {void}
@private
Check if method declaration or method property has a underscore at the end @param { ASTNode } node node to evaluate @returns { void } @private
function checkForTrailingUnderscoreInMethod(node) {
      var identifier = node.key.name;
      var isMethod = node.type === 'MethodDefinition' || (node.type === 'Property' && node.method);
      if (typeof identifier !== 'undefined' && enforceInMethodNames && isMethod && hasTrailingUnderscore(identifier)) {
        context.report({
          data: {
            identifier,
          },
          message: "Unexpected trailing '_' in '{{identifier}}'.",
          node,
        });
      }
    }
function checkForTrailingUnderscoreInMethod ( node ) { var identifier = node . key . name ; var isMethod = node . type === 'MethodDefinition' || ( node . type === 'Property' && node . method ) ; if ( typeof identifier !== 'undefined' && enforceInMethodNames && isMethod && hasTrailingUnderscore ( identifier ) ) { context . report ( { data : { identifier , } , message : "Unexpected trailing '_' in '{{identifier}}'." , node , } ) ; } }
Check if method declaration or method property has a underscore at the end
 @param {ASTNode} node node to evaluate
 @returns {void}
 @private
Check if method declaration or method property has a underscore at the end @param { ASTNode } node node to evaluate @returns { void } @private