Summary:We spend too much time reviewing minor nits and it increases turnaround time. This updates the eslint config to error on a few stylistic things and it is now aligned with the Jest code style.
This was also a good change (or well, I was forced :P ) to clean up the last of the cruft of the codebase :)
Closes https://github.com/facebook/jest/pull/892
Reviewed By: vjeux
Differential Revision: D3178752
fb-gh-sync-id: 7d1b759dffeca9374ecab39f7f031cf0da6832e3
fbshipit-source-id: 7d1b759dffeca9374ecab39f7f031cf0da6832e3
- in order to use 'babel-plugins-*' to parse the syntax, we can use
'babel-preset-*' packages that we have already installed.
for using 'babel-preset-*' packages you need to specify it in the
.babelrc file as "presets".
(Look here: https://babeljs.io/docs/plugins/#presets)
otherwise if you want to use 'plugins' and parse the syntax;
you have to install 'babel-plugin-*' packages.
(Look here: https://babeljs.io/docs/plugins/)
- 'export default *' changed to 'module.exports = *' due to
syntax error.