Skip to content

Commit 4c0b028

Browse files
author
Kai Cataldo
authoredMay 8, 2020
Fix: remove Node.js and CommonJS category from build process (#13242)
* Fix: Remove Node.js and CommonJS category from build process * Remove categories that do not contain any rules
1 parent 401a687 commit 4c0b028

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed
 

‎Makefile.js

+3
Original file line numberDiff line numberDiff line change
@@ -210,6 +210,9 @@ function generateRuleIndexPage() {
210210
}
211211
});
212212

213+
// `.rules` will be `undefined` if all rules in category are deprecated.
214+
categoriesData.categories = categoriesData.categories.filter(category => !!category.rules);
215+
213216
const output = yaml.safeDump(categoriesData, { sortKeys: true });
214217

215218
output.to(outputFile);

‎conf/category-list.json

-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44
{ "name": "Best Practices", "description": "These rules relate to better ways of doing things to help you avoid problems:" },
55
{ "name": "Strict Mode", "description": "These rules relate to strict mode directives:" },
66
{ "name": "Variables", "description": "These rules relate to variable declarations:" },
7-
{ "name": "Node.js and CommonJS", "description": "These rules relate to code running in Node.js, or in browsers with CommonJS:" },
87
{ "name": "Stylistic Issues", "description": "These rules relate to style guidelines, and are therefore quite subjective:" },
98
{ "name": "ECMAScript 6", "description": "These rules relate to ES6, also known as ES2015:" }
109
],

0 commit comments

Comments
 (0)
Please sign in to comment.