lib/rules/space-in-parens.js
function shouldCloserRejectSpace( left, right ) {
      if ( astUtils.isOpeningParenToken( left ) ) {
        return false;
      }

      if ( !astUtils.isTokenOnSameLine( left, right ) ) {
        return false;
      }

      if ( !sourceCode.isSpaceBetweenTokens( left, right ) ) {
        return false;
      }

      if ( ALWAYS ) {
        return isCloserException( left );
      }
      return !isCloserException( left );
    }
function shouldCloserRejectSpace( left, right ) {
      if ( astUtils.isOpeningParenToken( left ) ) {
        return false;
      }

      if ( !astUtils.isTokenOnSameLine( left, right ) ) {
        return false;
      }

      if ( !sourceCode.isSpaceBetweenTokens( left, right ) ) {
        return false;
      }

      if ( ALWAYS ) {
        return isCloserException( left );
      }
      return !isCloserException( left );
    }
Determines if an closer paren should not have an existing space after it
@param {Object} left The token before the paren
@param {Object} right The paren token
@returns {boolean} True if the paren should reject the space