- Notifications
You must be signed in to change notification settings - Fork20.6k
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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
Uh oh!
There was an error while loading.Please reload this page.
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
todfed21e
CompareThere 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.
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
0e2964d
to8bcc817
CompareUh oh!
There was an error while loading.Please reload this page.
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.
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. |
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.Closesjquerygh-4672(cherry picked from3d62d57)
Landed, thanks,@wonseop! |
Uh oh!
There was an error while loading.Please reload this page.
Summary
Correct code indentations based on Core Style Guide
(https://contribute.jquery.org/style-guide/js/#spacing)
Add rules to
src/.eslintrc.json
to 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 athttps://github.com/jquery/api.jquery.com