Skip to content

Commit

Permalink
Merge branch 'dev' into ci/add-build-check
Browse files Browse the repository at this point in the history
  • Loading branch information
VmMad committed Jan 15, 2024
2 parents e6b350e + a3ed15c commit 7d5d8c5
Show file tree
Hide file tree
Showing 595 changed files with 18,312 additions and 17,788 deletions.
33 changes: 33 additions & 0 deletions .github/workflows/pr-lint-check.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: Format & Lint Check

on:
pull_request:
types: [opened, reopened, synchronize]

jobs:
lint-check:
strategy:
fail-fast: false
matrix:
project: [api, client]
runs-on: ubuntu-latest
defaults:
run:
working-directory: ${{ matrix.project }}
steps:
- uses: actions/checkout@v2

- name: Setup Node.js
uses: actions/setup-node@v2
with:
node-version: "16"

- name: Install Dependencies
run: npm install

- name: Format Check
run: npm run format:check

- name: Lint Check
run: npm run lint:check

2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -18,3 +18,5 @@ config.local.feed.json
config.staging.json
config.prod.json
env.js

**/.eslintcache
4 changes: 4 additions & 0 deletions .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/bin/sh
. "$(dirname "$0")/_/husky.sh"

npx lint-staged --allow-empty
3 changes: 3 additions & 0 deletions api/.eslintignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,5 @@
.eslintrc.js
*.d.ts

dist/**
node_modules/**
Loading

0 comments on commit 7d5d8c5

Please sign in to comment.