File tree Expand file tree Collapse file tree 3 files changed +5
-4
lines changed Expand file tree Collapse file tree 3 files changed +5
-4
lines changed Original file line number Diff line number Diff line change 5555 run : npm install -f
5656 - name : Install ESLint v${{ matrix.eslint }}
5757 run : node scripts/ci-install-eslint ${{ matrix.eslint }}
58- - name : Build
59- run : npm run -s build
6058 - name : Test
6159 run : npm run -s test
6260 test-for-old-eslint :
Original file line number Diff line number Diff line change 6565 "prebuild" : " npm run -s clean" ,
6666 "build" : " tsc --module es2015 && rollup -c -o index.js && dts-bundle --name vue-eslint-parser --main .temp/index.d.ts --out ../index.d.ts" ,
6767 "clean" : " rimraf .temp index.*" ,
68- "coverage" : " vitest --coverage --ui" ,
68+ "coverage" : " vitest --coverage --ui" ,
6969 "lint" : " eslint src test package.json" ,
70- "pretest" : " run-s build lint" ,
70+ "pretest" : " npm run lint" ,
7171 "test" : " vitest" ,
7272 "test:cover" : " vitest --coverage" ,
7373 "update-fixtures" : " ts-node --transpile-only scripts/update-fixtures-ast.js && ts-node --transpile-only scripts/update-fixtures-document-fragment.js" ,
Original file line number Diff line number Diff line change 11"use strict"
22
33const { spawn } = require ( "child_process" )
4+ const semver = require ( "semver" )
45
56function cd ( path ) {
67 console . log ( "$ cd %s" , path )
@@ -30,6 +31,8 @@ function sh(command) {
3031
3132 // Install ESLint of the requested version
3233 await sh ( `npm install eslint@${ requestedVersionSpec } -f` )
34+ if ( semver . compare ( requestedVersionSpec , "9.0.0" ) )
35+ await sh ( `npm install @types/eslint -f` )
3336
3437 // Install ESLint submodule of the requested version
3538 // const installedVersion = require("eslint/package.json").version
You can’t perform that action at this time.
0 commit comments