We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ee8fdad commit dc47940Copy full SHA for dc47940
tools/utils/categories.ts
@@ -25,12 +25,8 @@ for (const categoryId of categoryIds) {
25
26
for (const rule of rules) {
27
const ruleCategories = rule.meta.docs?.categories
28
- // Throw if rule does not have a category
29
- if (!ruleCategories?.length) {
30
- throw new Error(`Rule "${rule.ruleId}" does not have any category.`)
31
- }
32
33
- if (ruleCategories.includes(categoryId) && rule.meta.docs?.excludeFromConfig !== true) {
+ if (ruleCategories?.includes(categoryId)) {
34
categoriesConfig[categoryId].rules?.push(rule)
35
}
36
0 commit comments