diff --git a/apps/dapp/.eslintrc b/apps/dapp/.eslintrc index ac52ac466..0142c3b9e 100644 --- a/apps/dapp/.eslintrc +++ b/apps/dapp/.eslintrc @@ -16,7 +16,8 @@ "react/prop-types": "off", "no-console": "off", "react/jsx-uses-react": "off", - "react/react-in-jsx-scope": "off" + "react/react-in-jsx-scope": "off", + "react/no-array-index-key": "error" }, "settings": { "react": { diff --git a/apps/dapp/package.json b/apps/dapp/package.json index 5641e7f0d..f7bb1ac1a 100644 --- a/apps/dapp/package.json +++ b/apps/dapp/package.json @@ -6,6 +6,7 @@ }, "scripts": { "typechain": "typechain --target=ethers-v5 --out-dir src/types/typechain --glob abi/**/*.json", + "lint": "eslint ./src", "prepare": "yarn typechain && yarn codegen:safe-api-v1", "dev": "vite", "compile": "tsc", diff --git a/apps/dapp/src/components/Layouts/Ascend/PillMenu/index.tsx b/apps/dapp/src/components/Layouts/Ascend/PillMenu/index.tsx index 63ae8ebc1..32a5f335a 100644 --- a/apps/dapp/src/components/Layouts/Ascend/PillMenu/index.tsx +++ b/apps/dapp/src/components/Layouts/Ascend/PillMenu/index.tsx @@ -16,8 +16,8 @@ export const PillMenu = ({ links }: Props) => { return ( - {links.map(({ to, label, onClick }, i) => ( - + {links.map(({ to, label, onClick }) => ( + {label} ))} diff --git a/apps/dapp/src/components/Layouts/V2Layout/Footer.tsx b/apps/dapp/src/components/Layouts/V2Layout/Footer.tsx index c406cab51..5d1e02c27 100644 --- a/apps/dapp/src/components/Layouts/V2Layout/Footer.tsx +++ b/apps/dapp/src/components/Layouts/V2Layout/Footer.tsx @@ -51,12 +51,12 @@ const Footer: React.FC = () => { return ( - {FooterContent.map((col, i) => ( - + {FooterContent.map((col) => ( +

{col.header}