dojo / cli

:rocket: Dojo - command line tooling.
http://dojo.io
Other
25 stars 34 forks source link

Add Prettier with tslint plugin and precommit hook #187

Closed agubler closed 6 years ago

agubler commented 6 years ago

Type: feature

The following has been addressed in the PR:

Description:

Adds support for Prettier to for code style rules and formatting. Include precommit hook that runs prettier on all .ts files and an npm script that runs prettier against the codebase.

Related to https://github.com/dojo/meta/issues/206

codecov[bot] commented 6 years ago

Codecov Report

Merging #187 into master will decrease coverage by 0.42%. The diff coverage is 94.28%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #187      +/-   ##
==========================================
- Coverage    94.8%   94.37%   -0.43%     
==========================================
  Files          19       19              
  Lines         481      480       -1     
  Branches       65       65              
==========================================
- Hits          456      453       -3     
- Misses         14       15       +1     
- Partials       11       12       +1
Impacted Files Coverage Δ
src/CommandHelper.ts 100% <ø> (ø) :arrow_up:
src/config.ts 100% <ø> (ø) :arrow_up:
src/Helper.ts 100% <ø> (ø) :arrow_up:
src/detachedCheckForNewCommands.ts 0% <0%> (ø) :arrow_up:
src/installableCommands.ts 90.16% <100%> (-1.64%) :arrow_down:
src/npmInstall.ts 85.71% <100%> (ø) :arrow_up:
src/index.ts 100% <100%> (ø) :arrow_up:
src/template.ts 78.94% <100%> (ø) :arrow_up:
src/loadCommands.ts 94.87% <100%> (ø) :arrow_up:
src/registerCommands.ts 100% <100%> (ø) :arrow_up:
... and 7 more

Continue to review full report at Codecov.

Legend - Click here to learn more Δ = absolute <relative> (impact), ø = not affected, ? = missing data Powered by Codecov. Last update a780d48...a0649e2. Read the comment docs.