Skip to content

Commit

Permalink
Update ESLint rules
Browse files Browse the repository at this point in the history
  • Loading branch information
clementroche committed Nov 8, 2023
1 parent dbc2b3d commit 0e7c51d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,6 @@
"no-unused-vars": "error",
"react/no-unescaped-entities": "off",
"@next/next/no-img-element": "off",
"react-hooks/exhaustive-deps": "off"
"react-hooks/exhaustive-deps": "warn"
}
}
2 changes: 1 addition & 1 deletion pages/_app.js
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ if (typeof window !== 'undefined') {

function MyApp({ Component, pageProps }) {
const lenis = useLenis(ScrollTrigger.update)
useEffect(ScrollTrigger.refresh, [lenis])
useEffect(() => ScrollTrigger.refresh(), [lenis])

const isNavOpened = useStore(({ isNavOpened }) => isNavOpened)

Expand Down

1 comment on commit 0e7c51d

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

"⚡️ Lighthouse report for the changes in this commit:

🟠 Performance: 67
🟢 Accessibility: 97
🟢 Best practices: 100
🟠 SEO: 75
🔴 PWA: 30

Lighthouse ran on https://astro-satus-itioqvzov-studio-freight.vercel.app/"

Please sign in to comment.