File tree Expand file tree Collapse file tree 1 file changed +1
-10
lines changed Expand file tree Collapse file tree 1 file changed +1
-10
lines changed Original file line number Diff line number Diff line change @@ -433,7 +433,7 @@ module.exports = {
433
433
const filePath = context . getFilename ( )
434
434
const sourceCode = context . getSourceCode ( )
435
435
const _this = this
436
- const componentComments = sourceCode . getAllComments ( ) . filter ( comment => this . isVueComponentComment ( comment . value ) )
436
+ const componentComments = sourceCode . getAllComments ( ) . filter ( comment => / @ v u e \/ c o m p o n e n t / g . test ( comment . value ) )
437
437
const foundNodes = [ ]
438
438
439
439
const isDuplicateNode = ( node ) => {
@@ -460,15 +460,6 @@ module.exports = {
460
460
}
461
461
} ,
462
462
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 / @ v u e \/ c o m p o n e n t / g. test ( value )
470
- } ,
471
-
472
463
/**
473
464
* Return generator with all properties
474
465
* @param {ASTNode } node Node to check
You can’t perform that action at this time.
0 commit comments