Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ci/eslint #834

Draft
wants to merge 1 commit into
base: develop
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 17 additions & 0 deletions .github/actions/lint-codebase/action.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
name: Linting
description: eslint the codebase

runs:
using: composite
steps:
- name: linting
uses: sibiraj-s/action-eslint@v3
with:
eslint-args: '--ignore-pattern=.gitignore --quiet --fix'
extensions: 'js,jsx,ts,tsx'
annotations: true

- name: Commit changes
uses: EndBug/add-and-commit@v9
with:
message: 'ESLint Fixes'
1 change: 1 addition & 0 deletions .github/workflows/build-web-staging-ephemeral.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion src/components/404/Error404.tsx
Original file line number Diff line number Diff line change
@@ -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'

Check failure on line 3 in src/components/404/Error404.tsx

View workflow job for this annotation

GitHub Actions / build-web

'router' is defined but never used
import { Image, View } from 'tamagui'
import Text from '../base/Text'

Expand Down
Loading