From fff19ae260cd1b2a8721c1f8ab21e23ea3d625bc Mon Sep 17 00:00:00 2001 From: Junhao Liao Date: Wed, 18 Sep 2024 15:08:04 -0400 Subject: [PATCH] Update lint script and GitHub workflow for CI. --- .github/workflows/lint.yaml | 2 +- new-log-viewer/package.json | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/lint.yaml b/.github/workflows/lint.yaml index 227f1271..3458466d 100644 --- a/.github/workflows/lint.yaml +++ b/.github/workflows/lint.yaml @@ -29,4 +29,4 @@ jobs: with: node-version: 22 - run: "npm --prefix new-log-viewer/ clean-install" - - run: "npm --prefix new-log-viewer/ run lint:check" + - run: "npm --prefix new-log-viewer/ run lint:ci" diff --git a/new-log-viewer/package.json b/new-log-viewer/package.json index a2f90f41..b86bc2e8 100644 --- a/new-log-viewer/package.json +++ b/new-log-viewer/package.json @@ -9,8 +9,9 @@ "lint": "npm run lint:check", "lint:check": "npm-run-all --sequential --continue-on-error lint:check:*", - "lint:check:css": "stylelint src/**/*.css --formatter github", + "lint:check:css": "stylelint src/**/*.css", "lint:check:js": "eslint src webpack.*.js --max-warnings 0", + "lint:ci": "npm-run-all --sequential --continue-on-error lint:check:js \"lint:check:css -- --formatter github\"", "lint:fix": "npm-run-all --parallel --continue-on-error \"lint:check:* -- --fix\"" }, "repository": {