From c6eebcd819217ee6165bf3d18cdd5e58cca58bd7 Mon Sep 17 00:00:00 2001 From: Ethan Lane Date: Fri, 21 Apr 2023 17:52:56 +0100 Subject: [PATCH] Setup linting --- .drone.yml | 6 ++++++ .eslintignore | 1 + .eslintrc | 3 ++- package.json | 2 +- 4 files changed, 10 insertions(+), 2 deletions(-) create mode 100644 .eslintignore diff --git a/.drone.yml b/.drone.yml index 64ed2ea..164bfaf 100644 --- a/.drone.yml +++ b/.drone.yml @@ -13,6 +13,12 @@ steps: - yarn test depends_on: - build + - name: lint + image: node + commands: + - yarn lint + depends_on: + - build trigger: branch: diff --git a/.eslintignore b/.eslintignore new file mode 100644 index 0000000..7773828 --- /dev/null +++ b/.eslintignore @@ -0,0 +1 @@ +dist/ \ No newline at end of file diff --git a/.eslintrc b/.eslintrc index c2abdca..39a8ec5 100644 --- a/.eslintrc +++ b/.eslintrc @@ -44,6 +44,7 @@ "module": "writable", "require": "writable", "process": "writable", - "console": "writable" + "console": "writable", + "jest": "writable" } } diff --git a/package.json b/package.json index 22d9195..1a59e34 100644 --- a/package.json +++ b/package.json @@ -24,7 +24,7 @@ "build": "tsc", "start": "ts-node app.ts", "test": "jest", - "lint": "eslint" + "lint": "eslint ." }, "bugs": { "url": "https://gitea.vylpes.xyz/RabbitLabs/random-bunny/issues",