selaux / eslint-plugin-filenames

Eslint plugin to check filenames.
318 stars 35 forks source link

Test files (MyCalculator.test.js) are not allowed #25

Closed Ronsho closed 6 years ago

Ronsho commented 6 years ago

Hey all, Great plugin, thanks for the work! I am using Jest to write unit tests for a class in Node.js. Was wondering how to make the linter to allow this kind of file names.

selaux commented 6 years ago

Hi,

the solution is to adapt your regex for filenames as explained here.