Skip to content

Commit 070a265

Browse files
committed
Make sure we validate formatting on non-c# code
1 parent c734d39 commit 070a265

File tree

4 files changed

+19
-7
lines changed

4 files changed

+19
-7
lines changed

.github/workflows/ValidatePullRequest.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,14 @@ jobs:
3636
rm -r -f ./Tests/CSharpier.MsBuild.Test
3737
dotnet tool restore
3838
dotnet csharpier check .
39+
cd ./Src/CSharpier.Rider
40+
npm install
41+
npm run prettier:check
42+
cd ..
43+
cd ./CSharpier.Playground/ClientApp
44+
npm install
45+
npm run prettier:check
46+
3947
check_todos:
4048
runs-on: ubuntu-latest
4149
name: Check TODOs

Src/CSharpier.Playground/ClientApp/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@
2727
"scripts": {
2828
"build": "tsc && vite build",
2929
"prettier": "prettier --parser typescript ./src/**/*.{ts,tsx} --write",
30+
"prettier:check": "prettier --parser typescript ./src/**/*.{ts,tsx} --check",
3031
"start": "echo Starting the development server && vite"
3132
},
3233
"browserslist": {

Src/CSharpier.Playground/ClientApp/src/App.tsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@ configure({
99
enforceActions: "always",
1010
});
1111

12+
13+
1214
export const App = () => {
1315
return (
1416
<AppStateContext.Provider value={appState}>

Src/CSharpier.Rider/package.json

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
11
{
2-
"scripts": {
3-
"prettier": "prettier ./**/*.java --write"
4-
},
5-
"devDependencies": {
6-
"prettier": "^3.4.2",
7-
"prettier-plugin-java": "^2.6.4"
8-
}
2+
"scripts": {
3+
"prettier": "prettier ./**/*.java --write",
4+
"prettier:check": "prettier ./**/*.java --check"
5+
},
6+
"devDependencies": {
7+
"prettier": "^3.4.2",
8+
"prettier-plugin-java": "^2.6.4"
9+
}
910
}

0 commit comments

Comments
 (0)