Skip to content

Commit 48fabd3

Browse files
committed
deps: add clang-format to lint-staged
1 parent 490043c commit 48fabd3

File tree

2 files changed

+4761
-4743
lines changed

2 files changed

+4761
-4743
lines changed

package.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,7 @@
6868
"@types/should": "^13.0.0",
6969
"body-parser": "^1.19.0",
7070
"cheerio": "^1.0.0-rc.3",
71+
"clang-format": "^1.4.0",
7172
"cookie-parser": "^1.4.5",
7273
"electron-mocha": "^8.2.1",
7374
"eslint": "^6.8.0",
@@ -101,6 +102,9 @@
101102
"*.ts": [
102103
"yarn prettier",
103104
"yarn lint:files --fix"
105+
],
106+
"*.{cpp,cc,h}": [
107+
"clang-format -style=file -i"
104108
]
105109
},
106110
"engines": {

0 commit comments

Comments
 (0)