diff --git a/.github/actions/lint-codebase/action.yml b/.github/actions/lint-codebase/action.yml new file mode 100644 index 000000000..859110d3f --- /dev/null +++ b/.github/actions/lint-codebase/action.yml @@ -0,0 +1,11 @@ +name: Linting +description: eslint the codebase + +runs: + using: composite + steps: + - uses: sibiraj-s/action-eslint@v3 + with: + eslint-args: '--ignore-pattern=.gitignore --quiet' + extensions: 'js,jsx,ts,tsx' + annotations: true diff --git a/.github/workflows/build-web-staging-ephemeral.yml b/.github/workflows/build-web-staging-ephemeral.yml index a05e8025a..3552f611b 100644 --- a/.github/workflows/build-web-staging-ephemeral.yml +++ b/.github/workflows/build-web-staging-ephemeral.yml @@ -40,6 +40,7 @@ jobs: uses: actions/checkout@v4 - uses: ./.github/actions/setup-base - uses: ./.github/actions/dependencies + - uses: ./.github/actions/lint-codebase - name: ⚙️ Compile web worker run: yarn vite build --config vite.worker.config.js - name: ⚙️ Compile web assets diff --git a/src/components/404/Error404.tsx b/src/components/404/Error404.tsx index 56d26b770..ffa94a02f 100644 --- a/src/components/404/Error404.tsx +++ b/src/components/404/Error404.tsx @@ -1,6 +1,6 @@ import { Button } from '@/components' import PageLayout from '@/components/layouts/PageLayout/PageLayout' -import { Link } from 'expo-router' +import { Link, router } from 'expo-router' import { Image, View } from 'tamagui' import Text from '../base/Text'