Skip to content
This repository has been archived by the owner on Jul 23, 2024. It is now read-only.

Commit

Permalink
added eslint to ci
Browse files Browse the repository at this point in the history
  • Loading branch information
kaimsfd committed Oct 6, 2023
1 parent cb0d1b9 commit 16dd189
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
8 changes: 8 additions & 0 deletions .github/workflows/frontend-code.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,11 @@ jobs:
steps:
- name: Checkout Code
uses: actions/checkout@v4.1.0
uses: actions/setup-node@v3.8.1
with:
node-version: 18.x
- name: eslint
run: yarn eslint-lint

- name: Node Action
uses: actions/setup-node@v3.8.1
Expand All @@ -31,3 +36,6 @@ jobs:
with:
cmd: test --passWithNoTests
dir: "frontend"

- name: eslint
uses:
3 changes: 1 addition & 2 deletions frontend/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -56,8 +56,7 @@
"build": "node scripts/build.js",
"test": "node scripts/test.js",
"format": "prettier --write **/*.{ja, jsx, ts,tsx,css}",
"lint:js": "**/*.{js, jsx, ts, tsx, css}",
"lint": "yarn run lint:js"
"eslint-lint": "eslint . --ext .js,.ts,.jsx,.tsx"
},
"eslintConfig": {
"extends": [
Expand Down

0 comments on commit 16dd189

Please sign in to comment.