feathelp wanted
仓库指标
- 星标
- (5,457 个星标)
- PR 合并指标
- (平均合并 6天) (30 天内合并 21 个 PR)
描述
Product
axe-core
Feature Description
To my knowledge, there's currently no official way to get the list of rules that are enabled when axe.run() is called with no options.
There's an axe.getRules() method, but that returns all rules, including the ones that are disabled by default.
There is an undocumented way to get such a list today (axe._audit.rules.filter(rule => rule.enabled)).
It would be great to expose the ability to filter rules by whether they're enabled as part of the official API, for example by adding the enabled key to the rule objects returned by axe.getRules(), or by introducing a new method.