-
-
Notifications
You must be signed in to change notification settings - Fork 4.2k
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
Introduce eslint: space-before-blocks rule #6048
Conversation
Changes have been made as suggested here: oppia#5842 (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.
Hi @apb7 LGTM. Just one clarification. Thanks for fixing this!
Feel free to merge after answering the question, and travis passes :)
}); | ||
it( | ||
'should toggle needs update attribute in a given content id', function() { | ||
citat.toggleNeedsUpdateAttribute('content', 'hi'); |
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.
Is the extra indent expected?
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.
Yes, eslint produces an error for indentation if line 254 (and the rest of the block) is at the same level as line 253. 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.
Oh OK. Thanks for confirming :)
Oh just realized a codeowner approval is needed. Will await Sean's review :) |
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. Sorry for delay, and thanks for the PR!
Explanation
Changes have been made as suggested here:
#5842 (comment)
Checklist
python scripts/pre_commit_linter.py
andbash scripts/run_frontend_tests.sh
.