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

🚀 Prettier #478

Merged
merged 4 commits into from
Mar 17, 2017
Merged

🚀 Prettier #478

merged 4 commits into from
Mar 17, 2017

Conversation

boopathi
Copy link
Member

Review two commits individually.

First one adds prettier and changes eslint configs
Second one simply applies prettier

@codecov
Copy link

codecov bot commented Mar 16, 2017

Codecov Report

Merging #478 into master will increase coverage by 0.13%.
The diff coverage is 86.84%.

@@            Coverage Diff             @@
##           master     #478      +/-   ##
==========================================
+ Coverage   82.25%   82.38%   +0.13%     
==========================================
  Files          35       35              
  Lines        2462     2611     +149     
  Branches      808      923     +115     
==========================================
+ Hits         2025     2151     +126     
- Misses        257      280      +23     
  Partials      180      180
Impacted Files Coverage Δ
...abel-plugin-transform-minify-booleans/src/index.js 100% <ø> (ø)
...abel-plugin-transform-remove-debugger/src/index.js 100% <ø> (ø)
...ransform-inline-environment-variables/src/index.js 66.66% <ø> (ø)
...abel-plugin-transform-node-env-inline/src/index.js 62.5% <ø> (ø)
...el-plugin-transform-property-literals/src/index.js 100% <ø> (ø)
...-transform-member-expression-literals/src/index.js 100% <ø> (ø)
...el-plugin-transform-undefined-to-void/src/index.js 100% <ø> (ø)
packages/babel-plugin-minify-builtins/src/index.js 90.76% <100%> (+0.29%)
utils/unpad.js 100% <100%> (ø)
...ansform-simplify-comparison-operators/src/index.js 100% <100%> (ø)
... and 24 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 0b58697...fd46a84. Read the comment docs.

if (path.isVariableDeclarator() && path.parent.declarations[0] === path.node &&
path.parent.declarations.length === 1
if (
path.isVariableDeclarator() && path.parent.declarations[0] === path.node && path.parent.declarations.length === 1
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

maybe reduce the print width around 80-100?

@@ -25,7 +25,7 @@ describe("type-constructors-plugin", () => {

it("should turn String(x) to x + ''", () => {
const source = "String(x);";
const expected = "x + \"\";";
const expected = 'x + "";';
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

changed by prettier?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yup

@@ -14,7 +14,7 @@ describe("node-env-inline-plugin", () => {
const prev = process.env.NODE_ENV;
process.env.NODE_ENV = "development";

const source = "process.env.NODE_ENV === \"development\";";
const source = 'process.env.NODE_ENV === "development";';
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

single quotes instead of double

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

JSON is double quotes. So I think prettier chooses single outside double instead of the other way around.

@boopathi boopathi added the Tag: Internal Pull Request changing project internals - code that is NOT published label Mar 17, 2017
@vigneshshanmugam
Copy link
Member

@boopathi width 80 looks much better..

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Tag: Internal Pull Request changing project internals - code that is NOT published
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants