Use `include` and `exclude` to filter rule triggers
mainFor any selector option (like words, callees, etc.), you can use include and exclude to control validation. These fields accept arrays of strings treated as regular expressions.
Logic Rules:
- If both
includeandexcludeare provided, a match must satisfy both conditions to be validated/ignored. - If both are provided, the string will be validated (subject to the regex logic).
Example: words selector
If you add .*foo.* to the exclude list, any string containing 'foo' will be allowed regardless of where it appears:
method('afoo'); // Allowed
const message = 'foob'; // Allowed
<Component value="foo" /> // Allowed