From 1a5f5ffd79a083f6d843691fda89d7c7ef2fe0ba Mon Sep 17 00:00:00 2001 From: davikstone Date: Tue, 23 Jan 2024 14:32:02 +0100 Subject: [PATCH] add eslint --- .github/workflows/linting.yml | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 .github/workflows/linting.yml diff --git a/.github/workflows/linting.yml b/.github/workflows/linting.yml new file mode 100644 index 0000000000..086fb3ba61 --- /dev/null +++ b/.github/workflows/linting.yml @@ -0,0 +1,29 @@ +name: Lint + +on: + push: + branches: [ "staging","master" ] + pull_request: + branches: [ staging ,"master"] + +jobs: + lint: + runs-on: ubuntu-latest + permissions: + contents: read + security-events: write + + steps: + - name: Checkout code + uses: actions/checkout@v3 + + - name: Set up Node.js + uses: actions/setup-node@v2 + with: + node-version: '20' + + - name: Install dependencies + run: npm install + + - name: Run ESLint + run: npx eslint . --config .eslintrc.js