Add @coderrob/eslint-plugin-zero-tolerance to ESLint config and fix all violations #87
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: CI | |
| on: | |
| push: | |
| branches: [main] | |
| pull_request: | |
| branches: [main] | |
| jobs: | |
| build: | |
| runs-on: ${{ matrix.os }} | |
| strategy: | |
| matrix: | |
| os: [ubuntu-latest, windows-latest, macos-latest] | |
| node-version: [20.x, 22.x] | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Use Node.js ${{ matrix.node-version }} | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: ${{ matrix.node-version }} | |
| cache: 'npm' | |
| - name: Install dependencies | |
| run: npm ci | |
| - name: Check for unused dependencies | |
| run: npm run deps:check | |
| - name: Type check | |
| run: npm run typecheck | |
| - name: Run linter | |
| run: npm run lint | |
| - name: Check for code duplication | |
| run: npm run duplication | |
| - name: Check for circular dependencies | |
| run: npm run madge | |
| - name: Compile TypeScript | |
| run: npm run compile | |
| - name: Compile tests | |
| run: npm run compile-tests | |
| - name: Run unit tests | |
| run: npm test | |
| - name: Package extension | |
| run: npm run package |