From 8a26ef85a82a73b4865b97f04755d8a0cdba3955 Mon Sep 17 00:00:00 2001 From: Mauro Balades Date: Thu, 1 Aug 2024 20:21:00 +0200 Subject: [PATCH] chore: Update eslint rules and package dependencies --- .eslintrc.json | 6 +++++- package-lock.json | 7 +++++++ package.json | 1 + src/components/ui/confetti.tsx | 3 +-- 4 files changed, 14 insertions(+), 3 deletions(-) diff --git a/.eslintrc.json b/.eslintrc.json index bffb357..2157b1a 100644 --- a/.eslintrc.json +++ b/.eslintrc.json @@ -1,3 +1,7 @@ { - "extends": "next/core-web-vitals" + "extends": "next/core-web-vitals", + "rules": { + "react/display-name": "off", + "react/no-unescaped-entities": "off" + } } diff --git a/package-lock.json b/package-lock.json index a7b066f..3951252 100644 --- a/package-lock.json +++ b/package-lock.json @@ -39,6 +39,7 @@ "zod": "^3.23.8" }, "devDependencies": { + "@types/canvas-confetti": "^1.6.4", "@types/node": "^20", "@types/react": "^18", "@types/react-dom": "^18", @@ -4392,6 +4393,12 @@ "tslib": "^2.4.0" } }, + "node_modules/@types/canvas-confetti": { + "version": "1.6.4", + "resolved": "https://registry.npmjs.org/@types/canvas-confetti/-/canvas-confetti-1.6.4.tgz", + "integrity": "sha512-fNyZ/Fdw/Y92X0vv7B+BD6ysHL4xVU5dJcgzgxLdGbn8O3PezZNIJpml44lKM0nsGur+o/6+NZbZeNTt00U1uA==", + "dev": true + }, "node_modules/@types/istanbul-lib-coverage": { "version": "2.0.6", "resolved": "https://registry.npmjs.org/@types/istanbul-lib-coverage/-/istanbul-lib-coverage-2.0.6.tgz", diff --git a/package.json b/package.json index 5a4267e..585fa59 100644 --- a/package.json +++ b/package.json @@ -40,6 +40,7 @@ "zod": "^3.23.8" }, "devDependencies": { + "@types/canvas-confetti": "^1.6.4", "@types/node": "^20", "@types/react": "^18", "@types/react-dom": "^18", diff --git a/src/components/ui/confetti.tsx b/src/components/ui/confetti.tsx index 089e9ab..6a199ba 100644 --- a/src/components/ui/confetti.tsx +++ b/src/components/ui/confetti.tsx @@ -8,8 +8,7 @@ import type { CreateTypes as ConfettiInstance, Options as ConfettiOptions, } from 'canvas-confetti' -import { Button } from '~/components/ui/button' -import type { ButtonProps } from '~/components/ui/button' +import { Button, ButtonProps } from './button' interface Api { fire: (options?: ConfettiOptions) => void