From 806120b3aa8028f58a552ac2e0a9752ca7899d87 Mon Sep 17 00:00:00 2001 From: Damien Pobel Date: Sat, 30 Dec 2023 13:41:48 +0100 Subject: [PATCH 1/2] ci: properly run eslint to check everything --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index d664240..7c1046f 100644 --- a/package.json +++ b/package.json @@ -5,7 +5,7 @@ "main": "index.js", "scripts": { "test": "npm run lint && mocha tests", - "lint": "prettier -c . && eslint *.js" + "lint": "prettier -c . && eslint ." }, "repository": { "type": "git", From c133a8c91294907896021f91f44baf94d99cea67 Mon Sep 17 00:00:00 2001 From: Damien Pobel Date: Sat, 30 Dec 2023 13:42:08 +0100 Subject: [PATCH 2/2] ci: add node to eslint env --- .eslintrc.js | 1 + 1 file changed, 1 insertion(+) diff --git a/.eslintrc.js b/.eslintrc.js index 0bb6d1e..c1b1a64 100644 --- a/.eslintrc.js +++ b/.eslintrc.js @@ -1,5 +1,6 @@ module.exports = { env: { + node: true, commonjs: true, es2021: true, },