Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Upgrade ESLint and dependencies, fix new lint errors, switch Travis to Yarn #8309

Merged
merged 4 commits into from
Nov 17, 2016

Conversation

tomocchino
Copy link
Contributor

@tomocchino tomocchino commented Nov 16, 2016

Test Plan: yarn run lint, yarn run test, flow, everything is clean

This also involved pulling in the latest fbjs so we can extend that .eslintrc.js. One goal here is to be able to use yarn exclusively in Travis / CircleCI.

As a followup, I can try to add a custom rule to turn the ESLint strict rule back on, because we need to deal with the fact that ESLint thinks import type Flow statements are module imports.

Sorry this is doing so much, but these are all pretty interconnected. Let me know if you want me to split this into multiple PRs somehow.

@tomocchino tomocchino force-pushed the fix-lint-and-yarn branch 2 times, most recently from 02c3447 to b03ad31 Compare November 17, 2016 10:18
@tomocchino tomocchino changed the title Upgrade ESLint and dependencies, fix new lint errors Upgrade ESLint and dependencies, fix new lint errors, switch Travis to Yarn Nov 17, 2016
@@ -97,6 +97,8 @@ class ReactTestComponent {
}

toJSON(): ReactTestRendererJSON {
// not using `children`, but I don't wanna rewrite without destructuring
Copy link
Member

Choose a reason for hiding this comment

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

wanna?

Also pull in fbjs for extending properly, per @zpao. This also disables consistent-return, which has about 80 failing cases in React currently. If we'd like to turn this back on, we should do it separately and fix all the call sites properly (rather than just adding 'return undefined;' everywhere, which adds no value.

Fixes to all existing lint errors plus an update for yarn.lock to follow.
Unfortunately I had to add three eslint-disable-next-line instances. All have explanations inline.
@tomocchino tomocchino merged commit 32f5b03 into facebook:master Nov 17, 2016
@tomocchino tomocchino deleted the fix-lint-and-yarn branch November 17, 2016 22:16
@gaearon gaearon added this to the 15-next milestone Nov 22, 2016
@gaearon
Copy link
Collaborator

gaearon commented Nov 22, 2016

Tagging as patch because it also happens to fix an issue for Rollup users. (#8318)
The bug is Rollup's but it's easy for us to fix by shipping this commit.

@zpao
Copy link
Member

zpao commented Nov 22, 2016

I haven't tried but this might be pretty tough to cherry-pick in a patch, perhaps even a minor. It might be worthwhile to just take the specific changes in the branch.

@gaearon gaearon removed this from the 15-next milestone Nov 22, 2016
@gaearon
Copy link
Collaborator

gaearon commented Nov 22, 2016

k, I'll cherry-pick it

jackjocross added a commit to jackjocross/react that referenced this pull request Jan 13, 2017
…o Yarn (facebook#8309)

* Update ESLint to 3.10.2

Also pull in fbjs for extending properly, per @zpao. This also disables consistent-return, which has about 80 failing cases in React currently. If we'd like to turn this back on, we should do it separately and fix all the call sites properly (rather than just adding 'return undefined;' everywhere, which adds no value.

Fixes to all existing lint errors plus an update for yarn.lock to follow.

* Update yarn.lock after the eslint update.

* Fix all new eslint failures

Unfortunately I had to add three eslint-disable-next-line instances. All have explanations inline.

* Switch Travis to use yarn instead of npm
gaearon pushed a commit that referenced this pull request Jan 23, 2017
* devDependencies: add core-js and es6-symbol polyfill for tests

* Update Flow and fix issues (#8006)

* Add npm v4.0.0 support (#8082)

* Add support for node v7 (#8135)

* Upgrade ESLint and dependencies, fix new lint errors, switch Travis to Yarn (#8309)

* Update ESLint to 3.10.2

Also pull in fbjs for extending properly, per @zpao. This also disables consistent-return, which has about 80 failing cases in React currently. If we'd like to turn this back on, we should do it separately and fix all the call sites properly (rather than just adding 'return undefined;' everywhere, which adds no value.

Fixes to all existing lint errors plus an update for yarn.lock to follow.

* Update yarn.lock after the eslint update.

* Fix all new eslint failures

Unfortunately I had to add three eslint-disable-next-line instances. All have explanations inline.

* Switch Travis to use yarn instead of npm

* Update all Jest packages to 17.x (#8327)

* Update all Jest packages to 17.x, cache babel-jest transforms

* Remove the caching

Looking at the other builds it doesn't seem to actually be that necessary.  The bottleneck is executors, not build time.

* Remove unnecessary package, fix fiber test runner

* Regenerate yarn lockfile

* Update Flow to 0.37.0 (#8608)

Nothing really changes.

* Update to Jest 18 (#8621)

* mockImpl -> mockImplementation

D4329549

* Fixed linting errors

* circle.yml and circleci scripts

* Update Flow and fix issues (#8006)

* Fixed flow errors

* Updated shrinkwrap

* Removed unnecessary change

* Added jest --runInBand flag

* Removed ReactDOMFiber changes
gaearon pushed a commit that referenced this pull request Jan 23, 2017
* devDependencies: add core-js and es6-symbol polyfill for tests

* Update Flow and fix issues (#8006)

* Add npm v4.0.0 support (#8082)

* Add support for node v7 (#8135)

* Upgrade ESLint and dependencies, fix new lint errors, switch Travis to Yarn (#8309)

* Update ESLint to 3.10.2

Also pull in fbjs for extending properly, per @zpao. This also disables consistent-return, which has about 80 failing cases in React currently. If we'd like to turn this back on, we should do it separately and fix all the call sites properly (rather than just adding 'return undefined;' everywhere, which adds no value.

Fixes to all existing lint errors plus an update for yarn.lock to follow.

* Update yarn.lock after the eslint update.

* Fix all new eslint failures

Unfortunately I had to add three eslint-disable-next-line instances. All have explanations inline.

* Switch Travis to use yarn instead of npm

* Update all Jest packages to 17.x (#8327)

* Update all Jest packages to 17.x, cache babel-jest transforms

* Remove the caching

Looking at the other builds it doesn't seem to actually be that necessary.  The bottleneck is executors, not build time.

* Remove unnecessary package, fix fiber test runner

* Regenerate yarn lockfile

* Update Flow to 0.37.0 (#8608)

Nothing really changes.

* Update to Jest 18 (#8621)

* mockImpl -> mockImplementation

D4329549

* Fixed linting errors

* circle.yml and circleci scripts

* Update Flow and fix issues (#8006)

* Fixed flow errors

* Updated shrinkwrap

* Removed unnecessary change

* Added jest --runInBand flag

* Removed ReactDOMFiber changes
acusti pushed a commit to brandcast/react that referenced this pull request Mar 15, 2017
…o Yarn (facebook#8309)

* Update ESLint to 3.10.2

Also pull in fbjs for extending properly, per @zpao. This also disables consistent-return, which has about 80 failing cases in React currently. If we'd like to turn this back on, we should do it separately and fix all the call sites properly (rather than just adding 'return undefined;' everywhere, which adds no value.

Fixes to all existing lint errors plus an update for yarn.lock to follow.

* Update yarn.lock after the eslint update.

* Fix all new eslint failures

Unfortunately I had to add three eslint-disable-next-line instances. All have explanations inline.

* Switch Travis to use yarn instead of npm
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.

5 participants