We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
getBuiltinRule
1 parent 70dcc97 commit 6ad3c60Copy full SHA for 6ad3c60
rules/utils/get-builtin-rule.js
@@ -1,13 +1,6 @@
1
'use strict';
2
3
function getBuiltinRule(id) {
4
- // TODO: Remove this when we drop support for ESLint 7
5
- const eslintVersion = require('eslint/package.json').version;
6
- /* c8 ignore next 3 */
7
- if (eslintVersion.startsWith('7.')) {
8
- return require(`eslint/lib/rules/${id}`);
9
- }
10
-
11
return require('eslint/use-at-your-own-risk').builtinRules.get(id);
12
}
13
0 commit comments