Skip to content
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

Fix: object-curly-newline multiline with comments (fixes #6381) #6396

Merged
merged 1 commit into from Jun 15, 2016

Conversation

mysticatea
Copy link
Member

Fixes #6381.

I modified the rule to use comments also to check whether an object literal is multiline or not.

@eslintbot
Copy link

LGTM

// This allows:
// var obj = { // eslint-disable-line foo
// a: 1
// }
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The ESLint style guide favors the following for multiline comments:

/**
 * First line of comment text here
 * Second goes here, etc.
 * Last line
 */

With the leading slash aligned with the code block below.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks, I updated it.
I want to autofix this!

@mysticatea mysticatea force-pushed the object-curly-newline/fix-for-comments branch from 86a9808 to 4a43094 Compare June 12, 2016 19:40
@eslintbot
Copy link

LGTM

@nzakas
Copy link
Member

nzakas commented Jun 15, 2016

Lgtm

@nzakas nzakas merged commit 4f73240 into master Jun 15, 2016
@mysticatea mysticatea deleted the object-curly-newline/fix-for-comments branch June 16, 2016 11:48
@wwwillchen wwwillchen mentioned this pull request Nov 5, 2016
@eslint-deprecated eslint-deprecated bot locked and limited conversation to collaborators Feb 6, 2018
@eslint-deprecated eslint-deprecated bot added the archived due to age This issue has been archived; please open a new issue for any further discussion label Feb 6, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
archived due to age This issue has been archived; please open a new issue for any further discussion
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants