feat(import-destructuring-spacing): add fixer#595
feat(import-destructuring-spacing): add fixer#595wKoza merged 1 commit intomgechev:masterfrom rafaelss95:feat-has-fixer-import-destructuring-spacing
Conversation
There was a problem hiding this comment.
Should not we throw an error in this case ?
|
Well, that’s how the rule works actually. It just enforces that you must leave whitespaces inside of the import statements curly braces, but not the quantity. |
|
@rafaelss95 yes, it should be a single space. |
|
Done. Not related to this PR, but don't you think it's a good idea to add coveralls to this repo? It seems to be a really great tool to ensure that we cover more specifics parts of a rule, for example. Also, it can be integrated with CI. |
|
@rafaelss95 this sounds good to me! @wKoza what are your thoughts? |
There was a problem hiding this comment.
I had to change the failure message to reflect the new behavior. What do you guys think?
There was a problem hiding this comment.
statements' => statement's ?
|
Just last one comment and It's ok for me. |
|
Just out of curiosity since I didn't see a test for it, what would happen with these (multiple spaces in middle): |
|
@intellix Currently, the rule only cares about spaces relative to curly braces. |
wKoza
left a comment
There was a problem hiding this comment.
LGTM ! thanks @rafaelss95 !
This adds a fixer for
import-destructuring-spacingrule and adds a bunch of new tests.