Migrate to ESLint 9 flat config (#239)

* eslint 9

* fix lint errors

* update package-lock.json
This commit is contained in:
tmshv authored and GitHub committed 2026-02-08 01:29:39 +07:00
1 parent d9d8bbebe1
commit a4b3068850
9 files changed
+5830 -5854

No files matched your search

+2 -2
View File
@@ -77,7 +77,7 @@ export async function createPageToken(component: StrapiComponent): Promise<Token
case "hudozka.card-grid": {
const items = await Promise.all(component.items
.filter(Boolean)
.map(createCardGrid)
.map(createCardGrid),
)
return {
token: "grid",
@@ -208,7 +208,7 @@ export async function createCardGrid(card: StrapiPageCard): Promise<PageCardDto>
export async function createHomeCards(data: StrapiHome): Promise<PageCardDto[]> {
const items = await Promise.all(data.cards
.map(createCardGrid)
.map(createCardGrid),
)
return items
.filter(x => !!x.url)
+1 -1
View File
@@ -29,7 +29,7 @@ export const Box: React.FC<BoxProps> = ({
...props
}) => {
const newProps = {
className: cx(s.box, className, { vertical, align, center, wrap }),
className: cx(className, s.box, { vertical, align, center, wrap }),
style: {
...style,
gap,
+1 -1
View File
@@ -17,7 +17,7 @@ export const Transition: React.FC<TransitionProps> = props => {
}, [opacity])
const transition = useMemo(
() => `all ${props.duration}ms`,
[props.duration]
[props.duration],
)
useEffect(() => {