diff --git a/.cirrus.yml b/.cirrus.yml index 660524427bc..fd2edca6a50 100644 --- a/.cirrus.yml +++ b/.cirrus.yml @@ -310,11 +310,11 @@ eslint_plugin_test_task: - source set_maven_build_version $BUILD_NUMBER - npm run eslint-plugin:build - cd its/eslint8-plugin-sonarjs - - npm run build + - npm install - npx tsc --noEmit # check typings for tseslint.config.ts - npm run test - cd ../eslint9-plugin-sonarjs - - npm run build + - npm install - npx tsc --noEmit # check typings for tseslint.config.ts - npm run test @@ -338,7 +338,7 @@ eslint8_node16_plugin_test_task: - source set_maven_build_version $BUILD_NUMBER - npm run eslint-plugin:build - cd its/eslint8-plugin-sonarjs - - npm run build + - npm install - npx tsc --noEmit # check typings for tseslint.config.ts - npm run test diff --git a/generate-eslint-package-json.mjs b/generate-eslint-package-json.mjs index 7002829d698..f3367a6d161 100644 --- a/generate-eslint-package-json.mjs +++ b/generate-eslint-package-json.mjs @@ -1,5 +1,5 @@ import fs from 'node:fs/promises'; -import { join, dirname } from 'path'; +import { dirname, join } from 'path'; import { fileURLToPath } from 'node:url'; const eslintPluginDependencies = [ @@ -74,7 +74,7 @@ await fs.writeFile( 'https://github.com/SonarSource/SonarJS/blob/master/packages/jsts/src/rules/README.md', dependencies, peerDependencies: { - eslint: '^8.0.0 || ^9.0.0', + eslint: '8.0.0 - 9.14', }, }, null, diff --git a/its/eslint8-plugin-sonarjs/package.json b/its/eslint8-plugin-sonarjs/package.json index b8485d628d2..f7ac074a4e7 100644 --- a/its/eslint8-plugin-sonarjs/package.json +++ b/its/eslint8-plugin-sonarjs/package.json @@ -2,10 +2,10 @@ "name": "eslint8-plugin-sonarjs-tests", "description": "Test suite for eslint-plugin-sonarjs", "scripts": { - "build": "npm install && cp ../../lib/eslint-plugin-sonarjs-* ./plugin.tgz && npm i ./plugin.tgz --no-save && rm -f plugin.tgz", "test": "node index.test.js" }, "devDependencies": { + "eslint-plugin-sonarjs": "file:../../lib/eslint-plugin-sonarjs-0.0.0-SNAPSHOT.tgz", "@types/eslint": "^8.56.12", "cross-spawn": "7.0.3", "eslint": "8.57.0", diff --git a/its/eslint9-plugin-sonarjs/package.json b/its/eslint9-plugin-sonarjs/package.json index 7c8d7bc6b4c..52d17bea9bb 100644 --- a/its/eslint9-plugin-sonarjs/package.json +++ b/its/eslint9-plugin-sonarjs/package.json @@ -2,12 +2,12 @@ "name": "eslint9-plugin-sonarjs-tests", "description": "Test suite for eslint-plugin-sonarjs", "scripts": { - "build": "npm install && cp ../../lib/eslint-plugin-sonarjs-* ./plugin.tgz && npm i ./plugin.tgz --no-save && rm -f plugin.tgz", "test": "node index.test.js" }, "devDependencies": { + "eslint-plugin-sonarjs": "file:../../lib/eslint-plugin-sonarjs-0.0.0-SNAPSHOT.tgz", "cross-spawn": "7.0.3", - "eslint": "^9.10.0", + "eslint": "9 - 9.14", "typescript": "5.5.4", "typescript-eslint": "^8.5.0" }