From 02a1ef7db89b8daca1dab237fc697692a9c70aad Mon Sep 17 00:00:00 2001 From: Finn Christiansen Date: Thu, 1 Jun 2023 21:21:06 +0200 Subject: [PATCH] add javascript/eslint action --- .eslintrc.js | 14 ++++++++++++++ .gitea/workflows/javascript.yaml | 20 ++++++++++++++++++++ 2 files changed, 34 insertions(+) create mode 100644 .eslintrc.js create mode 100644 .gitea/workflows/javascript.yaml diff --git a/.eslintrc.js b/.eslintrc.js new file mode 100644 index 0000000..c4ebf4b --- /dev/null +++ b/.eslintrc.js @@ -0,0 +1,14 @@ +module.exports = { + "env": { + "browser": true, + "es2021": true + }, + "extends": "eslint:recommended", + "overrides": [ + ], + "parserOptions": { + "ecmaVersion": "latest" + }, + "rules": { + } +} diff --git a/.gitea/workflows/javascript.yaml b/.gitea/workflows/javascript.yaml new file mode 100644 index 0000000..132cc3d --- /dev/null +++ b/.gitea/workflows/javascript.yaml @@ -0,0 +1,20 @@ +name: Javascript Linter +run-name: ${{ gitea.actor }} is running eslint +on: [push] + +jobs: + Javascript-Lint: + runs-on: ubuntu-22.04 + + steps: + - name: Checkout + uses: actions/checkout@v3 + - uses: actions/setup-node@v3 + + - name: Install dependencies + run: | + npm install eslint + + - name: Run checking + run: | + npx eslint app/static/app.js