-
Notifications
You must be signed in to change notification settings - Fork 26.6k
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
Conversation
@@ -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'], |
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.
could we also add in a comment the URL of each of the rules?
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.
Was literally just about to do that.
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.
JORDAN SYNERGYYYYYYY
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.
those changes are great but i also meant URLs in comments inline in react.js
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.
Ah, the classic Double-J communication breakdown.
'react/jsx-no-undef': 2, | ||
// Enforce quote style for JSX attributes | ||
'react/jsx-quotes': 0, |
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.
wow how was this one off‽ thanks
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.
Ah a fellow interrobanger!
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.
[eslint config] [react] [minor] Including missing defaults to the react eslint; enable react/jsx-quotes
We were missing including the defaults in a couple react rules for the eslint configuration. This adds them back.