Tharaka Wijebandara
Tharaka Wijebandara
I would like to work on this. Apparently, there is no such a rule comes with `eslint-plugin-import`. So I'll send a PR to `eslint-plugin-import` repo first and update `eslint-config-react-app` accordingly....
@ljharb Thanks for pointing it out. I'll use `no-restricted-properties` rule and send a PR.
Is anyone working on this? If not, I would like to write some React code 😄
Ok. Thanks!
Resolved by #3100
I'll send a PR.
Apparently, we are already using object spread and Babel transform it to `Object.assign`. https://github.com/facebookincubator/create-react-app/blob/v1.0.12/packages/react-error-overlay/src/components/CodeBlock.js#L24-L27 Can you think of any other workaround without changing execution order?
It seems we need to disable `useBuiltIns` option to use Babel’s `extends`. https://github.com/facebookincubator/create-react-app/blob/master/packages/babel-preset-react-app/index.js#L20 will it be a good workaround?
Webpack only includes files that have been imported somewhere in the dependency graph. If you haven't imported those unnecessary files, they won't be in your main.js.