-
Notifications
You must be signed in to change notification settings - Fork 24.4k
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 TS parser and plugin #31490
Conversation
|
Base commit: 1e39d8b |
Base commit: d540f88 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This was required for us as well, adding this (which is the same as these version bumps, essentially) fixed it for us. Would love to see this merged and released
Added to package.json
:
"resolutions": {
"@typescript-eslint/eslint-plugin": "^4.26.1",
"@typescript-eslint/parser": "^4.26.1"
},
With apologies for the direct ping but @PeteTheHeat I see you triggered the facebook github bot for a merge most recently, and this seems like an easy win? Not sure who else to contact to push buttons in these parts :-). Cheers
@PeteTheHeat has imported this pull request. If you are a Facebook employee, you can view this diff on Phabricator. |
- note that typedoc is *not* updated past v19, it requires a forward-port - de-lint all the files Note that a forced resolution of newer versions of the eslint/typescript integration were necessary, see: facebook/react-native#31490
- cavy patch no longer needed, upstream integrated change via PR from here - note that typedoc is *not* updated past v19, it requires a forward-port - de-lint all the files Note that a forced resolution of newer versions of the eslint/typescript integration were necessary, see: facebook/react-native#31490
With apologies again for a direct ping, but @matt-oakes it appears based on a recent PR that you have npm publish powers and published this last time? I'll quickly admit I'm just reading old stuff and pinging people, which means this might not be correct and thus might be annoying, apologies in advance if that's the case |
Are the failures to test_ios_unit_hermes relevant to the changes in this diff? |
@PeteTheHeat unfortunately I cannot see in CircleCI as it requires a login and to do so via github would allow it read/write access to all sorts of repos I share with others, I can't do that. However, the change here is a bump to the transitive dependencies used by linters, specifically the combo of eslint and typescript. That should fail a lint type check, not a unit test check. Specifically I would presume "Facebook Internal - Linter" or "ci/circleci:analyze_code" to be the ones affected? Further, given there is another run named "ci/circleci: test_ios_unit_jsc" that passes, and only the hermes "ci/circleci: test_ios_unit_hermes" variant is failing, I would assume (danger, danger) that this could not have anything to do with the failure. Software always surprises, bit I think it's unrelated. |
@mikehardy I did have publish access before and, as far as I'm aware, I still do. However, I don't have permission to merge anything so it would need to be reviewed and merged before I could publish it. |
Ah, I see @matt-oakes - I thought that was what the import from the facebook bot meant, but I suppose we need to wait for @PeteTheHeat to do something else perhaps pending resolution of unit tests on circleci which now appear to have failed on both jsc and hermes variant (which is odd, since jsc was green before?). But I have no insight there so 🤷 not sure what else I can do to get the dependencies bump other than continue with the resolutions block I've got in package.json locally and hope. |
@PeteTheHeat merged this pull request in 3b751d3. |
@mikehardy @PeteTheHeat Sorry, I should have said before, but ideally a change should be merged in that bumps the version number of the package so the version that's in the repo stays in sync with what's published. Can someone open up a PR to do that? I presume it's a major version bump because of the bump in dependencies? |
facebook#31490 bumped the dependency versions of `@typescript-eslint` project across a semver major, bumping the package version here a semver major to correspond, prior to publishing
@matt-oakes oh of course 🤦 - just posted #31372 |
Summary: #31490 bumped the dependency versions of `typescript-eslint` project across a semver major, bumping the package version here a semver major to correspond, prior to publishing This is being done [in concert with](#31490 (comment)) matt-oakes who may hopefully publish the result and PeteTheHeat who merged #31490 (thanks!) I copied the changelog chunk from the last version bump merged here, hopefully it is correct + useful ## Changelog [General] [Fixed] - Upgrade dependencies / version of eslint package Pull Request resolved: #31732 Test Plan: Run in local project Reviewed By: TheSavior Differential Revision: D29167289 Pulled By: PeteTheHeat fbshipit-source-id: 464365b2bff936ad5a33f9a39eb8e56aed8e8715
@mikehardy @wcandillon Published as v3.0.0. |
Fantastic! I really appreciate the collaboration getting this in the tree and out on npmjs, thanks @PeteTheHeat and @matt-oakes and @wcandillon for posting it originally |
I'm upset that my similar merge was just ignored |
@Bibazavr oh I didn't even see that when I searched! Don't be too upset though. In general I think react-native maintenance at the core level is a little bit reactive and definitely we're all busier than we should be. I think I was just the "squeaky wheel" on this one and it worked 🤷 . Keep trying! |
I had an issue with the old version of the parser and upgrading it via
yarn resolve
solved it.