diff --git a/.github/workflows/frontend-code.yml b/.github/workflows/frontend-code.yml index 25c7b1d4..18a234b0 100644 --- a/.github/workflows/frontend-code.yml +++ b/.github/workflows/frontend-code.yml @@ -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 @@ -31,3 +36,6 @@ jobs: with: cmd: test --passWithNoTests dir: "frontend" + + - name: eslint + uses: diff --git a/frontend/package.json b/frontend/package.json index baeb7c29..fab370df 100644 --- a/frontend/package.json +++ b/frontend/package.json @@ -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": [