From 457cf0da9547d736a2f5d98db23e9ddc4d3cac15 Mon Sep 17 00:00:00 2001 From: Singa-pirate Date: Mon, 16 Sep 2024 16:27:07 +0800 Subject: [PATCH] Fix issue and test --- .github/workflows/lint.yml | 4 ++-- frontend/package.json | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index c3b06c74a8..83cf4dd8f5 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -26,9 +26,9 @@ jobs: working-directory: ./frontend - name: ESLint - run: npx eslint **/*.js + run: npx eslint src/**/*.js working-directory: ./frontend - - name: Lint + - name: Prettier run: npx prettier --check . working-directory: ./frontend diff --git a/frontend/package.json b/frontend/package.json index b53e5618bf..a5be8c864b 100644 --- a/frontend/package.json +++ b/frontend/package.json @@ -18,7 +18,7 @@ "build": "react-scripts build", "test": "react-scripts test", "eject": "react-scripts eject", - "lint": "eslint **/*.js & prettier --write ." + "lint": "eslint src/**/*.js --fix & prettier --write ." }, "eslintConfig": { "extends": [