-
-
Notifications
You must be signed in to change notification settings - Fork 225
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
🚀 Prettier #478
🚀 Prettier #478
Conversation
Codecov Report
@@ 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
Continue to review full report at Codecov.
|
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 |
There was a problem hiding this comment.
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 + "";'; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
changed by prettier?
There was a problem hiding this comment.
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";'; |
There was a problem hiding this comment.
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
There was a problem hiding this comment.
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 width 80 looks much better.. |
Review two commits individually.
First one adds prettier and changes eslint configs
Second one simply applies prettier