-
Notifications
You must be signed in to change notification settings - Fork 26.7k
[react] Including missing defaults to the react eslint #618
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
Changes from 1 commit
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
- Loading branch information
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -10,14 +10,18 @@ module.exports = { | |
| 'react/display-name': 0, | ||
| // Enforce boolean attributes notation in JSX | ||
| 'react/jsx-boolean-value': [2, 'never'], | ||
| // Validate closing bracket location in JSX | ||
| 'react/jsx-closing-bracket-location': [2, 'line-aligned'], | ||
| // Enforce or disallow spaces inside of curly braces in JSX attributes | ||
| 'react/jsx-curly-spacing': 0, | ||
| // Validate props indentation in JSX | ||
| 'react/jsx-indent-props': [2, 2], | ||
| // Prevent duplicate props in JSX | ||
| 'react/jsx-no-duplicate-props': 0, | ||
|
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. wow how was this one off‽ thanks
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Ah a fellow interrobanger!
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. |
||
| // Disallow undeclared variables in JSX | ||
| 'react/jsx-no-undef': 2, | ||
| // Enforce quote style for JSX attributes | ||
| 'react/jsx-quotes': 0, | ||
| 'react/jsx-quotes': [2, 'double'], | ||
| // Enforce propTypes declarations alphabetical sorting | ||
| 'react/jsx-sort-prop-types': 0, | ||
| // Enforce props alphabetical sorting | ||
|
|
||
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.jsThere 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.
https://www.youtube.com/watch?v=f6WQLvRvtjs