File tree Expand file tree Collapse file tree 4 files changed +500
-69
lines changed Expand file tree Collapse file tree 4 files changed +500
-69
lines changed Original file line number Diff line number Diff line change 17
17
],
18
18
"scripts" : {
19
19
"dev" : " lerna run --parallel --scope @firebase/* --scope firebase dev" ,
20
+ "precommit" : " lint-staged" ,
20
21
"prepare" : " lerna run --scope @firebase/* --scope firebase prepare" ,
21
22
"prepush" : " node tools/gitHooks/prepush.js" ,
22
23
"link:packages" : " lerna exec --scope @firebase/* --scope firebase -- yarn link" ,
52
53
"istanbul-instrumenter-loader" : " ^3.0.0" ,
53
54
"lcov-result-merger" : " ^2.0.0" ,
54
55
"lerna" : " ^2.9.0" ,
56
+ "lint-staged" : " ^7.0.0" ,
55
57
"listr" : " ^0.13.0" ,
56
58
"merge2" : " ^1.2.1" ,
57
59
"mkdirp" : " ^0.5.1" ,
62
64
"semver" : " ^5.5.0" ,
63
65
"simple-git" : " ^1.91.0" ,
64
66
"yargs" : " ^11.0.0"
67
+ },
68
+ "lint-staged" : {
69
+ "*.ts" : [
70
+ " prettier --write" ,
71
+ " git add"
72
+ ],
73
+ "*.js" : [
74
+ " prettier --write" ,
75
+ " git add"
76
+ ]
65
77
}
66
78
}
Original file line number Diff line number Diff line change 14
14
* limitations under the License.
15
15
*/
16
16
17
- const { doPrettierCommit } = require ( './prettier' ) ;
18
17
const { doLicenseCommit } = require ( './license' ) ;
19
18
const { resolve } = require ( 'path' ) ;
20
19
const simpleGit = require ( 'simple-git/promise' ) ;
@@ -43,9 +42,6 @@ $ git stash pop
43
42
return process . exit ( 1 ) ;
44
43
}
45
44
46
- // Style the code
47
- await doPrettierCommit ( ) ;
48
-
49
45
// Validate License headers exist
50
46
await doLicenseCommit ( ) ;
51
47
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments