Skip to content

Commit

Permalink
misc: simplify code formatting script
Browse files Browse the repository at this point in the history
  • Loading branch information
saghul committed Apr 17, 2023
1 parent 6e20800 commit be1ef90
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
"scripts": {
"lint": "eslint --max-warnings 0 . && tsc --noEmit",
"prepare": "husky install && bob build",
"format": "clang-format -i ios/RCTWebRTC/* android/src/main/java/com/oney/WebRTCModule/*.java android/src/main/java/com/oney/WebRTCModule/videoEffects/*.java android/src/main/java/com/oney/WebRTCModule/webrtcutils/*.java"
"format": "tools/format.sh"
},
"bugs": {
"url": "https://github.com/react-native-webrtc/react-native-webrtc/issues"
Expand Down
6 changes: 6 additions & 0 deletions tools/format.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
#!/bin/bash

#set -x

exec git ls-files | grep -e "\(\.java\|\.h\|\.m\)$" | grep -v examples | xargs clang-format -i

0 comments on commit be1ef90

Please sign in to comment.