From 268f9fe4b13c1c284621bd9160d0a2aa44957de2 Mon Sep 17 00:00:00 2001 From: wancat Date: Wed, 23 Aug 2023 10:56:21 +0800 Subject: [PATCH] feat: add eslint workflow --- .eslintignore | 3 ++- .github/workflows/eslint.yml | 22 ++++++++++++++++++++++ .prettierignore | 3 ++- 3 files changed, 26 insertions(+), 2 deletions(-) create mode 100644 .github/workflows/eslint.yml diff --git a/.eslintignore b/.eslintignore index 7172e54..8aace4d 100644 --- a/.eslintignore +++ b/.eslintignore @@ -1,4 +1,5 @@ vite.config.js .gitignore data -mongo-init.js \ No newline at end of file +mongo-init.js +app/dist \ No newline at end of file diff --git a/.github/workflows/eslint.yml b/.github/workflows/eslint.yml new file mode 100644 index 0000000..01f475e --- /dev/null +++ b/.github/workflows/eslint.yml @@ -0,0 +1,22 @@ +name: ESLint Checks + +on: + push: + +jobs: + lint: + runs-on: ubuntu-latest + + steps: + - name: Checkout + uses: actions/checkout@v3 + + - uses: actions/setup-node@v3 + with: + node-version: 20 + + - name: Install dependencies + run: yarn install + + - name: Lint + run: yarn lint diff --git a/.prettierignore b/.prettierignore index 07f43b8..678ec4e 100644 --- a/.prettierignore +++ b/.prettierignore @@ -1 +1,2 @@ -data/* \ No newline at end of file +data/* +app/dist \ No newline at end of file