Skip to content

Commit e39d979

Browse files
committed
chore: fix lint after update
1 parent a655e80 commit e39d979

6 files changed

Lines changed: 23 additions & 5 deletions

File tree

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/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/widget-ts.mjs

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,10 @@ export default defineConfig(
118118
"react-hooks/rules-of-hooks": "error",
119119
"react-hooks/exhaustive-deps": "warn",
120120
"react-hooks/refs": "off",
121-
"react-hooks/immutability": "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"
122125
}
123126
},
124127
{
@@ -225,6 +228,11 @@ export default defineConfig(
225228
"package-json/no-empty-fields": "off",
226229
"package-json/require-type": "off",
227230
"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",
228236
"package-json/order-properties": [
229237
"error",
230238
{

packages/shared/widget-plugin-dropdown-filter/package.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,10 @@
44
"description": "Drop-down filter widget plugin",
55
"copyright": "© Mendix Technology BV 2025. All rights reserved.",
66
"license": "Apache-2.0",
7+
"repository": {
8+
"type": "git",
9+
"url": "https://github.com/mendix/web-widgets.git"
10+
},
711
"type": "module",
812
"files": [
913
"dist",

pnpm-lock.yaml

Lines changed: 7 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)