From 41adad7748567981927876389fc6ce8b72e556ae Mon Sep 17 00:00:00 2001 From: Wayne Duran Date: Sat, 28 Aug 2021 22:16:03 +0800 Subject: [PATCH] fix: eslint warnings and fail on warning in test workflow --- .github/workflows/test.yml | 2 +- src/pages/main/MainPage.tsx | 2 -- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 3e1c93d..18c0895 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -51,7 +51,7 @@ jobs: run: npm install - name: Lint - run: npx eslint . + run: npx eslint --max-warnings=0 . - name: Unit Tests run: npm run test:ci diff --git a/src/pages/main/MainPage.tsx b/src/pages/main/MainPage.tsx index 2f6944e..9685c8f 100644 --- a/src/pages/main/MainPage.tsx +++ b/src/pages/main/MainPage.tsx @@ -1,8 +1,6 @@ import React from 'react'; -import { Link } from 'react-router-dom'; import { List, ListItem, ListItemText, Container, - Link as MuiLink, Typography, Paper, makeStyles,