From 28be1c9851125034e9d0d96d21b074597a84497a Mon Sep 17 00:00:00 2001 From: "weiran.zsd" Date: Sun, 26 May 2019 20:56:08 +0800 Subject: [PATCH 1/2] Chore: remove incorrect comment it is no longer needed, as #11742 get merged. :) --- lib/linter/linter.js | 2 -- 1 file changed, 2 deletions(-) diff --git a/lib/linter/linter.js b/lib/linter/linter.js index c97822f269c..51414c1fe93 100644 --- a/lib/linter/linter.js +++ b/lib/linter/linter.js @@ -934,8 +934,6 @@ function getEnv(slots, envId) { function getRule(slots, ruleId) { return ( (slots.lastConfigArray && slots.lastConfigArray.pluginRules.get(ruleId)) || - - // This returns the stub for missing rules if the rule does not exist. slots.ruleMap.get(ruleId) ); } From 2a6712977e269af378e90a6f70fc73dbb4a7aa60 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=96=9B=E5=AE=9A=E8=B0=94=E7=9A=84=E7=8C=AB?= Date: Mon, 27 May 2019 10:06:52 +0800 Subject: [PATCH 2/2] Update linter.js --- lib/linter/linter.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/linter/linter.js b/lib/linter/linter.js index 51414c1fe93..63247069746 100644 --- a/lib/linter/linter.js +++ b/lib/linter/linter.js @@ -929,7 +929,7 @@ function getEnv(slots, envId) { * Get a rule. * @param {LinterInternalSlots} slots The internal slots of Linter. * @param {string} ruleId The rule ID to get. - * @returns {Rule} The rule. + * @returns {Rule|null} The rule. */ function getRule(slots, ruleId) { return (