build(deps): upgrade to eslint 10

This commit is contained in:
Damien Retzinger
2026-06-09 17:50:47 -04:00
parent cfbf870a80
commit ed78b5307f
4 changed files with 242 additions and 318 deletions
+236 -313
View File
File diff suppressed because it is too large Load Diff
+3 -2
View File
@@ -19,13 +19,14 @@
"homepage": "https://github.com/graycoreio/github-actions-magento2#readme", "homepage": "https://github.com/graycoreio/github-actions-magento2#readme",
"dependencies": { "dependencies": {
"@actions/core": "^3.0.1", "@actions/core": "^3.0.1",
"@actions/exec": "^3.0.0" "@actions/exec": "^3.0.0",
"@eslint/js": "^10.0.1"
}, },
"devDependencies": { "devDependencies": {
"@types/jest": "^30.0.0", "@types/jest": "^30.0.0",
"@types/node": "^24.10.4", "@types/node": "^24.10.4",
"esbuild": "^0.28.0", "esbuild": "^0.28.0",
"eslint": "^9.39.2", "eslint": "^10.4.1",
"jest": "^30.4.2", "jest": "^30.4.2",
"ts-jest": "^29.4.11", "ts-jest": "^29.4.11",
"typescript": "^5.9.3", "typescript": "^5.9.3",
+1 -1
View File
File diff suppressed because one or more lines are too long
+2 -2
View File
@@ -176,7 +176,7 @@ export const parseRawConfig = (jsonText: string): RawConfig => {
try { try {
parsed = JSON.parse(trimmed); parsed = JSON.parse(trimmed);
} catch (e) { } catch (e) {
throw new Error(`check-config: failed to parse JSON: ${(e as Error).message}`); throw new Error(`check-config: failed to parse JSON: ${(e as Error).message}`, { cause: e });
} }
if (parsed === null || typeof parsed !== 'object' || Array.isArray(parsed)) { if (parsed === null || typeof parsed !== 'object' || Array.isArray(parsed)) {
throw new Error(`check-config: top-level value must be an object`); throw new Error(`check-config: top-level value must be an object`);
@@ -198,7 +198,7 @@ export const parseMatrixInput = (jsonText: string): Matrix => {
try { try {
parsed = JSON.parse(trimmed); parsed = JSON.parse(trimmed);
} catch (e) { } catch (e) {
throw new Error(`check-config: failed to parse \`matrix\` input as JSON: ${(e as Error).message}`); throw new Error(`check-config: failed to parse \`matrix\` input as JSON: ${(e as Error).message}`, { cause: e });
} }
if (parsed === null || typeof parsed !== 'object' || Array.isArray(parsed)) { if (parsed === null || typeof parsed !== 'object' || Array.isArray(parsed)) {
throw new Error('check-config: `matrix` must be a JSON object'); throw new Error('check-config: `matrix` must be a JSON object');