-
Notifications
You must be signed in to change notification settings - Fork 0
37 lines (31 loc) · 804 Bytes
/
lint.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
name: Lint
on:
# Trigger the workflow on push or pull request,
# but only for the main branch
push:
branches:
- Release
pull_request:
branches:
- Release
jobs:
run-linters:
name: Run linters
runs-on: ubuntu-latest
steps:
- name: Check out Git repository
uses: actions/checkout@v3
- name: Set up Node.js
uses: actions/setup-node@v1
with:
node-version: 18.17.1
# ESLint and Prettier must be in `package.json`
- name: Install Node.js dependencies
run: npx ci
- name: Run linters
uses: wearerequired/lint-action@v2
with:
auto_fix: true
prettier: true
prettier_auto_fix: true
prettier_args: '--write "**/*.{css,js,json,jsx,ts,tsx}"'