Open velvolue opened 2 months ago
Can't you already handle this by using eslint overrides
?
Can't you already handle this by using eslint
overrides
?
Some use-cases can be solved with overrides
, but sadly not all. If you have multiple zones for the same target
with different exceptions, you can't represent that with overrides as they would cancel each other out.
For our use-case specifically, we managed to find a way using overrides
in the end (though not as clean as I hoped), so this issue is not a blocker for us. I still think this would be a nice feature though 🙂
also can't target
be combined with except
already?
also can't
target
be combined withexcept
already?
No, except
applies only to from
as the documentation states:
except
may be defined for a zone, allowing exception paths that would otherwise violate the relatedfrom
. Note that it does not alter the behaviour oftarget
in any way.
It would be nice if target
and from
had similar configuration. Either through execpt
/exceptTarget
as suggested here, or by allowing negated paths.
In order to support more complex use-cases, it would be really nice to be able to exclude parts of the target path.
Suggested config:
It could be implemented pretty simple by extending the
matchingZones
filter:This would also resolve #2800