Vulture/VApp/node_modules/eslint-plugin-vue/lib/utils/comments.js

22 lines
418 B
JavaScript

/**
* @param {Comment} node
* @returns {boolean}
*/
const isJSDocComment = (node) =>
node.type === 'Block' &&
node.value.charAt(0) === '*' &&
node.value.charAt(1) !== '*'
/**
* @param {Comment} node
* @returns {boolean}
*/
const isBlockComment = (node) =>
node.type === 'Block' &&
(node.value.charAt(0) !== '*' || node.value.charAt(1) === '*')
module.exports = {
isJSDocComment,
isBlockComment
}