Skip to content

Commit

Permalink
fix: node 12 .at support
Browse files Browse the repository at this point in the history
  • Loading branch information
scagood committed May 5, 2024
1 parent 574f090 commit c8fff8b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion __tests__/rule-tester.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
const { version } = require('eslint/package.json')
const { RuleTester } = require('eslint')

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

exports.RuleTester = function (config = {}) {
if (majorVersion <= 8) {
Expand Down

0 comments on commit c8fff8b

Please sign in to comment.