mirror of
https://github.com/graycoreio/github-actions-magento2.git
synced 2026-06-13 13:14:53 +00:00
build(deps): upgrade to eslint 10
This commit is contained in:
Generated
+236
-313
File diff suppressed because it is too large
Load Diff
+3
-2
@@ -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",
|
||||||
|
|||||||
Vendored
+1
-1
File diff suppressed because one or more lines are too long
@@ -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');
|
||||||
|
|||||||
Reference in New Issue
Block a user