Skip to content
This repository has been archived by the owner on Aug 4, 2020. It is now read-only.

Future-proofing #29

Merged
merged 3 commits into from
Nov 25, 2015
Merged

Future-proofing #29

merged 3 commits into from
Nov 25, 2015

Conversation

evocateur
Copy link
Contributor

My original goal was to remove the dependency on babel-core@5, since there's no actual usage of the module in this plugin (nor of the helpers.js file, wherein the only require('babel-core') is located). By doing this, we reduce the amount of cruft installed by npm when users update to babel 6.

I went through all the dependents of eslint-plugin-babel, and none of them are requiring helpers.js. Some of the dependents themselves depend on babel-core, but that's not a reason to keep it as a dependency of this module.

Incidentally, when running the tests after making my changes, I found weird errors related to the recent Object.freeze() shenanigans upstream in eslint. Theoretically, eslint@1.10.1 should have reverted those breaking changes (first reported as breaking eslint-plugin-react), but it's a good idea to stop modifying the context object anyway, as the maintainers of eslint have expressed the intention of restoring that freeze in eslint@2.

Daniel Stockman added 3 commits November 25, 2015 09:46
The context passed into rule definitions will be frozen in eslint 2. It was briefly frozen in 1.10.0, but reverted in 1.10.1.

(And yet, I couldn't get tests to pass with eslint 1.10.1 installed)
jquense added a commit that referenced this pull request Nov 25, 2015
@jquense jquense merged commit d2c9570 into babel:master Nov 25, 2015
@jquense
Copy link
Contributor

jquense commented Nov 25, 2015

many thanks!

@hzoo
Copy link
Member

hzoo commented Nov 25, 2015

Looks good - should we do a major version bump in case?

@evocateur
Copy link
Contributor Author

@hzoo I almost suggested that, just to be extra-safe. I'm cool either way.

@hzoo
Copy link
Member

hzoo commented Nov 25, 2015

I think that would be best - published 3.0

@evocateur
Copy link
Contributor Author

Thanks!

nicolo-ribaudo pushed a commit to babel/babel that referenced this pull request Nov 14, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants