From 366c4c97b38c3400d6fcef787c34f42070d9a1fb Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Mon, 22 Sep 2025 15:08:33 +0000 Subject: [PATCH 1/2] chore(devdeps): update oxlint monorepo to v1.16.0 --- package.json | 4 +-- pnpm-lock.yaml | 86 +++++++++++++++++++++++++------------------------- 2 files changed, 45 insertions(+), 45 deletions(-) diff --git a/package.json b/package.json index 30f5150167..0b8f9689fe 100644 --- a/package.json +++ b/package.json @@ -151,7 +151,7 @@ "emoji-toolkit": "9.0.1", "esbuild-plugin-browserslist": "1.0.1", "eslint": "9.35.0", - "eslint-plugin-oxlint": "1.14.0", + "eslint-plugin-oxlint": "1.16.0", "eslint-plugin-storybook": "9.1.5", "eslint-plugin-testing-library": "7.8.0", "expect": "30.1.2", @@ -163,7 +163,7 @@ "identity-obj-proxy": "3.0.0", "jest-axe": "10.0.0", "lint-staged": "16.1.6", - "oxlint": "1.14.0", + "oxlint": "1.16.0", "postcss": "8.5.6", "publint": "0.3.12", "react": "19.1.1", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 6d36752f4a..114236738b 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -189,8 +189,8 @@ importers: specifier: 9.35.0 version: 9.35.0(jiti@2.4.2) eslint-plugin-oxlint: - specifier: 1.14.0 - version: 1.14.0 + specifier: 1.16.0 + version: 1.16.0 eslint-plugin-storybook: specifier: 9.1.5 version: 9.1.5(eslint@9.35.0(jiti@2.4.2))(storybook@9.1.5(@testing-library/dom@10.4.1)(prettier@2.8.8)(vite@7.1.5(@types/node@22.18.6)(jiti@2.4.2)(terser@5.39.0)(tsx@4.20.5)(yaml@2.8.1)))(typescript@5.9.2) @@ -225,8 +225,8 @@ importers: specifier: 16.1.6 version: 16.1.6 oxlint: - specifier: 1.14.0 - version: 1.14.0 + specifier: 1.16.0 + version: 1.16.0 postcss: specifier: 8.5.6 version: 8.5.6 @@ -2533,43 +2533,43 @@ packages: resolution: {integrity: sha512-nn5ozdjYQpUCZlWGuxcJY/KpxkWQs4DcbMCmKojjyrYDEAGy4Ce19NN4v5MduafTwJlbKc99UA8YhSVqq9yPZA==} engines: {node: '>=12.4.0'} - '@oxlint/darwin-arm64@1.14.0': - resolution: {integrity: sha512-rcTw0QWeOc6IeVp+Up7WtcwdS9l4j7TOq4tihF0Ud/fl+VUVdvDCPuZ9QTnLXJhwMXiyQRWdxRyI6XBwf80ncQ==} + '@oxlint/darwin-arm64@1.16.0': + resolution: {integrity: sha512-t9sBjbcG15Jgwgw2wY+rtfKEazdkKM/YhcdyjmGYeSjBXaczLfp/gZe03taC2qUHK+t6cxSYNkOLXRLWxaf3tw==} cpu: [arm64] os: [darwin] - '@oxlint/darwin-x64@1.14.0': - resolution: {integrity: sha512-TWFSEmyl2/DN4HoXNwQl0y/y3EXFJDctfv5MiDtVOV1GJKX80cGSIxMxXb08Q3CCWqteqEijmfSMo5TG8X1H/A==} + '@oxlint/darwin-x64@1.16.0': + resolution: {integrity: sha512-c9aeLQATeu27TK8gR/p8GfRBsuakx0zs+6UHFq/s8Kux+8tYb3pH1pql/XWUPbxubv48F2MpnD5zgjOrShAgag==} cpu: [x64] os: [darwin] - '@oxlint/linux-arm64-gnu@1.14.0': - resolution: {integrity: sha512-N1FqdKfwhVWPpMElv8qlGqdEefTbDYaRVhdGWOjs/2f7FESa5vX0cvA7ToqzkoXyXZI5DqByWiPML33njK30Kg==} + '@oxlint/linux-arm64-gnu@1.16.0': + resolution: {integrity: sha512-ZoBtxtRHhftbiKKeScpgUKIg4cu9s7rsBPCkjfMCY0uLjhKqm6ShPEaIuP8515+/Csouciz1ViZhbrya5ligAg==} cpu: [arm64] os: [linux] - '@oxlint/linux-arm64-musl@1.14.0': - resolution: {integrity: sha512-v/BPuiateLBb7Gz1STb69EWjkgKdlPQ1NM56z+QQur21ly2hiMkBX2n0zEhqfu9PQVRUizu6AlsYuzcPY/zsIQ==} + '@oxlint/linux-arm64-musl@1.16.0': + resolution: {integrity: sha512-a/Dys7CTyj1eZIkD59k9Y3lp5YsHBUeZXR7qHTplKb41H+Ivm5OQPf+rfbCBSLMfCPZCeKQPW36GXOSYLNE1uw==} cpu: [arm64] os: [linux] - '@oxlint/linux-x64-gnu@1.14.0': - resolution: {integrity: sha512-gUTp8KIrSYt97dn+tRRC3LKnH4xlHKCwrPwiDcGmLbCxojuN9/H5mnIhPKEfwNuZNdoKGS/ABuq3neVyvRCRtQ==} + '@oxlint/linux-x64-gnu@1.16.0': + resolution: {integrity: sha512-rsfv90ytLhl+s7aa8eE8gGwB1XGbiUA2oyUee/RhGRyeoZoe9/hHNtIcE2XndMYlJToROKmGyrTN4MD2c0xxLQ==} cpu: [x64] os: [linux] - '@oxlint/linux-x64-musl@1.14.0': - resolution: {integrity: sha512-DpN6cW2HPjYXeENG0JBbmubO8LtfKt6qJqEMBw9gUevbyBaX+k+Jn7sYgh6S23wGOkzmTNphBsf/7ulj4nIVYA==} + '@oxlint/linux-x64-musl@1.16.0': + resolution: {integrity: sha512-djwSL4harw46kdCwaORUvApyE9Y6JSnJ7pF5PHcQlJ7S1IusfjzYljXky4hONPO0otvXWdKq1GpJqhmtM0/xbg==} cpu: [x64] os: [linux] - '@oxlint/win32-arm64@1.14.0': - resolution: {integrity: sha512-oXxJksnUTUMgJ0NvjKS1mrCXAy1ttPgIVacRSlxQ+1XHy+aJDMM7I8fsCtoKoEcTIpPaD98eqUqlLYs0H2MGjA==} + '@oxlint/win32-arm64@1.16.0': + resolution: {integrity: sha512-lQBfW4hBiQ47P12UAFXyX3RVHlWCSYp6I89YhG+0zoLipxAfyB37P8G8N43T/fkUaleb8lvt0jyNG6jQTkCmhg==} cpu: [arm64] os: [win32] - '@oxlint/win32-x64@1.14.0': - resolution: {integrity: sha512-iRYy2rhTQKFztyx0jtNMRBnFpzsRwFdjWQ7sKKzJpmbijA3Tw3DCqlGT7QRgoVRF0+X/ccNGvvsrgMohPVfLeQ==} + '@oxlint/win32-x64@1.16.0': + resolution: {integrity: sha512-B5se3JnM4Xu6uHF78hAY9wdk/sdLFib1YwFsLY6rkQKEMFyi+vMZZlDaAS+s+Dt9q7q881U2OhNznZenJZdPdQ==} cpu: [x64] os: [win32] @@ -4854,8 +4854,8 @@ packages: peerDependencies: eslint: ^3 || ^4 || ^5 || ^6 || ^7 || ^8 || ^9 - eslint-plugin-oxlint@1.14.0: - resolution: {integrity: sha512-0sRuw9X/2W9FsWis6RC46fpCOSu+yPFD9foEmJ0ypCE6XfFWO6qXJIYvNctE7QzkO8W8c2RcWP7G28Rl84dDpQ==} + eslint-plugin-oxlint@1.16.0: + resolution: {integrity: sha512-OwxJcCOt2S2xMA8LvbAbPjgi5IyIBpK8znvKYlhSWz3R0BWgKVhNcYIDEndAxvDcfob4WPahrq+53TUeJqqeFg==} eslint-plugin-react-hooks@5.2.0: resolution: {integrity: sha512-+f15FfK64YQwZdJNELETdn5ibXEUQmW1DZL6KXhNnc2heoy/sg9VJJeT7n8TlMWouzWqSWavFkIhHyIbIAEapg==} @@ -6367,12 +6367,12 @@ packages: resolution: {integrity: sha512-qFOyK5PjiWZd+QQIh+1jhdb9LpxTF0qs7Pm8o5QHYZ0M3vKqSqzsZaEB6oWlxZ+q2sJBMI/Ktgd2N5ZwQoRHfg==} engines: {node: '>= 0.4'} - oxlint@1.14.0: - resolution: {integrity: sha512-oo0nq3zF9hmgATGc9esoMahLuEESOodUxEDeHDA2K7tbYcSfcmReE9G2QNppnq9rOSQHLTwlMtzGAjjttYaufQ==} + oxlint@1.16.0: + resolution: {integrity: sha512-o6z8s6QVw/d7QuxQ7QFfqDMrIcmHyU3J/MewxjqduJmy4vHt/s7OZISk8zEXjHXZzTWrcFakIrLqU/b9IKTcjg==} engines: {node: '>=8.*'} hasBin: true peerDependencies: - oxlint-tsgolint: '>=0.1.5' + oxlint-tsgolint: '>=0.2.0' peerDependenciesMeta: oxlint-tsgolint: optional: true @@ -10452,28 +10452,28 @@ snapshots: '@nolyfill/is-core-module@1.0.39': {} - '@oxlint/darwin-arm64@1.14.0': + '@oxlint/darwin-arm64@1.16.0': optional: true - '@oxlint/darwin-x64@1.14.0': + '@oxlint/darwin-x64@1.16.0': optional: true - '@oxlint/linux-arm64-gnu@1.14.0': + '@oxlint/linux-arm64-gnu@1.16.0': optional: true - '@oxlint/linux-arm64-musl@1.14.0': + '@oxlint/linux-arm64-musl@1.16.0': optional: true - '@oxlint/linux-x64-gnu@1.14.0': + '@oxlint/linux-x64-gnu@1.16.0': optional: true - '@oxlint/linux-x64-musl@1.14.0': + '@oxlint/linux-x64-musl@1.16.0': optional: true - '@oxlint/win32-arm64@1.14.0': + '@oxlint/win32-arm64@1.16.0': optional: true - '@oxlint/win32-x64@1.14.0': + '@oxlint/win32-x64@1.16.0': optional: true '@pivanov/utils@0.0.2(react-dom@19.1.1(react@19.1.1))(react@19.1.1)': @@ -13202,7 +13202,7 @@ snapshots: safe-regex-test: 1.1.0 string.prototype.includes: 2.0.1 - eslint-plugin-oxlint@1.14.0: + eslint-plugin-oxlint@1.16.0: dependencies: jsonc-parser: 3.3.1 @@ -14997,16 +14997,16 @@ snapshots: object-keys: 1.1.1 safe-push-apply: 1.0.0 - oxlint@1.14.0: + oxlint@1.16.0: optionalDependencies: - '@oxlint/darwin-arm64': 1.14.0 - '@oxlint/darwin-x64': 1.14.0 - '@oxlint/linux-arm64-gnu': 1.14.0 - '@oxlint/linux-arm64-musl': 1.14.0 - '@oxlint/linux-x64-gnu': 1.14.0 - '@oxlint/linux-x64-musl': 1.14.0 - '@oxlint/win32-arm64': 1.14.0 - '@oxlint/win32-x64': 1.14.0 + '@oxlint/darwin-arm64': 1.16.0 + '@oxlint/darwin-x64': 1.16.0 + '@oxlint/linux-arm64-gnu': 1.16.0 + '@oxlint/linux-arm64-musl': 1.16.0 + '@oxlint/linux-x64-gnu': 1.16.0 + '@oxlint/linux-x64-musl': 1.16.0 + '@oxlint/win32-arm64': 1.16.0 + '@oxlint/win32-x64': 1.16.0 p-filter@2.1.0: dependencies: From e49693eeb37b8bd7a3a490b8f8849db81d6e8eff Mon Sep 17 00:00:00 2001 From: Matthias Date: Tue, 23 Sep 2025 14:52:28 +0200 Subject: [PATCH 2/2] fix: oxlint errors --- examples/next/src/pages/_document.tsx | 1 + packages/ui/src/__stories__/Properties/Properties.tsx | 4 ++-- packages/ui/src/__stories__/Tools/ThemeGenerator/contants.ts | 2 +- packages/ui/src/components/Modal/components/Dialog.tsx | 2 +- utils/scripts/analyse-deps.ts | 2 +- 5 files changed, 6 insertions(+), 5 deletions(-) diff --git a/examples/next/src/pages/_document.tsx b/examples/next/src/pages/_document.tsx index 0aacc41404..6682b2ecc1 100644 --- a/examples/next/src/pages/_document.tsx +++ b/examples/next/src/pages/_document.tsx @@ -3,6 +3,7 @@ import { jsonLdScriptProps } from 'react-schemaorg' import type { CreativeWork } from 'schema-dts' class MyDocument extends Document { + // eslint-disable-next-line class-methods-use-this override render() { return ( diff --git a/packages/ui/src/__stories__/Properties/Properties.tsx b/packages/ui/src/__stories__/Properties/Properties.tsx index 07a3d07858..58b039ed3d 100644 --- a/packages/ui/src/__stories__/Properties/Properties.tsx +++ b/packages/ui/src/__stories__/Properties/Properties.tsx @@ -168,10 +168,10 @@ const Properties = () => { } const reversedLocalProperty = [...lowerCaseLocalProperty] - .reverse() + .toReversed() .join('') const reversedLowerCaseProperty = [...lowerCaseProperty] - .reverse() + .toReversed() .join('') for ( diff --git a/packages/ui/src/__stories__/Tools/ThemeGenerator/contants.ts b/packages/ui/src/__stories__/Tools/ThemeGenerator/contants.ts index f50d40f358..6a5a26ed00 100644 --- a/packages/ui/src/__stories__/Tools/ThemeGenerator/contants.ts +++ b/packages/ui/src/__stories__/Tools/ThemeGenerator/contants.ts @@ -15,7 +15,7 @@ export const SHADES_KEYS = [ '1200', '1300', '1400', -].reverse() +].toReversed() /** * This is the mapping between shades name and sentiments names. diff --git a/packages/ui/src/components/Modal/components/Dialog.tsx b/packages/ui/src/components/Modal/components/Dialog.tsx index c445d250fa..bda32d3046 100644 --- a/packages/ui/src/components/Modal/components/Dialog.tsx +++ b/packages/ui/src/components/Modal/components/Dialog.tsx @@ -209,7 +209,7 @@ export const Dialog = ({ // while the first opened modal should shrink const realPosition = [...openedModals].findIndex(object => object.id === id) const position = [...openedModals] - .reverse() + .toReversed() .findIndex(object => object.id === id) // reverse method mutate array so we need to create a new array const modalAbove = openedModals[realPosition + 1] const currentModalHeight = dialogRef.current?.offsetHeight diff --git a/utils/scripts/analyse-deps.ts b/utils/scripts/analyse-deps.ts index ec20f8f9b2..12e6cf646e 100644 --- a/utils/scripts/analyse-deps.ts +++ b/utils/scripts/analyse-deps.ts @@ -67,7 +67,7 @@ for (const file of filesToAnalyze) { 'components/', ].some(string => normalizedFile.endsWith(string)) ) { - const importedComponent = normalizedFile.split('/').reverse()[0] + const importedComponent = normalizedFile.split('/').toReversed()[0] if (!graph[componentName]) { graph[componentName] = { dependsOn: [] }