KEMBAR78
Add ignore elision option to spacing_after_comma rule by danielbayley · Pull Request #34 · coffeelint/coffeelint · GitHub
Skip to content

Conversation

danielbayley
Copy link
Member

This option added to the spacing_after_comma rule allows it
to ignore consecutive commas when skipping array elements. For example
[,, c,, e, f] = [1, 2, 3, 4, 5, 6]. This is known as
elision. Closes aminland/coffeelint2#5.

@danielbayley danielbayley force-pushed the spacing_after_comma branch 2 times, most recently from 9c871ca to e169593 Compare January 16, 2020 15:28
@aminland This option added to the `spacing_after_comma` rule allows it to ignore consecutive commas when skipping array elements. For example `[,, c,, e, f] = [1, 2, 3, 4, 5, 6]`. This is known as _[elision](jashkenas/coffeescript#4796. Closes aminland/coffeelint2#5.
Copy link
Member

@UziTech UziTech left a comment

Choose a reason for hiding this comment

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

Can you also provide a test for ignore_elision: false with an array with empty elements?

@UziTech UziTech merged commit 61ea3fe into coffeelint:master Feb 6, 2020
@UziTech
Copy link
Member

UziTech commented Feb 6, 2020

nvm I'll add the test

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants