From 1b2e300e1e5469f75ad5f7b8c534ac0d4ab8f256 Mon Sep 17 00:00:00 2001 From: Ijemma Onwuzulike Date: Thu, 16 Feb 2023 07:49:14 -0500 Subject: [PATCH] chore: change eslint action runner --- .github/workflows/lint.yml | 6 ++---- package.json | 16 ++++++++-------- src/pages/_app.js | 3 +-- src/shared/constants/ChakraTheme.js | 8 -------- 4 files changed, 11 insertions(+), 22 deletions(-) delete mode 100644 src/shared/constants/ChakraTheme.js diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index bf0346fe..fd3aef82 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -19,7 +19,5 @@ jobs: - name: Install Node.js dependencies run: yarn install - - name: Run linters - uses: wearerequired/lint-action@v1 - with: - eslint: true \ No newline at end of file + - name: Run ESLint + run: yarn run eslint ./src --ext .js,.jsx,.ts,.tsx \ No newline at end of file diff --git a/package.json b/package.json index b8a866df..2074eb60 100644 --- a/package.json +++ b/package.json @@ -145,14 +145,14 @@ "babel-loader": "^8.1.0", "cross-env": "^7.0.2", "cypress": "^6.0.0", - "eslint": "7.10.0", - "eslint-config-airbnb": "^18.2.0", - "eslint-config-next": "^12.0.7", - "eslint-config-prettier": "^6.12.0", - "eslint-plugin-cypress": "^2.11.2", - "eslint-plugin-import": "^2.22.1", - "eslint-plugin-jsx-a11y": "^6.3.1", - "eslint-plugin-react": "^7.21.3", + "eslint": "8.34.0", + "eslint-config-airbnb": "19.0.4", + "eslint-config-next": "13.1.6", + "eslint-config-prettier": "8.6.0", + "eslint-plugin-cypress": "2.12.1", + "eslint-plugin-import": "2.27.5", + "eslint-plugin-jsx-a11y": "6.7.1", + "eslint-plugin-react": "7.32.2", "husky": "^4.3.0", "jest": "^29.2.2", "lint-staged": "^10.4.0", diff --git a/src/pages/_app.js b/src/pages/_app.js index f39371d3..529d009d 100644 --- a/src/pages/_app.js +++ b/src/pages/_app.js @@ -7,7 +7,6 @@ import i18n from 'i18next'; import { initReactI18next } from 'react-i18next'; import { appWithTranslation } from 'next-i18next'; import Head from 'next/head'; -import ChakraTheme from '../shared/constants/ChakraTheme'; import en from '../public/locales/en'; import ig from '../public/locales/ig'; import * as gtag from '../lib/gtag'; @@ -50,7 +49,7 @@ const MainApp = ({ Component, pageProps, ...rest }) => { Igbo API - The First African Language API <> - + {/* Global Site Tag (gtag.js) - Google Analytics */} diff --git a/src/shared/constants/ChakraTheme.js b/src/shared/constants/ChakraTheme.js deleted file mode 100644 index 1bf9da39..00000000 --- a/src/shared/constants/ChakraTheme.js +++ /dev/null @@ -1,8 +0,0 @@ -import { extendTheme } from '@chakra-ui/react'; - -export default extendTheme({ - fonts: { - heading: 'Silka', - body: 'Silka,Noto Sans,Inter,-apple-system,BlinkMacSystemFont,Noto Sans,Arial', - }, -});