From 913988b50fd33086dfb18cfed5fda5740717f4a8 Mon Sep 17 00:00:00 2001 From: Anthony Liddle Date: Thu, 2 Nov 2023 11:04:26 -0700 Subject: [PATCH 1/2] fix(glean): adding glean linter to pre commit hook --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 44bb881d59..02b3af2edf 100644 --- a/package.json +++ b/package.json @@ -140,7 +140,7 @@ } }, "simple-git-hooks": { - "pre-commit": "pnpm lint-staged" + "pre-commit": "pnpm lint-staged && pnpm lint:glean" }, "lint-staged": { "*": "eslint --fix" From f3c82d8557a64d48c4e325403f06c2b58c132505 Mon Sep 17 00:00:00 2001 From: Anthony Liddle Date: Thu, 2 Nov 2023 13:30:39 -0700 Subject: [PATCH 2/2] fix(glean): adding glean linting to the pr check --- .github/workflows/ci.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 00ebeaf7b8..b7b9db32a6 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -30,6 +30,9 @@ jobs: - name: ๐Ÿงช Test project run: pnpm test tests/unit + - name: ๐Ÿ”Ž Glean Lint + run: pnpm lint:glean + - name: ๐Ÿ“ Lint run: pnpm lint # Mozilla.Social changes have errors with this check, disabling for now.