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.
Coverage remained the same at 100.0% when pulling dd669215f30d4ebc7819ee20d77380315e8692b7 on bodawei:issue36 into 9cdf56aac1a76fd8cf22bd5bd2e00bb9a700d6d7 on selaux:master.
Coverage remained the same at 100.0% when pulling dd669215f30d4ebc7819ee20d77380315e8692b7 on bodawei:issue36 into 9cdf56aac1a76fd8cf22bd5bd2e00bb9a700d6d7 on selaux:master.
Request
In issue 36, I wrote:
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.