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.
1 parent 5a21916 commit 50e1e69Copy full SHA for 50e1e69
scripts/ci-install-eslint.js
@@ -1,7 +1,6 @@
1
"use strict"
2
3
const { spawn } = require("child_process")
4
-const semver = require("semver")
5
6
function cd(path) {
7
console.log("$ cd %s", path)
@@ -31,8 +30,8 @@ function sh(command) {
31
30
32
// Install ESLint of the requested version
33
await sh(`npm install eslint@${requestedVersionSpec} -f`)
34
- if (semver.compare(requestedVersion, "9.0.0"))
35
- await sh(`npm install @types/eslint -f`)
+ if (Number(requestedVersion) < 9)
+ await sh(`npm install @types/eslint -D -f`)
36
37
// Install ESLint submodule of the requested version
38
// const installedVersion = require("eslint/package.json").version
0 commit comments