-
Notifications
You must be signed in to change notification settings - Fork 20.5k
Build: Correct code indentations based on jQuery Style Guide #4672
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
Conversation
|
Thanks for the PR! I'm wondering if we shouldn't just enable the Docs for the indent rule: https://eslint.org/docs/rules/indent. Would you like to have a look at that? |
7b84c3e to
dfed21e
Compare
mgol
left a comment
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.
I added a few comments. Overall, this looks great! I was afraid we'd need more source changes.
0e2964d to
8bcc817
Compare
mgol
left a comment
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.
Please rebase your branch over latest master. There have been some changes to the ESLint config recently so I'd like to be sure it passes the lint.
1. Correct code indentations based on Core Style Guide. (https://contribute.jquery.org/style-guide/js/#spacing) 2. Add rules to "src/.eslintrc.json" to enable "enforcing consistent indentation", with minimal changes to the current code.
mgol
left a comment
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.
Thanks, looks good to me!
|
@timmywil We didn't discuss it yet, I wanted a final team approval so let me add the label back. |
timmywil
left a comment
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.
LGTM
1. Correct code indentations based on jQuery Style Guide (contribute.jquery.org/style-guide/js/#spacing). 2. Add rules to "src/.eslintrc.json" to enable "enforcing consistent indentation", with minimal changes to the current code. Closes jquerygh-4672 (cherry picked from 3d62d57)
|
Landed, thanks, @wonseop! |
Summary
Correct code indentations based on Core Style Guide
(https://contribute.jquery.org/style-guide/js/#spacing)
Add rules to
src/.eslintrc.jsonto enable "enforcing consistent indentation",with minimal changes to the current code.
Checklist
New tests have been added to show the fix or feature worksIf needed, a docs issue/PR was created at https://github.com/jquery/api.jquery.com