selaux / eslint-plugin-filenames

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

#36: Feature Request: Do not apply match-exported if file is index.js #37

Open bodawei opened 5 years ago

bodawei commented 5 years ago

Request

In issue 36, I wrote:

The organization I work for has a rule very similar to what match-exported provides, except that we do not want exports from an index.js file to need to match the directory name. We'd love to have something like another option to match-exported which would allow us to ask that it ignore index.js files.

Offered Implementation

This PR include an implementation that addresses the request. It adds an additional option that, when set to true, will cause match-exported to ignore index.js files.

coveralls commented 5 years ago

Coverage Status

Coverage remained the same at 100.0% when pulling dd669215f30d4ebc7819ee20d77380315e8692b7 on bodawei:issue36 into 9cdf56aac1a76fd8cf22bd5bd2e00bb9a700d6d7 on selaux:master.

coveralls commented 5 years ago

Coverage Status

Coverage remained the same at 100.0% when pulling dd669215f30d4ebc7819ee20d77380315e8692b7 on bodawei:issue36 into 9cdf56aac1a76fd8cf22bd5bd2e00bb9a700d6d7 on selaux:master.

bodawei commented 5 years ago

Nudge!