Skip to content

Commit a0ae8d2

Browse files
yangmingshansindresorhus
andauthoredJun 10, 2020
Make capitalized-comments rule ignore webpack magic comments (#63)
Co-authored-by: Sindre Sorhus <sindresorhus@gmail.com>
1 parent 17315d1 commit a0ae8d2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎index.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -247,7 +247,7 @@ module.exports = {
247247
'always',
248248
{
249249
// You can also ignore this rule by wrapping the first word in quotes.
250-
ignorePattern: /pragma|ignore|prettier-ignore/.source,
250+
ignorePattern: /pragma|ignore|prettier-ignore|webpack\w+:/.source,
251251
ignoreInlineComments: true,
252252
ignoreConsecutiveComments: true
253253
}

0 commit comments

Comments
 (0)
Please sign in to comment.