chore: adjust a few more linting rules #787
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: JavaScript/TypeScript linting | |
| on: [ pull_request ] | |
| jobs: | |
| lint: | |
| name: Lint all files | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Setup Node.js | |
| uses: actions/setup-node@820762786026740c76f36085b0efc47a31fe5020 # v7.0.0 | |
| with: | |
| node-version: lts/* | |
| - name: Checkout the repository | |
| uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 | |
| - name: Setup pnpm | |
| uses: pnpm/action-setup@0ebf47130e4866e96fce0953f49152a61190b271 # v6.0.9 | |
| with: | |
| cache: true | |
| - name: Install dependencies | |
| # Ignore build scripts as pnpm ignores the optionality of peer dependencies in | |
| # the root package.json, forcing some of the native dependencies to be installed | |
| run: pnpm i --no-optional --frozen-lockfile --ignore-scripts | |
| - name: Lint all files | |
| run: pnpm run lint |