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

[react] Including missing defaults to the react eslint #618

Merged
merged 3 commits into from
Dec 12, 2015

Conversation

kesne
Copy link
Contributor

@kesne kesne commented Dec 12, 2015

We were missing including the defaults in a couple react rules for the eslint configuration. This adds them back.

@@ -9,7 +9,7 @@ module.exports = {
// Prevent missing displayName in a React component definition
'react/display-name': 0,
// Enforce boolean attributes notation in JSX
'react/jsx-boolean-value': 2,
'react/jsx-boolean-value': [2, 'never'],
Copy link
Collaborator

Choose a reason for hiding this comment

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

could we also add in a comment the URL of each of the rules?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Was literally just about to do that.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

JORDAN SYNERGYYYYYYY

Copy link
Collaborator

Choose a reason for hiding this comment

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

those changes are great but i also meant URLs in comments inline in react.js

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, the classic Double-J communication breakdown.

https://www.youtube.com/watch?v=f6WQLvRvtjs

'react/jsx-no-undef': 2,
// Enforce quote style for JSX attributes
'react/jsx-quotes': 0,
Copy link
Collaborator

Choose a reason for hiding this comment

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

wow how was this one off‽ thanks

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 a fellow interrobanger!

Copy link
Contributor

Choose a reason for hiding this comment

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

@kesne @ljharb react/jsx-quotes is deprecated, which is presumably why it was disabled. I created #622 to fix it.

ljharb added a commit that referenced this pull request Dec 12, 2015
[eslint config] [react] [minor] Including missing defaults to the react eslint; enable react/jsx-quotes
@ljharb ljharb merged commit 5989125 into airbnb:master Dec 12, 2015
@kesne kesne deleted the jgens/react-defaults branch December 12, 2015 07:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants