Skip to content

Commit b8eef12

Browse files
committed
Added workflow
1 parent 677b566 commit b8eef12

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

.github/workflows/linter.yaml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
name: Prettier
2+
on:
3+
pull_request:
4+
push:
5+
6+
jobs:
7+
prettier:
8+
runs-on: ubuntu-latest
9+
steps:
10+
- uses: actions/checkout@v4
11+
- uses: actions/setup-node@v4
12+
- run: |
13+
yarn
14+
yarn prettier . --write
15+
yarn eslint . --ext .js,.jsx,.ts,.tsx --fix
16+
- uses: autofix-ci/action@v1
17+
with:
18+
commit-message: "Auto fix: Prettier & ESLint"

0 commit comments

Comments
 (0)