From 3feab3d9576919cdff83dd1f56eb54efcbf5ccb3 Mon Sep 17 00:00:00 2001 From: Marius Alwan Meyer <22202402+sporqist@users.noreply.github.com> Date: Mon, 1 May 2023 23:04:01 +0000 Subject: [PATCH] simpler eslint --- .eslintrc.json | 10 ++++++---- .gitea/workflows/lint.yaml | 9 +++------ 2 files changed, 9 insertions(+), 10 deletions(-) diff --git a/.eslintrc.json b/.eslintrc.json index dd2c455..909074c 100644 --- a/.eslintrc.json +++ b/.eslintrc.json @@ -1,13 +1,15 @@ { "env": { "browser": true, - "es2021": true + "es6": true }, "extends": "eslint:recommended", - "overrides": [ - ], + "globals": { + "Atomics": "readonly", + "SharedArrayBuffer": "readonly" + }, "parserOptions": { - "ecmaVersion": "latest" + "ecmaVersion": 14 }, "rules": { } diff --git a/.gitea/workflows/lint.yaml b/.gitea/workflows/lint.yaml index e8ba2ef..2447dd9 100644 --- a/.gitea/workflows/lint.yaml +++ b/.gitea/workflows/lint.yaml @@ -17,7 +17,7 @@ jobs: steps: - name: Install Dependencies - run: apt update; apt install -y nodejs + run: apt update; apt install -y nodejs eslint - name: Check out Git repository uses: actions/checkout@v3 @@ -30,8 +30,5 @@ jobs: - name: Install Node.js dependencies run: npm ci - - name: Run linters - uses: https://github.com/wearerequired/lint-action@v2 - with: - eslint: true - prettier: true \ No newline at end of file + - name: Run eslint + run: eslint *.js