Skip to content

Commit

Permalink
Chore: Fix Makefile call to linter.getRules() (#14932)
Browse files Browse the repository at this point in the history
The `linter` object was removed in v8.0.0, so we need to create an
instance of `Linter`.
  • Loading branch information
btmills authored Aug 14, 2021
1 parent 0c86b68 commit be334f9
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Makefile.js
Original file line number Diff line number Diff line change
Expand Up @@ -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.";
Expand Down

0 comments on commit be334f9

Please sign in to comment.