Skip to content

Commit ba38e5a

Browse files
committed
Remove unessesery function
1 parent 9db6569 commit ba38e5a

File tree

1 file changed

+1
-10
lines changed

1 file changed

+1
-10
lines changed

lib/utils/index.js

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -433,7 +433,7 @@ module.exports = {
433433
const filePath = context.getFilename()
434434
const sourceCode = context.getSourceCode()
435435
const _this = this
436-
const componentComments = sourceCode.getAllComments().filter(comment => this.isVueComponentComment(comment.value))
436+
const componentComments = sourceCode.getAllComments().filter(comment => /@vue\/component/g.test(comment.value))
437437
const foundNodes = []
438438

439439
const isDuplicateNode = (node) => {
@@ -460,15 +460,6 @@ module.exports = {
460460
}
461461
},
462462

463-
/**
464-
* Check whether the given comment is a Vue component based
465-
* @param {string} value Conent of comment.
466-
* @return {boolean}
467-
*/
468-
isVueComponentComment (value) {
469-
return /@vue\/component/g.test(value)
470-
},
471-
472463
/**
473464
* Return generator with all properties
474465
* @param {ASTNode} node Node to check

0 commit comments

Comments
 (0)