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
As a Code PushUp user,
I want to use a prefix or regex/glob pattern to specify the slug of an audit configuration
So that I can target ESLint rules with custom options like @typescript-eslint/naming-convention without having to specify their hash suffix, including ESLint rules that are commonly project-specific like @angular-eslint/component-selector
I can enable an ESLint rule that has options specified, simply by specifying the rule slug as a prefix, glob pattern, or regular expression in the configuration, for example:
typescript-eslint-naming-convention
typescript-eslint-naming-convention-
typescript-eslint-naming-convention-*
typescript-eslint-naming-convention-[a-f0-9]+
I can enable an ESLint rule that has project-specific options specified, simply by specifying the rule slug as a prefix, glob pattern, or regular expression in the configuration, for example:
angular-eslint-component-selector
angular-eslint-component-selector-
angular-eslint-component-selector-*
angular-eslint-component-selector-[a-f0-9]+
Implementation details
No response
The text was updated successfully, but these errors were encountered:
Thanks for the suggestion, I agree that having to include the options hash is inconvenient for configuration 👍
In general, having to configure custom ESLint groups using audits slugs adds unnecessary complexity. I've proposed an alternative configuration where the rule IDs from ESLint can be used, and any custom options will be matched automatically. I've also taken the wildcard suggestion one step further and proposed to use it for arbitrary rule matching (e.g. @angular-eslint/*).
User story
As a Code PushUp user,
I want to use a prefix or regex/glob pattern to specify the slug of an audit configuration
So that I can target ESLint rules with custom options like
@typescript-eslint/naming-convention
without having to specify their hash suffix, including ESLint rules that are commonly project-specific like@angular-eslint/component-selector
Example ouput of
code-pushup print-config
.Acceptance criteria
typescript-eslint-naming-convention
typescript-eslint-naming-convention-
typescript-eslint-naming-convention-*
typescript-eslint-naming-convention-[a-f0-9]+
angular-eslint-component-selector
angular-eslint-component-selector-
angular-eslint-component-selector-*
angular-eslint-component-selector-[a-f0-9]+
Implementation details
No response
The text was updated successfully, but these errors were encountered: