Skip to content

Commit 7825085

Browse files
author
LongYinan
committed
chore: add yaml prettier hook into lint-staged
1 parent d08bc96 commit 7825085

File tree

3 files changed

+7
-5
lines changed

3 files changed

+7
-5
lines changed

.github/workflows/ci.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ jobs:
1414

1515
steps:
1616
- uses: actions/checkout@v2
17-
17+
1818
- name: Setup node
1919
uses: actions/setup-node@v1
2020
with:
@@ -29,7 +29,7 @@ jobs:
2929
- name: Install llvm
3030
if: matrix.os == 'windows-latest'
3131
run: choco install -y llvm
32-
32+
3333
- name: Set llvm path
3434
if: matrix.os == 'windows-latest'
3535
uses: allenevans/[email protected]
@@ -110,12 +110,12 @@ jobs:
110110

111111
steps:
112112
- uses: actions/checkout@v2
113-
113+
114114
- name: Setup node
115115
uses: actions/setup-node@v1
116116
with:
117117
node-version: 12
118-
118+
119119
- name: Set platform name
120120
run: |
121121
export NODE_PLATFORM_NAME=$(node -e "console.log(require('os').platform())")

.github/workflows/dependabot-auto-merge.yaml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,4 +23,3 @@ jobs:
2323
uses: ridedott/dependabot-auto-merge-action@master
2424
with:
2525
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
26-

package.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,9 @@
5252
"*.@(js|ts|tsx)": [
5353
"prettier --write",
5454
"eslint -c .eslintrc.yml --fix"
55+
],
56+
"*.@(yml|yaml)": [
57+
"prettier --parser yaml --write"
5558
]
5659
},
5760
"prettier": {

0 commit comments

Comments
 (0)