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

Integrate jsx-ast-utils #634

Merged
merged 3 commits into from
Jun 16, 2016
Merged

Integrate jsx-ast-utils #634

merged 3 commits into from
Jun 16, 2016

Conversation

beefancohen
Copy link
Contributor

as discussed in evcohen/eslint-plugin-jsx-a11y#54 we can integrate the jsx-ast-utils package here for better code reuse across these packages.

We can start adding API functions to fit use cases for this project as well to jsx-ast-utils in the next few iterations (i.e. styling and spacing functions)

@beefancohen beefancohen changed the title Integrate jsx-ast-utils for more modular/reusable code Integrate jsx-ast-utils Jun 15, 2016
@@ -5,6 +5,8 @@
*/
'use strict';

var propName = require('jsx-ast-utils').propName;
Copy link
Member

Choose a reason for hiding this comment

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

it'd be nice if we could require via path, ie, var propName = require('jsx-ast-utils/propName') rather than having to pull everything in and grab one property - but obv this is not a blocker :-)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

ah yes ill export from root directory too 😄

@ljharb
Copy link
Member

ljharb commented Jun 15, 2016

Awesome, love the code sharing

@yannickcr
Copy link
Member

This is really great!

LGTM. if it is good to merge for you too I think we can merge it.

@beefancohen
Copy link
Contributor Author

beefancohen commented Jun 16, 2016

Good for me - will try and continually send PR's as we flesh out jsx-ast-utils to keep surface area of changes small and incremental 👍

@yannickcr yannickcr merged commit cd5ef2b into jsx-eslint:master Jun 16, 2016
@yannickcr
Copy link
Member

Merged. Thank you very much :)

@beefancohen beefancohen deleted the jsx-core branch June 17, 2016 18:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants