Skip to content

Commit 534ad1d

Browse files
scagoodaladdin-add
authored andcommitted
fix: node 12 .at support
1 parent 8c41e02 commit 534ad1d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

__tests__/rule-tester.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
const { version } = require('eslint/package.json')
77
const { RuleTester } = require('eslint')
88

9-
const majorVersion = Number.parseInt(version.split('.').at(0), 10)
9+
const majorVersion = Number.parseInt(version.split('.')[0], 10)
1010

1111
exports.RuleTester = function (config = {}) {
1212
if (majorVersion <= 8) {

0 commit comments

Comments
 (0)