Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions examples/next/src/pages/_document.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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 (
<Html>
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand All @@ -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",
Expand Down
4 changes: 2 additions & 2 deletions packages/ui/src/__stories__/Properties/Properties.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -168,10 +168,10 @@ const Properties = () => {
}

const reversedLocalProperty = [...lowerCaseLocalProperty]
.reverse()
.toReversed()
.join('')
const reversedLowerCaseProperty = [...lowerCaseProperty]
.reverse()
.toReversed()
.join('')

for (
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ export const SHADES_KEYS = [
'1200',
'1300',
'1400',
].reverse()
].toReversed()

/**
* This is the mapping between shades name and sentiments names.
Expand Down
2 changes: 1 addition & 1 deletion packages/ui/src/components/Modal/components/Dialog.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
86 changes: 43 additions & 43 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion utils/scripts/analyse-deps.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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: [] }
Expand Down
Loading