UNPKG

eslint-plugin-vue

Version:

Official ESLint plugin for Vue.js

22 lines (19 loc) 418 B
/** * @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 }