chore: fix linter warnings #194
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
| permissions: | |
| actions: read | |
| name: ESLint and Prettier | |
| on: push | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| permissions: | |
| # required for all workflows | |
| security-events: write | |
| steps: | |
| - uses: actions/checkout@v6 | |
| with: | |
| persist-credentials: false | |
| - uses: actions/setup-node@v6 | |
| - name: Install modules | |
| run: npm install | |
| - name: Run prettier | |
| run: npx prettier --check . | |
| - name: Run ESLint | |
| run: npx eslint --ext ts --color -c .eslintrc.cjs src | |
| # GH's SARIF viewer does not support suppression directives so we get too many false positives | |
| # - name: SARIF | |
| # run: npx eslint -c .eslintrc.json -f @microsoft/eslint-formatter-sarif -o eslint.sarif . || true | |
| # - name: Upload SARIF file | |
| # uses: github/codeql-action/upload-sarif@v3 | |
| # with: | |
| # sarif_file: eslint.sarif |