mirror of
https://github.com/actions/setup-java.git
synced 2026-06-23 08:19:41 +00:00
af5f874769
Upgrade ESLint from 8.57.0 to 10.5.0. ESLint 10 removes support for the legacy `.eslintrc` format entirely, so the configuration is migrated to the new flat config (`eslint.config.mjs`). Changes: - Bump `eslint` 8.57.0 -> 10.5.0 and `eslint-plugin-jest` to 29.15.2. - Replace the legacy `@typescript-eslint/eslint-plugin` + `@typescript-eslint/parser` pair with the `typescript-eslint` meta-package (8.62.0), which supports ESLint 10. - Replace the deprecated `eslint-plugin-node` (unmaintained, broken on ESLint 9+) with its maintained fork `eslint-plugin-n` (18.1.0); the single rule in use, `node/no-extraneous-import`, becomes `n/no-extraneous-import`. - Add `@eslint/js` (10.0.1) and `globals` (17.7.0), now required by flat config. - Translate `.eslintrc.js` to `eslint.config.mjs` and `.eslintignore` to the flat config `ignores`, preserving all existing rules and the test-file overrides. - Update the `lint`/`lint:fix` scripts to invoke `eslint` directly (flat config is auto-detected; the `--config ./.eslintrc.js` flag is removed). `preserve-caught-error` (new in ESLint 10's recommended set) is disabled to keep the previous lint behavior; adopting it requires an ES2022 target and is left as a follow-up. Only dev/lint dependencies change, so runtime deps and the built `dist/` output are unchanged. Note: `.eslintrc.js` was previously auto-synced from actions/reusable-workflows. Upstream has not yet published a flat config, so this migration intentionally deviates from that auto-sync until upstream catches up. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
65 lines
1.8 KiB
JSON
65 lines
1.8 KiB
JSON
{
|
|
"name": "setup-java",
|
|
"version": "5.3.0",
|
|
"private": true,
|
|
"description": "setup java action",
|
|
"main": "dist/setup/index.js",
|
|
"engines": {
|
|
"node": ">=24.0.0"
|
|
},
|
|
"scripts": {
|
|
"build": "ncc build -o dist/setup src/setup-java.ts && ncc build -o dist/cleanup src/cleanup-java.ts",
|
|
"format": "prettier --no-error-on-unmatched-pattern --config ./.prettierrc.js --write \"**/*.{ts,yml,yaml}\"",
|
|
"format-check": "prettier --no-error-on-unmatched-pattern --config ./.prettierrc.js --check \"**/*.{ts,yml,yaml}\"",
|
|
"lint": "eslint",
|
|
"lint:fix": "eslint --fix",
|
|
"prerelease": "npm run-script build",
|
|
"release": "git add -f dist/setup/index.js dist/cleanup/index.js",
|
|
"test": "jest"
|
|
},
|
|
"repository": {
|
|
"type": "git",
|
|
"url": "git+https://github.com/actions/setup-java.git"
|
|
},
|
|
"keywords": [
|
|
"actions",
|
|
"java",
|
|
"setup"
|
|
],
|
|
"author": "GitHub",
|
|
"license": "MIT",
|
|
"dependencies": {
|
|
"@actions/cache": "^5.1.0",
|
|
"@actions/core": "^2.0.3",
|
|
"@actions/exec": "^2.0.0",
|
|
"@actions/glob": "^0.5.1",
|
|
"@actions/http-client": "^3.0.2",
|
|
"@actions/io": "^2.0.0",
|
|
"@actions/tool-cache": "^3.0.1",
|
|
"semver": "^7.6.0",
|
|
"xmlbuilder2": "^4.0.3"
|
|
},
|
|
"devDependencies": {
|
|
"@eslint/js": "^10.0.1",
|
|
"@types/jest": "^30.0.0",
|
|
"@types/node": "^26.0.0",
|
|
"@types/semver": "^7.5.8",
|
|
"@vercel/ncc": "^0.44.0",
|
|
"eslint": "^10.5.0",
|
|
"eslint-config-prettier": "^10.1.8",
|
|
"eslint-plugin-jest": "^29.15.2",
|
|
"eslint-plugin-n": "^18.1.0",
|
|
"globals": "^17.7.0",
|
|
"jest": "^30.4.2",
|
|
"jest-circus": "^30.4.2",
|
|
"prettier": "^3.6.2",
|
|
"ts-jest": "^29.4.11",
|
|
"typescript": "^5.3.3",
|
|
"typescript-eslint": "^8.62.0"
|
|
},
|
|
"bugs": {
|
|
"url": "https://github.com/actions/setup-java/issues"
|
|
},
|
|
"homepage": "https://github.com/actions/setup-java#readme"
|
|
}
|