Skip to content
This repository was archived by the owner on Dec 31, 2020. It is now read-only.

Use same naming scheme and styles in imports in tests#762

Merged
danielkcz merged 1 commit into
mobxjs:masterfrom
vkrol:use-same-naming-scheme-and-style-in-imports-in-tests
Aug 21, 2019
Merged

Use same naming scheme and styles in imports in tests#762
danielkcz merged 1 commit into
mobxjs:masterfrom
vkrol:use-same-naming-scheme-and-style-in-imports-in-tests

Conversation

@vkrol

@vkrol vkrol commented Aug 14, 2019

Copy link
Copy Markdown
Contributor

When working with the tests, I constantly encountered different naming and import styles in the tests. I think it's best to use the same naming style for imports. This reduces the cognitive load when working with the existing code and allows you not to think about what style to use when writing a new code.

I also want to use the same style in modules located in the src directory. If you don't mind, I'll do it in a separate PR.

@danielkcz danielkcz left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

I wonder if there are some ESLint rules to enforce that. Otherwise, I agree to do it for src as well.

Comment thread test/context.test.js
@vkrol

vkrol commented Aug 14, 2019

Copy link
Copy Markdown
Contributor Author

I wonder if there are some ESLint rules to enforce that. Otherwise, I agree to do it for src as well.

I don't know any.

@danielkcz
danielkcz merged commit 0ebb09a into mobxjs:master Aug 21, 2019
@vkrol

vkrol commented Aug 21, 2019

Copy link
Copy Markdown
Contributor Author

@FredyC thank you very much for code reviews and interesting discussions!

@vkrol
vkrol deleted the use-same-naming-scheme-and-style-in-imports-in-tests branch August 21, 2019 07:42
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants