Skip to content
Permalink
Browse files
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`.
  • Loading branch information
btmills committed Aug 14, 2021
1 parent 0c86b68 commit be334f9d8633e9d193dcb8b36f484547e9d3ab97
Showing 1 changed file with 2 additions and 1 deletion.
@@ -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.";

0 comments on commit be334f9

Please sign in to comment.