Skip to content

Commit 6ad3c60

Browse files
authored
Update getBuiltinRule (#1731)
1 parent 70dcc97 commit 6ad3c60

File tree

1 file changed

+0
-7
lines changed

1 file changed

+0
-7
lines changed

rules/utils/get-builtin-rule.js

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,6 @@
11
'use strict';
22

33
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-
114
return require('eslint/use-at-your-own-risk').builtinRules.get(id);
125
}
136

0 commit comments

Comments
 (0)