Skip to content

Commit

Permalink
Modify lint command (#74)
Browse files Browse the repository at this point in the history
  • Loading branch information
khkim6040 authored Apr 29, 2024
1 parent 9d3326d commit f5b0ff9
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
1 change: 1 addition & 0 deletions .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,5 +19,6 @@ module.exports = {
rules: {
'react/prop-types': 'off',
'react/react-in-jsx-scope': 'off',
'prettier/prettier': ['error', { endOfLine: 'auto' }],
},
};
6 changes: 3 additions & 3 deletions .github/workflows/github-action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,11 @@ jobs:
with:
node-version: '20'
- name: Install dependencies
run: npm install
run: npm install -D
- name: Run Prettier
run: npx prettier --check .
run: npm run format_check
- name: Run ESLint
run: npx next lint
run: npm run lint

docker_build_and_push:
name: Docker build and push
Expand Down
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
"dev": "next dev",
"build": "next build",
"start": "next start -p 3001",
"format_check": "prettier --c .",
"format": "prettier --w .",
"lint": "next lint"
},
Expand Down

0 comments on commit f5b0ff9

Please sign in to comment.