Skip to content

prettier

prettier #34

Workflow file for this run

name: ESLint Check
on: push
jobs:
lint-check:
name: Lint with ESLint
runs-on: ubuntu-latest
steps:
- name: Check out code
uses: actions/checkout@v2
- name: Setup Node.js
uses: actions/setup-node@v2
with:
node-version: '14' # or any version you prefer
- name: Install Dependencies
run: npm ci
- name: Get list of files in this PR
id: get-changed-files
uses: lots0logs/[email protected]
with:
token: ${{ secrets.GITHUB_TOKEN }}
- name: Lint with ESLint
run: |
for file in ${{ steps.get-changed-files.outputs.all }}
do
npx eslint $file --ext .js,.jsx,.ts,.tsx
done