From ff00588b07ea75694c13744186380ff7844237c1 Mon Sep 17 00:00:00 2001 From: Wan <495709+wa0x6e@users.noreply.github.com> Date: Thu, 17 Aug 2023 16:23:22 +0900 Subject: [PATCH] chore: add lint to CI (#130) --- .github/workflows/lint.yml | 8 ++++++++ package.json | 4 +++- 2 files changed, 11 insertions(+), 1 deletion(-) create mode 100644 .github/workflows/lint.yml diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml new file mode 100644 index 0000000..0ef1f53 --- /dev/null +++ b/.github/workflows/lint.yml @@ -0,0 +1,8 @@ +name: Lint + +on: [push] + +jobs: + lint: + uses: snapshot-labs/actions/.github/workflows/lint.yml@main + secrets: inherit diff --git a/package.json b/package.json index c6511ed..8c9dbc0 100644 --- a/package.json +++ b/package.json @@ -3,7 +3,9 @@ "version": "0.1.0", "license": "MIT", "scripts": { - "lint": "eslint . --ext .ts --fix", + "lint": "eslint src/ --ext .ts,.json", + "lint:fix": "yarn lint --fix", + "typecheck": "tsc --noEmit", "build": "tsc", "dev": "nodemon src/index.ts", "start": "node dist/src/index.js"