Closed selaux closed 8 years ago
The readme is updated in this branch. What we could do to somehow reintroduce the full functionality is to add a flag to the match-regex
rule, called ignore-exporting
that allows you to toggle whether you want this rule to apply to exporting files.
I see the README is updated, but I was suggesting to have code to copy/paste to enable the rule.
I like that idea to ignore exporting!
Please have another try.
Small bug it looks like:
+ ignoreExporting = context.options[0] ? context.options[0] : false;
This should is the same arg as the RegExp so its always enabled. In the enable case it does work as expected
Whoops, shit happens ... sometimes. Should be fixed now.
Looks good now! Looking forward to the release
@selaux Can this be merged?
Hi,
Can we add in how to turn on the new rule in the README? i.e.
"filenames/match-exported": [2]
Also it has an unintended effect by splitting it. Rules (basically start with a lowercase letter):
The split into two rules has a bad effect: Bar.js
Since the rules are independent the first rule fails while the second works. Ideally I'd like to have the match-exported rule override the match-regex rule as I think it was originally.
The index.js rule does work now!