File tree 3 files changed +39
-5
lines changed
3 files changed +39
-5
lines changed Original file line number Diff line number Diff line change
1
+ name : 👔 Format
2
+
3
+ on :
4
+ workflow_dispatch : null
5
+
6
+ permissions :
7
+ contents : write
8
+
9
+ jobs :
10
+ format :
11
+ runs-on : ubuntu-latest
12
+
13
+ steps :
14
+ - name : Checkout repo
15
+ uses : actions/checkout@v4
16
+ - name : Setup node
17
+ uses : actions/setup-node@v4
18
+ - name : Install deps
19
+ run : npm install -f
20
+ - name : Format
21
+ run : npm run eslint-fix
22
+ - name : Commit
23
+ run : |
24
+ git config --local user.email "github-actions[bot]@users.noreply.github.com"
25
+ git config --local user.name "github-actions[bot]"
26
+
27
+ git add .
28
+ if [ -z "$(git status --porcelain)" ]; then
29
+ echo "no formatting changed"
30
+ exit 0
31
+ fi
32
+ git commit -m "chore: format"
33
+ git push
34
+ echo "pushed formatting changes https://github.com/$GITHUB_REPOSITORY/commit/$(git rev-parse HEAD)"
Original file line number Diff line number Diff line change 12
12
"css.validate" : false ,
13
13
"typescript.tsdk" : " node_modules/typescript/lib" ,
14
14
"editor.codeActionsOnSave" : {
15
- "source.fixAll.eslint" : true ,
15
+ "source.fixAll.eslint" : " explicit "
16
16
},
17
17
"vetur.validation.template" : false
18
18
}
Original file line number Diff line number Diff line change 15
15
"noFallthroughCasesInSwitch" : true ,
16
16
"baseUrl" : " ." ,
17
17
"paths" : {
18
- "*" : [" typings/*" ]
18
+ "*" : [" typings/*" ],
19
19
},
20
20
"declaration" : true ,
21
21
"esModuleInterop" : true ,
22
22
"resolveJsonModule" : true ,
23
23
24
- "skipLibCheck" : true
24
+ "skipLibCheck" : true ,
25
25
},
26
26
"include" : [
27
27
" src/**/*" ,
28
28
" tests/src/**/*" ,
29
29
" tools/**/*" ,
30
30
" typings/**/*" ,
31
- " benchmark/**/*"
31
+ " benchmark/**/*" ,
32
32
],
33
- "exclude" : [" lib/**/*" ]
33
+ "exclude" : [" lib/**/*" ],
34
34
}
You can’t perform that action at this time.
0 commit comments