Skip to content

Commit ef19886

Browse files
committed
chore: format
1 parent cfd7f31 commit ef19886

File tree

3 files changed

+38
-4
lines changed

3 files changed

+38
-4
lines changed

.github/workflows/format.yml

+34
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
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+
steps:
13+
- uses: actions/checkout@v4
14+
- uses: pnpm/action-setup@v2
15+
- uses: actions/setup-node@v4
16+
- name: Install Packages
17+
run: pnpm install
18+
- name: Format
19+
run: pnpm run eslint-fix
20+
- name: Commit
21+
run: |
22+
git config --local user.email "github-actions[bot]@users.noreply.github.com"
23+
git config --local user.name "github-actions[bot]"
24+
25+
git add .
26+
if [ -z "$(git status --porcelain)" ]; then
27+
echo "no formatting changed"
28+
exit 0
29+
fi
30+
pnpm update prettier
31+
git add .
32+
git commit -m "chore: format"
33+
git push
34+
echo "pushed formatting changes https://github.com/$GITHUB_REPOSITORY/commit/$(git rev-parse HEAD)"

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@
100100
"mocha": "^10.2.0",
101101
"mocha-chai-jest-snapshot": "^1.1.4",
102102
"nyc": "^15.1.0",
103-
"prettier": "~3.2.0",
103+
"prettier": "~3.2.5",
104104
"prettier-plugin-pkg": "^0.18.0",
105105
"prettier-plugin-svelte": "^3.1.2",
106106
"rimraf": "^5.0.5",

tsconfig.json

+3-3
Original file line numberDiff line numberDiff line change
@@ -14,12 +14,12 @@
1414
"esModuleInterop": true,
1515
"resolveJsonModule": true,
1616

17-
"skipLibCheck": true,
17+
"skipLibCheck": true
1818
},
1919
"include": [
2020
"src/**/*.ts",
2121
"tests/**/*.ts",
2222
"tools/**/*.ts",
23-
"benchmark/**/*.ts",
24-
],
23+
"benchmark/**/*.ts"
24+
]
2525
}

0 commit comments

Comments
 (0)