@@ -8,10 +8,8 @@ const noop = require('ember-eslint-parser/noop');
88 * {{! template-lint-disable rule1 rule2 }}
99 * {{!-- template-lint-disable rule1 rule2 --}}
1010 */
11- const MUSTACHE_COMMENT_REGEX =
12- / { { ! \s + t e m p l a t e - l i n t - d i s a b l e ( [ \s \w , / - ] * ) } } / g;
13- const MUSTACHE_BLOCK_COMMENT_REGEX =
14- / { { ! --\s * t e m p l a t e - l i n t - d i s a b l e ( [ \s \w , / - ] * ) - - } } / g;
11+ const MUSTACHE_COMMENT_REGEX = / { { ! \s + t e m p l a t e - l i n t - d i s a b l e ( [ \s \w , / - ] * ) } } / g;
12+ const MUSTACHE_BLOCK_COMMENT_REGEX = / { { ! --\s * t e m p l a t e - l i n t - d i s a b l e ( [ \s \w , / - ] * ) - - } } / g;
1513
1614// Store disable directives per file
1715const fileDisableDirectives = new Map ( ) ;
@@ -29,9 +27,7 @@ function collectMatches(line, lineIndex, directives) {
2927
3028 while ( ( match = regex . exec ( line ) ) !== null ) {
3129 const rulesPart = ( match [ 1 ] || '' ) . trim ( ) ;
32- const rules = rulesPart
33- ? rulesPart . split ( / [ \s , ] + / ) . filter ( Boolean )
34- : [ ] ; // empty = disable all
30+ const rules = rulesPart ? rulesPart . split ( / [ \s , ] + / ) . filter ( Boolean ) : [ ] ; // empty = disable all
3531
3632 // Comment is on line lineIndex+1 (1-indexed), next line is lineIndex+2.
3733 // In template ASTs, TextNodes can start on the same line as the comment
0 commit comments