Skip to content

Commit 762f9c1

Browse files
authored
chore: update deps (#2118)
2 parents d8460bf + e39d979 commit 762f9c1

12 files changed

Lines changed: 360 additions & 172 deletions

File tree

automation/run-e2e/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434
"@playwright/test": "^1.51.1",
3535
"@types/node": "*",
3636
"eslint-plugin-playwright": "^2.2.0",
37-
"globals": "^16.0.0",
37+
"globals": "^17.3.0",
3838
"playwright-ctrf-json-reporter": "^0.0.20"
3939
}
4040
}

automation/snapshot-generator/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,6 @@
1818
"devDependencies": {
1919
"@eslint/js": "^9.32.0",
2020
"@mendix/prettier-config-web-widgets": "workspace:*",
21-
"globals": "^16.0.0"
21+
"globals": "^17.3.0"
2222
}
2323
}

automation/utils/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@
4848
"enquirer": "^2.4.1",
4949
"execa": "^5.1.1",
5050
"fast-xml-parser": "^4.1.3",
51-
"glob": "^11.0.3",
51+
"glob": "^11.1.0",
5252
"node-fetch": "^2.7.0",
5353
"ora": "^5.4.1",
5454
"peggy": "^1.2.0",

packages/customWidgets/signature-web/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@
4646
"@mendix/prettier-config-web-widgets": "workspace:*",
4747
"copy-webpack-plugin": "^11.0.0",
4848
"css-loader": "^6.7.3",
49+
"eslint": "^9.39.3",
4950
"jest-canvas-mock": "^2.4.0",
5051
"loader-utils": "1.4.2",
5152
"mendix-client": "^7.15.8",

packages/customWidgets/signature-web/src/components/Grid.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ export const Grid: FC<GridBackgroundProps> = ({
1414
gridBorderWidth,
1515
showGrid = true
1616
}) => {
17+
// eslint-disable-next-line react-hooks/purity
1718
const id = `grid${Math.floor(Math.random() * 1000000)}`;
1819
return showGrid ? (
1920
<svg className="widget-signature-grid" width="100%" height="100%" xmlns="http://www.w3.org/2000/svg">

packages/modules/web-actions/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,6 @@
3838
"@eslint/js": "^9.32.0",
3939
"@mendix/automation-utils": "workspace:*",
4040
"@mendix/prettier-config-web-widgets": "workspace:^",
41-
"globals": "^16.0.0"
41+
"globals": "^17.3.0"
4242
}
4343
}

packages/pluggableWidgets/selection-helper-web/src/components/SelectionHelperComponent.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ interface Props {
1313
export function SelectionHelperComponent(props: Props): ReactElement {
1414
// TODO: replace with useId
1515
const id = useMemo(() => {
16+
// eslint-disable-next-line react-hooks/purity
1617
return Date.now().toString();
1718
}, []);
1819

packages/shared/eslint-config-web-widgets/package.json

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -11,17 +11,17 @@
1111
"lint": "eslint . package.json"
1212
},
1313
"dependencies": {
14-
"@eslint/js": "^9.34.0",
14+
"@eslint/js": "^9.39.3",
1515
"@mendix/prettier-config-web-widgets": "workspace:*",
1616
"eslint": "^9.39.3",
1717
"eslint-plugin-cypress": "^5.1.1",
18-
"eslint-plugin-jest": "^29.0.1",
19-
"eslint-plugin-package-json": "^0.56.1",
20-
"eslint-plugin-prettier": "^5.5.4",
18+
"eslint-plugin-jest": "^29.15.0",
19+
"eslint-plugin-package-json": "^0.89.1",
20+
"eslint-plugin-prettier": "^5.5.5",
2121
"eslint-plugin-promise": "^7.2.1",
2222
"eslint-plugin-react": "~7.37.5",
23-
"eslint-plugin-react-hooks": "^5.2.0",
24-
"globals": "^16.3.0",
25-
"typescript-eslint": "^8.41.0"
23+
"eslint-plugin-react-hooks": "^7.0.1",
24+
"globals": "^17.3.0",
25+
"typescript-eslint": "^8.56.1"
2626
}
2727
}

packages/shared/eslint-config-web-widgets/widget-ts.mjs

Lines changed: 14 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,9 @@ import reactHooksPlugin from "eslint-plugin-react-hooks";
66
import jestPlugin from "eslint-plugin-jest";
77
import packageJson from "eslint-plugin-package-json";
88
import packageJsonFieldsOrder from "@mendix/prettier-config-web-widgets/package-json-fields-order.js";
9+
import { defineConfig } from "eslint/config";
910

10-
export default tseslint.config(
11+
export default defineConfig(
1112
{
1213
name: "generic eslint",
1314
extends: [eslint.configs.recommended],
@@ -111,11 +112,16 @@ export default tseslint.config(
111112
},
112113
{
113114
name: "react hooks",
114-
extends: [reactHooksPlugin.configs["recommended-latest"]],
115+
extends: [reactHooksPlugin.configs.flat["recommended"]],
115116
files: ["**/*.ts", "**/*.tsx", "**/*.js", "**/*.jsx"],
116117
rules: {
117118
"react-hooks/rules-of-hooks": "error",
118-
"react-hooks/exhaustive-deps": "warn"
119+
"react-hooks/exhaustive-deps": "warn",
120+
"react-hooks/refs": "off",
121+
"react-hooks/immutability": "off",
122+
"react-hooks/preserve-manual-memoization": "off",
123+
"react-hooks/set-state-in-effect": "warn",
124+
"react-hooks/use-memo": "warn"
119125
}
120126
},
121127
{
@@ -222,6 +228,11 @@ export default tseslint.config(
222228
"package-json/no-empty-fields": "off",
223229
"package-json/require-type": "off",
224230
"package-json/valid-exports": "off",
231+
"package-json/require-exports": "off",
232+
"package-json/require-files": "off",
233+
"package-json/require-sideEffects": "off",
234+
"package-json/require-attribution": "off",
235+
"package-json/specify-peers-locally": "off",
225236
"package-json/order-properties": [
226237
"error",
227238
{

packages/shared/prettier-config-web-widgets/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
"@eslint/js": "^9.34.0",
1515
"@prettier/plugin-xml": "^3.4.2",
1616
"eslint": "^9.39.3",
17-
"globals": "^16.3.0",
17+
"globals": "^17.3.0",
1818
"prettier-plugin-packagejson": "^2.5.19"
1919
}
2020
}

0 commit comments

Comments
 (0)