Skip to content

Commit

Permalink
Update lint workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
Mrtenz committed Feb 14, 2025
1 parent 0cd680f commit 3c5a085
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 8 deletions.
15 changes: 10 additions & 5 deletions .github/workflows/build-lint-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -168,10 +168,6 @@ jobs:
name: Lint
runs-on: ubuntu-latest
needs: prepare
strategy:
fail-fast: false
matrix:
package-name: ${{ fromJson(needs.prepare.outputs.all-workspace-package-names) }}
steps:
- uses: actions/checkout@v4
- name: Setup Node
Expand All @@ -180,7 +176,16 @@ jobs:
node-version-file: '.nvmrc'
cache: yarn
- run: yarn --immutable --immutable-cache
- run: yarn workspace ${{ matrix.package-name }} run lint:ci
- name: ESLint
run: yarn lint:eslint
- name: Prettier
run: yarn lint:misc --check
- name: TSConfig
run: yarn lint:tsconfig
- name: Yarn constraints
run: yarn constraints
- name: Dependencies
run: yarn lint:dependencies
- name: Require clean working directory
shell: bash
run: |
Expand Down
5 changes: 2 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,9 @@
"get-release-tag": "ts-node --swc scripts/get-release-tag.ts",
"postinstall": "simple-git-hooks",
"install-chrome": "./scripts/install-chrome.sh",
"lint": "yarn workspaces foreach --all --parallel run lint:eslint && yarn lint:misc --check && yarn lint:tsconfig && yarn constraints && yarn lint:dependencies",
"lint:ci": "yarn lint:eslint && yarn lint:misc --check && yarn lint:tsconfig && yarn constraints && yarn lint:dependencies",
"lint": "yarn lint:eslint && yarn lint:misc --check && yarn lint:tsconfig && yarn constraints && yarn lint:dependencies",
"lint:dependencies": "yarn workspaces foreach --all --parallel --verbose run lint:dependencies && yarn dedupe --check",
"lint:eslint": "eslint . --cache --ext js,cjs,mjs,jsx,ts,mts,cts,tsx",
"lint:eslint": "eslint . --cache",
"lint:fix": "yarn workspaces foreach --all --parallel run lint:eslint --fix && yarn lint:misc --write && yarn lint:tsconfig && yarn constraints --fix && yarn dedupe",
"lint:misc": "prettier --no-error-on-unmatched-pattern --loglevel warn '**/*.json' '**/*.md' '!**/CHANGELOG.md' '**/*.yml' '**/*.html'",
"lint:tsconfig": "node scripts/verify-tsconfig.mjs",
Expand Down

0 comments on commit 3c5a085

Please sign in to comment.