diff --git a/.eslintrc.js b/.eslintrc.js index 9cc8144..f394bc0 100644 --- a/.eslintrc.js +++ b/.eslintrc.js @@ -19,5 +19,6 @@ module.exports = { rules: { 'react/prop-types': 'off', 'react/react-in-jsx-scope': 'off', + 'prettier/prettier': ['error', { endOfLine: 'auto' }], }, }; diff --git a/.github/workflows/github-action.yaml b/.github/workflows/github-action.yaml index 320f5ce..b75a0df 100644 --- a/.github/workflows/github-action.yaml +++ b/.github/workflows/github-action.yaml @@ -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 diff --git a/package.json b/package.json index 4958990..1ddcc6d 100644 --- a/package.json +++ b/package.json @@ -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" },