From 4e2b02d0a7d174ec7824fd5af72e10476fa26f0a Mon Sep 17 00:00:00 2001 From: Wojciech Maj Date: Wed, 14 Aug 2024 17:15:02 +0200 Subject: [PATCH] Enable noUnusedImports and noUnusedVariables in Biome --- biome.json | 4 ++++ sample/create-react-app-5/src/Sample.tsx | 2 +- sample/next-app/app/Sample.tsx | 2 +- sample/next-pages/pages/Sample.tsx | 2 +- sample/parcel2/Sample.tsx | 2 +- sample/vite/Sample.tsx | 2 +- sample/webpack5/Sample.tsx | 2 +- test/Test.tsx | 4 ++-- 8 files changed, 12 insertions(+), 8 deletions(-) diff --git a/biome.json b/biome.json index 02caffa10..c8ebc01be 100644 --- a/biome.json +++ b/biome.json @@ -12,6 +12,10 @@ "complexity": { "noUselessSwitchCase": "off" }, + "correctness": { + "noUnusedImports": "warn", + "noUnusedVariables": "warn" + }, "suspicious": { "noConsoleLog": "warn" } diff --git a/sample/create-react-app-5/src/Sample.tsx b/sample/create-react-app-5/src/Sample.tsx index a75b76bb6..b80d46c5e 100644 --- a/sample/create-react-app-5/src/Sample.tsx +++ b/sample/create-react-app-5/src/Sample.tsx @@ -66,7 +66,7 @@ export default function Sample() {
- {Array.from(new Array(numPages), (el, index) => ( + {Array.from(new Array(numPages), (_el, index) => (
- {Array.from(new Array(numPages), (el, index) => ( + {Array.from(new Array(numPages), (_el, index) => (
- {Array.from(new Array(numPages), (el, index) => ( + {Array.from(new Array(numPages), (_el, index) => (
- {Array.from(new Array(numPages), (el, index) => ( + {Array.from(new Array(numPages), (_el, index) => (
- {Array.from(new Array(numPages), (el, index) => ( + {Array.from(new Array(numPages), (_el, index) => (
- {Array.from(new Array(numPages), (el, index) => ( + {Array.from(new Array(numPages), (_el, index) => ( {render ? ( displayAll ? ( - Array.from(new Array(numPages), (el, index) => ( + Array.from(new Array(numPages), (_el, index) => ( )}
- {Array.from(new Array(numPages), (el, index) => ( + {Array.from(new Array(numPages), (_el, index) => (