Skip to content

Commit

Permalink
lint all apps
Browse files Browse the repository at this point in the history
  • Loading branch information
lukesthl committed Oct 14, 2023
1 parent 504bce1 commit 4382c5f
Show file tree
Hide file tree
Showing 4 changed files with 199 additions and 3,506 deletions.
23 changes: 8 additions & 15 deletions .github/workflows/lint-api.yml
Original file line number Diff line number Diff line change
@@ -1,11 +1,9 @@
name: Lint API
name: Lint

on:
push:
branches:
- main
paths:
- 'apps/api/**'
pull_request:
branches:
- main
Expand All @@ -31,17 +29,12 @@ jobs:
with:
node-version: 20

- uses: pnpm/action-setup@v2
name: Install pnpm
- name: Run install
uses: borales/actions-yarn@v4
with:
version: 8
run_install: false
cmd: install

- name: Go to apps/api
run: cd apps/api

- name: Install dependencies
run: pnpm install

- name: Run linters
run: 'pnpm run lint && pnpm run format'
- name: Run lint
uses: borales/actions-yarn@v4
with:
cmd: lint
5 changes: 3 additions & 2 deletions apps/expo/package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "expo-supertokens",
"name": "app",
"main": "expo-router/entry",
"version": "1.0.0",
"scripts": {
Expand All @@ -9,7 +9,8 @@
"web": "expo start --web",
"test": "jest --watchAll",
"export": "expo export --platform web",
"dev:client": "npx expo start -c --dev-client"
"dev:client": "npx expo start -c --dev-client",
"lint": "echo \"No linting configured\""
},
"jest": {
"preset": "jest-expo"
Expand Down
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
"web:prod": "yarn workspace next-app build",
"web:prod:serve": "yarn workspace next-app serve",
"fix": "manypkg fix",
"lint": "yarn workspaces foreach -pi run lint",
"postinstall": "yarn check-deps && yarn build",
"build": "yarn workspaces foreach --exclude next-app run build",
"upgrade:tamagui": "yarn up '*tamagui*'@latest '@tamagui/*'@latest react-native-web-lite@latest",
Expand Down
Loading

0 comments on commit 4382c5f

Please sign in to comment.