function isEmpty (node, sourceCode) {
  const start = node.startTag.range[1]
  const end = node.endTag.range[0]
  return sourceCode.text.slice(start, end).trim() === ''
}
/**
 * Check whether the given element is empty or not.
 * This ignores whitespaces, doesn't ignore comments.
 * @param {VElement} node The element node to check.
 * @param {SourceCode} sourceCode The source code object of the current context.
 * @returns {boolean} `true` if the element is empty.
 */
Check whether the given element is empty or not.
This ignores whitespaces, doesn't ignore comments.
@param {VElement} node The element node to check.
@param {SourceCode} sourceCode The source code object of the current context.
@returns {boolean} `true` if the element is empty.
Check whether the given element is empty or not . This ignores whitespaces doesn ' t ignore comments . @param { VElement } node The element node to check . @param { SourceCode } sourceCode The source code object of the current context . @returns { boolean } ` true ` if the element is empty .
function isEmpty (node, sourceCode) {
  const start = node.startTag.range[1]
  const end = node.endTag.range[0]
  return sourceCode.text.slice(start, end).trim() === ''
}
function isEmpty ( node , sourceCode ) { const start = node . startTag . range [ 1 ] const end = node . endTag . range [ 0 ] return sourceCode . text . slice ( start , end ) . trim ( ) === '' }
Check whether the given element is empty or not.
Check whether the given element is empty or not .