You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have searched existing issues to ensure the feature has not already been requested
🚀 Feature Proposal
I'd like to match only some specific paths, ignoring every other files.
I suggest two things:
Add a matchPattern that process the file only if it matches the pattern. If there is also an ignore pattern, I guess the order of priority should be match, ignore (if the route is matching, then check if it's ignored)
Add the ability for matchPattern and ignorePattern to provide both Regex OR function that return a boolean OR string contained in the path.
Prerequisites
🚀 Feature Proposal
I'd like to match only some specific paths, ignoring every other files.
I suggest two things:
matchPattern
that process the file only if it matches the pattern. If there is also an ignore pattern, I guess the order of priority should bematch, ignore
(if the route is matching, then check if it's ignored)matchPattern
andignorePattern
to provide both Regex OR function that return a boolean OR string contained in the path.ℹ️ I can do the PR if that's okay.
Motivation
Here's my architecture:
I could use the
ignorePattern
regex, but I feel like it's not a super intuitive DX.Example
Here's what my example could look like:
The text was updated successfully, but these errors were encountered: