From 01acd19c030e117b48fdb368982d5b833a9faa80 Mon Sep 17 00:00:00 2001 From: Zabil Cheriya Maliackal Date: Fri, 23 Aug 2024 10:15:41 +0100 Subject: [PATCH] Add linting to pipeline Signed-off-by: Zabil Cheriya Maliackal --- .github/workflows/taiko.yml | 1 + package.json | 9 +++------ 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/.github/workflows/taiko.yml b/.github/workflows/taiko.yml index eaeb86a7a..8b994e05d 100644 --- a/.github/workflows/taiko.yml +++ b/.github/workflows/taiko.yml @@ -41,6 +41,7 @@ jobs: libasound-dev - name: unit-tests run: | + npm run lint:check npm test functional-tests: diff --git a/package.json b/package.json index 47ca2df22..359cf472f 100644 --- a/package.json +++ b/package.json @@ -9,8 +9,8 @@ }, "types": "./types/taiko/index.d.ts", "scripts": { - "lint:check": "npx @biomejs/biome check ./", - "lint:fix": "npx @biomejs/biome check --write ./", + "lint:check": "npx @biomejs/biome check", + "lint:fix": "npx @biomejs/biome check --write", "doc": "npm run doc:api && eleventy", "doc:serve": "npm run doc:api && eleventy --serve", "doc:api": "node lib/documentation.js", @@ -36,10 +36,7 @@ "headless-browser" ], "lint-staged": { - "**/*.{js,ts}": [ - "npm run lint", - "git add" - ] + "**/*.{js,ts}": ["npm run lint:fix", "git add"] }, "taiko": { "browser": {