Make the linter work on src
diff --git a/.asf.yaml b/.asf.yaml
index 1f3e325..9ecd1d0 100644
--- a/.asf.yaml
+++ b/.asf.yaml
@@ -30,3 +30,7 @@
squash: true
merge: false
rebase: false
+ protected_branches:
+ master:
+ required_pull_request_reviews:
+ dismiss_stale_reviews: true
diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml
index e338f0b..df8a24d 100644
--- a/.github/workflows/build.yaml
+++ b/.github/workflows/build.yaml
@@ -50,4 +50,5 @@
- name: Build
run: |
npm i
+ npm run lint
npm run build
diff --git a/.github/workflows/test.yaml b/.github/workflows/test.yaml
index 1175d3b..051fea3 100644
--- a/.github/workflows/test.yaml
+++ b/.github/workflows/test.yaml
@@ -50,4 +50,5 @@
- name: Test
run: |
npm i
+ npm run lint
npm run test
diff --git a/package.json b/package.json
index 2edffb4..d736ac1 100644
--- a/package.json
+++ b/package.json
@@ -8,7 +8,7 @@
"prepare": "npm run generate-source",
"generate-source": "scripts/protoc.sh",
"build": "tsc --build src",
- "lint": "tslint -p tsconfig.json",
+ "lint": "tslint -p src/tsconfig.json src/**/*.ts",
"test": "DEBUG=testcontainers* jest",
"format": "prettier --write \"src/**/*.ts\"",
"clean": "(rm -rf src/proto || true) && (rm -rf src/proto || true) && (rm -rf lib || true)"