From dbe815de07a2ca3b4aee8f89ab3460294cb1ca3d Mon Sep 17 00:00:00 2001 From: Kai Cataldo Date: Thu, 30 Apr 2020 21:02:31 -0400 Subject: [PATCH 1/2] Fix: Remove Node.js and CommonJS category from build process --- conf/category-list.json | 1 - 1 file changed, 1 deletion(-) diff --git a/conf/category-list.json b/conf/category-list.json index 6609734950a..cd3b816b657 100644 --- a/conf/category-list.json +++ b/conf/category-list.json @@ -4,7 +4,6 @@ { "name": "Best Practices", "description": "These rules relate to better ways of doing things to help you avoid problems:" }, { "name": "Strict Mode", "description": "These rules relate to strict mode directives:" }, { "name": "Variables", "description": "These rules relate to variable declarations:" }, - { "name": "Node.js and CommonJS", "description": "These rules relate to code running in Node.js, or in browsers with CommonJS:" }, { "name": "Stylistic Issues", "description": "These rules relate to style guidelines, and are therefore quite subjective:" }, { "name": "ECMAScript 6", "description": "These rules relate to ES6, also known as ES2015:" } ], From 9bd83fa950bb81c035e1b377e735486d45a413aa Mon Sep 17 00:00:00 2001 From: Kai Cataldo Date: Thu, 30 Apr 2020 21:39:46 -0400 Subject: [PATCH 2/2] Remove categories that do not contain any rules --- Makefile.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Makefile.js b/Makefile.js index a574f25d9a9..45f45c26a3b 100644 --- a/Makefile.js +++ b/Makefile.js @@ -210,6 +210,9 @@ function generateRuleIndexPage() { } }); + // `.rules` will be `undefined` if all rules in category are deprecated. + categoriesData.categories = categoriesData.categories.filter(category => !!category.rules); + const output = yaml.safeDump(categoriesData, { sortKeys: true }); output.to(outputFile);