From be334f9d8633e9d193dcb8b36f484547e9d3ab97 Mon Sep 17 00:00:00 2001 From: Brandon Mills Date: Sat, 14 Aug 2021 19:48:08 -0400 Subject: [PATCH] Chore: Fix Makefile call to linter.getRules() (#14932) The `linter` object was removed in v8.0.0, so we need to create an instance of `Linter`. --- Makefile.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Makefile.js b/Makefile.js index 3ee1b4c1b4c..59e58b1404d 100644 --- a/Makefile.js +++ b/Makefile.js @@ -638,7 +638,8 @@ target.gensite = function(prereleaseVersion) { }; } - const rules = require(".").linter.getRules(); + const { Linter } = require("."); + const rules = new Linter().getRules(); const RECOMMENDED_TEXT = "\n\n(recommended) The `\"extends\": \"eslint:recommended\"` property in a configuration file enables this rule."; const FIXABLE_TEXT = "\n\n(fixable) The `--fix` option on the [command line](../user-guide/command-line-interface#fixing-problems) can automatically fix some of the problems reported by this rule.";