File tree 2 files changed +6
-2
lines changed 2 files changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -1511,13 +1511,15 @@ type DispatchProps = ReturnType<typeof mapDispatchToProps>;
1511
1511
## Common Npm Scripts
1512
1512
> Common TS-related npm scripts shared across projects
1513
1513
` ` `
1514
- " ci-check" : " npm run lint && npm run tsc && npm run test" ,
1514
+ " prettier" : " prettier --list-different 'src/**/*.ts' || (echo '\n Please fix code formatting by running:\n npm run prettier:fix\n '; exit 1)" ,
1515
+ " prettier:fix" : " prettier --write 'src/**/*.ts'" ,
1515
1516
" lint" : " tslint -p ./" ,
1516
1517
" tsc" : " tsc -p ./ --noEmit" ,
1517
1518
" tsc:watch" : " tsc -p ./ --noEmit -w" ,
1518
1519
" test" : " jest --config jest.config.json" ,
1519
1520
" test:watch" : " jest --config jest.config.json --watch" ,
1520
1521
" test:update" : " jest --config jest.config.json -u"
1522
+ " ci-check" : " npm run prettier && npm run lint && npm run tsc && npm run test" ,
1521
1523
` ` `
1522
1524
1523
1525
[⇧ back to top](#table-of-contents)
Original file line number Diff line number Diff line change @@ -580,13 +580,15 @@ type DispatchProps = ReturnType<typeof mapDispatchToProps>;
580
580
## Common Npm Scripts
581
581
> Common TS-related npm scripts shared across projects
582
582
` ` `
583
- " ci-check" : " npm run lint && npm run tsc && npm run test" ,
583
+ " prettier" : " prettier --list-different 'src/**/*.ts' || (echo '\n Please fix code formatting by running:\n npm run prettier:fix\n '; exit 1)" ,
584
+ " prettier:fix" : " prettier --write 'src/**/*.ts'" ,
584
585
" lint" : " tslint -p ./" ,
585
586
" tsc" : " tsc -p ./ --noEmit" ,
586
587
" tsc:watch" : " tsc -p ./ --noEmit -w" ,
587
588
" test" : " jest --config jest.config.json" ,
588
589
" test:watch" : " jest --config jest.config.json --watch" ,
589
590
" test:update" : " jest --config jest.config.json -u"
591
+ " ci-check" : " npm run prettier && npm run lint && npm run tsc && npm run test" ,
590
592
` ` `
591
593
592
594
[⇧ back to top](#table-of-contents)
You can’t perform that action at this time.
0 commit comments