emilgoldsmith / stylelint-custom-processor-loader

A Webpack loader for stylelint used with custom processors
MIT License
24 stars 3 forks source link

Update WebPack's test regexps to match only js and jsx files #67

Closed kepi closed 5 years ago

kepi commented 5 years ago

There is missing "end of string" in webpack's test regular expression. This leads to testing also .json files (and any other file containing ".js" anywhere in the string). See gatsbyjs/gatsby#10038 for one example of issue.

emilgoldsmith commented 5 years ago

Ahh good catch! It would indeed match .json. Thank you @kepi !