@@ -37,7 +37,10 @@ const categories = [
37
37
'base' ,
38
38
'essential' ,
39
39
'strongly-recommended' ,
40
- 'recommended'
40
+ 'recommended' ,
41
+ 'use-with-caution' ,
42
+ 'uncategorized' ,
43
+ 'upcoming'
41
44
// Only include categories with existing rules
42
45
] . filter ( category =>
43
46
rules . some ( entry =>
@@ -63,7 +66,8 @@ const categoryTitles = {
63
66
'strongly-recommended' : 'Priority B: Strongly Recommended (Improving Readability)' ,
64
67
'recommended' : 'Priority C: Recommended (Minimizing Arbitrary Choices and Cognitive Overhead)' ,
65
68
'use-with-caution' : 'Priority D: Use with Caution (Potentially Dangerous Patterns)' ,
66
- 'uncategorized' : 'Uncategorized'
69
+ 'uncategorized' : 'Uncategorized' ,
70
+ 'upcoming' : 'Upcoming: New rules, that are not enabled in any preset config by default (Awaiting next major release to be categorized)'
67
71
}
68
72
69
73
// Throw if no title is defined for a category
@@ -79,7 +83,7 @@ const deprecatedRules = rules
79
83
let rulesTableContent = categories . map ( category => `
80
84
### ${ categoryTitles [ category ] }
81
85
${
82
- category === 'uncategorized' ? '' : `
86
+ [ 'uncategorized' , 'upcoming' ] . indexOf ( category ) > - 1 ? '' : `
83
87
Enforce all the rules in this category, as well as all higher priority rules, with:
84
88
85
89
\`\`\` json
@@ -138,7 +142,7 @@ if (deprecatedRules.length) {
138
142
}
139
143
140
144
categories . forEach ( ( category , categoryIndex ) => {
141
- if ( category === 'uncategorized' ) return
145
+ if ( [ 'uncategorized' , 'upcoming' ] . indexOf ( category ) > - 1 ) return
142
146
createRulesFile ( category , categories . slice ( 0 , categoryIndex + 1 ) )
143
147
} )
144
148
0 commit comments