From d217fa28556196764d80854a57dcbccfc9994101 Mon Sep 17 00:00:00 2001 From: Mikkel Malmberg Date: Mon, 15 Dec 2025 11:40:26 +0100 Subject: [PATCH] Add linter and update CI --- .github/workflows/integrate.yml | 13 +++++++++++++ .lunterc | 5 +++++ package.json | 4 +++- 3 files changed, 21 insertions(+), 1 deletion(-) create mode 100644 .github/workflows/integrate.yml create mode 100644 .lunterc diff --git a/.github/workflows/integrate.yml b/.github/workflows/integrate.yml new file mode 100644 index 0000000..a1f3626 --- /dev/null +++ b/.github/workflows/integrate.yml @@ -0,0 +1,13 @@ +name: Integrate +on: + push: + branches: [master] + pull_request: + branches: [master] +jobs: + lint: + runs-on: ubuntu-latest + name: Lint + steps: + - uses: holepunchto/actions/node-base@v1 + - run: npm run lint diff --git a/.lunterc b/.lunterc new file mode 100644 index 0000000..7e54ec9 --- /dev/null +++ b/.lunterc @@ -0,0 +1,5 @@ +{ + "rules": { + "no-var": "off" + } +} diff --git a/package.json b/package.json index df6bfe0..f05ac56 100644 --- a/package.json +++ b/package.json @@ -13,10 +13,12 @@ ], "author": "Mathias Buus Madsen ", "devDependencies": { + "lunte": "^1.0.0", "prettier": "^3.6.2", "prettier-config-holepunch": "^2.0.0" }, "scripts": { - "format": "prettier --write ." + "format": "prettier --write .", + "lint": "prettier --check . && lunte" } }