Skip to content
This repository has been archived by the owner on May 11, 2018. It is now read-only.

Prettify. #183

Merged
merged 1 commit into from
Mar 12, 2017
Merged

Prettify. #183

merged 1 commit into from
Mar 12, 2017

Conversation

yavorsky
Copy link
Member

@yavorsky yavorsky commented Mar 3, 2017

No description provided.

@danez
Copy link
Member

danez commented Mar 3, 2017

Should we enable prettifier?

@yavorsky
Copy link
Member Author

yavorsky commented Mar 3, 2017

@danez Yeah, I think we could prettify not separate fragments, but all the stuff. The only thing - we must be consistent with babel and babylon prettify branches.

@yavorsky yavorsky changed the title Prettify long stuff. Prettify. Mar 4, 2017
@xtuc
Copy link
Member

xtuc commented Mar 4, 2017

Could we import the rules defined in https://github.com/babel/babel/pull/5413/files#diff-1dc6ee56b778cd91e0327b52aaeaa1b9? We will then include theses rules by default in babel-eslint-config.

@yavorsky
Copy link
Member Author

yavorsky commented Mar 4, 2017

@xtuc Sure 👍
Also disabled "arrow-parens" and "indent" to prevent errors after prettier.

package.json Outdated
"prettier --trailing-comma all --write \"scripts/*.js\"",
"git add"
],
"test/*.js": [
Copy link
Member

Choose a reason for hiding this comment

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

Probably want to exclude expected.js?

Copy link
Member Author

@yavorsky yavorsky Mar 8, 2017

Choose a reason for hiding this comment

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

@existentialism test/*.js will cover just files inside, but not below test directory, so fixtures/debug-fixtures shouldn't be affected unlike test/**/*.js

Copy link
Member

Choose a reason for hiding this comment

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

👍

package.json Outdated
},
"lint-staged": {
"src/*.js": [
"prettier --trailing-comma all --write \"src/*.js\"",
Copy link
Member

Choose a reason for hiding this comment

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

Can omit the \"src/*.js\" as --write will replace

Copy link
Member

@existentialism existentialism Mar 8, 2017

Choose a reason for hiding this comment

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

Also, can probably combine these to:

{
  "lint-staged": {
    "{src,scripts}/**/*.js": [
      "prettier --trailing-comma all --write",
      "git add"
    ]
  }
}

Copy link
Member Author

Choose a reason for hiding this comment

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

@existentialism thanks 👍

@existentialism
Copy link
Member

@yavorsky mind bumping to latest prettier and rerunning?

@yavorsky
Copy link
Member Author

@existentialism 👍

@codecov-io
Copy link

codecov-io commented Mar 12, 2017

Codecov Report

Merging #183 into 2.0 will decrease coverage by 0.32%.
The diff coverage is 89.23%.

@@            Coverage Diff            @@
##             2.0     #183      +/-   ##
=========================================
- Coverage   94.7%   94.38%   -0.33%     
=========================================
  Files          3        3              
  Lines        189      196       +7     
  Branches      55       58       +3     
=========================================
+ Hits         179      185       +6     
- Misses         7        8       +1     
  Partials       3        3
Impacted Files Coverage Δ
src/normalize-options.js 100% <100%> (ø)
src/index.js 94.95% <87.75%> (-0.62%)
src/transform-polyfill-require-plugin.js 89.79% <88.88%> (+0.21%)

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 b34aa32...e440ae5. Read the comment docs.

@existentialism existentialism merged commit b1cb7de into babel:2.0 Mar 12, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants