Allow custom function to be specified for splitting/ordering of sub-lists when using --rule-list-split
option
#294
Labels
enhancement
New feature or request
Requested here: ota-meshi/eslint-plugin-regexp#493 (comment)
Perhaps we could allow the option to be passed as a function which returns the list of rule lists and their headere.
We might want to rename the option from
splitBy
tosplit
orruleListSplit
for this (or use a separate option).Possible types we could allow for this option:
--rule-list-split meta.type
ruleListSplit: 'meta.type'
--rule-list-split meta.deprecated,meta.docs.category
(or pass multiple times?)ruleListSplit: ['meta.deprecated', 'meta.docs.category']
ruleListSplit(rules) { /* see above example */ }
This could be an alternative way to solve #291
The text was updated successfully, but these errors were encountered: