Skip to content

Commit b9da9ff

Browse files
committed
chore: fix linting errors
1 parent 01e3bec commit b9da9ff

File tree

1 file changed

+2
-7
lines changed

1 file changed

+2
-7
lines changed

lib/util/check-unsupported-builtins.js

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
*/
55
"use strict"
66

7-
const { major, rsort } = require("semver")
7+
const { rsort } = require("semver")
88
const { ReferenceTracker } = require("@eslint-community/eslint-utils")
99
const getConfiguredNodeVersion = require("./get-configured-node-version")
1010
const getSemverRange = require("./get-semver-range")
@@ -39,12 +39,7 @@ function isSupported({ supported }, configured) {
3939

4040
const [latest] = rsort(supported)
4141
const range = getSemverRange(
42-
[
43-
...supported.map(
44-
version => `^${version}`
45-
),
46-
`>= ${latest}`,
47-
].join("||")
42+
[...supported.map(version => `^${version}`), `>= ${latest}`].join("||")
4843
)
4944

5045
if (range == null) {

0 commit comments

Comments
 (0)