Skip to content

Conversation

@u9520107
Copy link
Contributor

@u9520107 u9520107 commented May 7, 2018

  1. Create an eslint-settings package for shared eslint configuration and dependencies.
  2. Create a babel-settings package for shared babel configuration and dependencies.
  3. Use babel-preset-env and explicitly list feature that's not yet in the spec.

@u9520107 u9520107 requested review from LingForCC, ele828 and embbnux May 7, 2018 13:46
@u9520107 u9520107 closed this May 8, 2018
@u9520107 u9520107 reopened this May 8, 2018
.babelrc Outdated
"transform-decorators-legacy"
"transform-function-bind", // stage 0
"transform-export-extensions", // stage 1
"transform-class-properties" // stage 2
Copy link
Contributor

Choose a reason for hiding this comment

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

Would you also consider extending babelrc from babel-settings?

"scripts": {},
"dependencies": {
"@yarnpkg/lockfile": "^1.0.0",
"babel-settings": "0.0.1",
Copy link
Contributor

Choose a reason for hiding this comment

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

devDependencies?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

babel-settings is more complicated, babel-runtime is a runtime dependency rather than a dev dependency.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

hmm... good point though.. let me reconsider this.

package.json Outdated
"list-file-matchers": "babel-node scripts/listFileMatchers.js"
},
"dependencies": {
"babel-settings": "0.0.1"
Copy link
Contributor

Choose a reason for hiding this comment

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

devDependencies?

"eslint-plugin-import": "^2.8.0",
"eslint-plugin-jsx-a11y": "^6.0.2",
"eslint-plugin-react": "^7.5.1",
"eslint-settings": "0.0.1",
Copy link
Collaborator

Choose a reason for hiding this comment

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

Does this make yarn install broken?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Don't think so. I've done a git clean -xdf to clear out all the files to do a clean install. Plus all the CI tests passed, so the installation should be fine.

@u9520107 u9520107 merged commit 4c35630 into ringcentral:master May 9, 2018
@u9520107 u9520107 deleted the enhance/shared-babel branch May 9, 2018 01:11
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