Skip to content

Commit

Permalink
ci: add linting
Browse files Browse the repository at this point in the history
  • Loading branch information
KevinWu098 committed May 16, 2024
1 parent a6972cc commit ee56ec5
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
5 changes: 4 additions & 1 deletion .github/workflows/node.js.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,4 +26,7 @@ jobs:
run: npm ci

- name: Build React project
run: npm run build
run: npm run build

- name: Run linter
run: npm run lint
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,8 @@
"postbuild": "cp build/index.html build/404.html",
"test": "react-scripts test",
"eject": "react-scripts eject",
"format": "npx prettier --write ."
"format": "npx prettier --write .",
"lint": "eslint src"
},
"eslintConfig": {
"extends": [
Expand Down

0 comments on commit ee56ec5

Please sign in to comment.