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

Add 'object-curly-newline' eslint rule. #5523

Merged
merged 2 commits into from Sep 10, 2020

Conversation

miherlosev
Copy link
Collaborator

@miherlosev miherlosev commented Sep 10, 2020

#5391 (comment)

newlines are required after any multiline expressions with curly braces - https://eslint.org/docs/rules/object-curly-newline

The object-curly-newline affects the line breaks only inside of the statement (not after). However, I guess we can add this rule to standardize the new lines inside of import statements.

The new lines are required if there are:

I added a special rule for tests because the statement import { Selector, Role, t } from 'testcafe' with 3 items looks good.

@testcafe-build-bot
Copy link
Collaborator

MultipleWindowsModeIsDisabledError,
MultipleWindowsModeIsNotAvailableInRemoteBrowserError
} from '../../errors/test-run';
import { MultipleWindowsModeIsDisabledError, MultipleWindowsModeIsNotAvailableInRemoteBrowserError } from '../../errors/test-run';
Copy link
Contributor

Choose a reason for hiding this comment

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

Maybe we can enable consistent: true to allow separate long imports even when their number is below the critical value

@testcafe-build-bot
Copy link
Collaborator

@miherlosev
Copy link
Collaborator Author

@testcafe-build-bot retest

@testcafe-build-bot
Copy link
Collaborator

@testcafe-build-bot
Copy link
Collaborator

@testcafe-build-bot
Copy link
Collaborator

@miherlosev
Copy link
Collaborator Author

FPR

@AndreyBelym AndreyBelym merged commit 0450c73 into DevExpress:master Sep 10, 2020
@miherlosev miherlosev deleted the add_eslint_rule branch September 11, 2020 05:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants