Skip to content

Commit 899fa6d

Browse files
authored
Add eslint to every example missing it (vercel#172)
* Updated eslint version in places where it's used * Added eslint-config-next where mising * added eslint where missing * Added a .eslintrc.json where needed * Fixed multiple lint issues * Fixed all known lint issues * Fix lint issues on commit * Add lint script to examples missing it * Updated scripts in multiple examples * Added prettier back where required
1 parent fe9fe21 commit 899fa6d

File tree

227 files changed

+184801
-32931
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

227 files changed

+184801
-32931
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"extends": "next/core-web-vitals"
3+
}

Diff for: edge-functions/ab-testing-google-optimize/components/layout.tsx

+2-5
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { FC, useCallback } from 'react'
1+
import { FC } from 'react'
22
import Script from 'next/script'
33
import { Layout, Page } from '@vercel/examples-ui'
44
import type { LayoutProps } from '@vercel/examples-ui/layout'
@@ -16,10 +16,7 @@ function gaHandler() {
1616
}
1717

1818
const OptimizeLayout: FC<LayoutProps> = ({ children, ...props }) => {
19-
const ga = useCallback(
20-
typeof window === 'undefined' ? throwIfSSR : gaHandler,
21-
[]
22-
)
19+
const ga = typeof window === 'undefined' ? throwIfSSR : gaHandler
2320

2421
return (
2522
<Layout {...props}>

0 commit comments

Comments
 (0)