Bump eslint from 7.29.0 to 9.4.0 #91
Workflow file for this run
This file contains 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: Code quality | |
on: pull_request | |
jobs: | |
eslint: | |
name: ESLint | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/[email protected] | |
- name: Cache dependencies | |
uses: actions/[email protected] | |
with: | |
path: ./.npm | |
key: ${{ runner.os }}-npm-${{ hashFiles('**/package-lock.json') }} | |
restore-keys: | | |
${{ runner.os }}-npm- | |
- name: Setup Node.js | |
uses: actions/[email protected] | |
with: | |
node-version: '16.x' | |
- name: Install npm dependencies | |
run: npm ci --prefer-offline --cache=./.npm | |
- name: Lint with ESLint | |
run: npx eslint . --max-warnings 0 | |
prettier: | |
name: Prettier | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/[email protected] | |
- name: Cache dependencies | |
uses: actions/[email protected] | |
with: | |
path: ./.npm | |
key: ${{ runner.os }}-npm-${{ hashFiles('**/package-lock.json') }} | |
restore-keys: | | |
${{ runner.os }}-npm- | |
- name: Setup Node.js | |
uses: actions/[email protected] | |
with: | |
node-version: '16.x' | |
- name: Install npm dependencies | |
run: npm ci --prefer-offline --cache=./.npm | |
- name: Lint with ESLint | |
run: npx prettier --check . |