Skip to content

Commit

Permalink
Make capitalized-comments rule ignore webpack magic comments (#63)
Browse files Browse the repository at this point in the history
Co-authored-by: Sindre Sorhus <sindresorhus@gmail.com>
  • Loading branch information
yangmingshan and sindresorhus committed Jun 10, 2020
1 parent 17315d1 commit a0ae8d2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -247,7 +247,7 @@ module.exports = {
'always',
{
// You can also ignore this rule by wrapping the first word in quotes.
ignorePattern: /pragma|ignore|prettier-ignore/.source,
ignorePattern: /pragma|ignore|prettier-ignore|webpack\w+:/.source,
ignoreInlineComments: true,
ignoreConsecutiveComments: true
}
Expand Down

0 comments on commit a0ae8d2

Please sign in to comment.