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
primary options as a list of properties represented as either strings or regular expressions, like ["foo", /bar/, ...]
secondary options to configure the rule for all of above properties, like { ignoreVariables, ignoreFunctions, message, autoFixFunc, disableFix, etc. } - except ignoreValues allows for customization, but needs to specify same props again (duplication)
To support distinct rules for each props the schema could look as follows:
First of all, I really like using your plugin, it helps a lot to enforce usage of variables in a project. But I'm having a bit of a trouble writing complex configurations as a lot of properties end up duplicating in primary and secondary options. Looking forward to this issue being resolved.
As an idea maybe it's possible to add alternative configuration via object. It would be distinguishable from current configuration as type of primary option will be object, not an array, so it could be not a breaking change. Then configuration may look something like this:
Currently this plugin supports:
["foo", /bar/, ...]
{ ignoreVariables, ignoreFunctions, message, autoFixFunc, disableFix, etc. }
- exceptignoreValues
allows for customization, but needs to specify same props again (duplication)To support distinct rules for each props the schema could look as follows:
This leads to some questions:
The text was updated successfully, but these errors were encountered: