Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Prettier with tslint plugin and precommit hook #20

Merged
merged 7 commits into from
Dec 19, 2017

Conversation

agubler
Copy link
Member

@agubler agubler commented Dec 17, 2017

Type: feature

The following has been addressed in the PR:

  • There is a related issue
  • All code matches the style guide
  • Unit or Functional tests are included 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 dojo/meta#206

@codecov
Copy link

codecov bot commented Dec 17, 2017

Codecov Report

Merging #20 into master will increase coverage by <.01%.
The diff coverage is 97.18%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master      #20      +/-   ##
==========================================
+ Coverage   98.28%   98.29%   +<.01%     
==========================================
  Files          14       14              
  Lines         292      293       +1     
  Branches       73       78       +5     
==========================================
+ Hits          287      288       +1     
  Misses          1        1              
  Partials        4        4
Impacted Files Coverage Δ
src/i18n-plugin/I18nPlugin.ts 100% <100%> (ø) ⬆️
src/css-module-dts-loader/loader.ts 100% <100%> (ø) ⬆️
src/static-build-loader/loader.ts 100% <100%> (ø) ⬆️
src/css-module-plugin/CssModulePlugin.ts 100% <100%> (ø) ⬆️
src/css-module-decorator-loader/loader.ts 100% <100%> (ø) ⬆️
...8n-plugin/dependencies/InjectedModuleDependency.ts 100% <100%> (ø) ⬆️
src/i18n-plugin/templates/setLocaleData.ts 100% <100%> (ø) ⬆️
src/external-loader-plugin/ExternalLoaderPlugin.ts 100% <100%> (ø) ⬆️
src/static-build-loader/getFeatures.ts 100% <100%> (ø) ⬆️
src/promise-loader/index.ts 70.58% <50%> (ø) ⬆️

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 7f78b89...e545bcb. Read the comment docs.

@agubler agubler merged commit a252cbf into dojo:master Dec 19, 2017
@dylans dylans added this to the beta.5 milestone Dec 22, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants