You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I couldn't reproduce the crash with space-infix-ops using the given example.
4.0.0-alpha.24 should fix the crashes in the other rules.
I plan to improve the arrow-spacing rule so it detects arrow spacing problems in other LightScript syntaxes (like named arrow declarations) but that is not done yet.
I didn't take any action on the rules that don't crash eslint, as they may be useful to people porting from JS or using optional brace syntax.
I will leave this open for awhile in the event that there are still any unfixed crashes in these rules.
I did some more experimenting with this. Your example does reproduce the crash, but the crash doesn't reproduce using the same code with just the space-infix-ops enabled. So it must be some interaction betwee the rest of the rules in the AirBNB package with the space-infix-ops rule, but I still haven't found the exact cause yet. Will continue digging.
Activity
Fix: patch `function-paren-newline` rule
fix: Disable `indent` rule
test: Add fixture to test `space-infix-ops` rule
fix: Patch `arrow-spacing` rule
fix: Patch `keyword-spacing` rule
wcjohnson commentedon Oct 17, 2018
I couldn't reproduce the crash with
space-infix-opsusing the given example.4.0.0-alpha.24 should fix the crashes in the other rules.
I plan to improve the
arrow-spacingrule so it detects arrow spacing problems in other LightScript syntaxes (like named arrow declarations) but that is not done yet.I didn't take any action on the rules that don't crash eslint, as they may be useful to people porting from JS or using optional brace syntax.
I will leave this open for awhile in the event that there are still any unfixed crashes in these rules.
[-]linter: error causing rules[/-][+]Linter rule crashes: `function-paren-newline`, `arrow-spacing`, `keyword-spacing`, `space-infix-ops`[/+]jguddas commentedon Oct 17, 2018
weird,
space-infix-opsdefinitely crashes on me.https://github.com/jguddas/lsc-eslint-error-example/tree/space-infix-ops
wcjohnson commentedon Nov 5, 2018
I did some more experimenting with this. Your example does reproduce the crash, but the crash doesn't reproduce using the same code with just the
space-infix-opsenabled. So it must be some interaction betwee the rest of the rules in the AirBNB package with thespace-infix-opsrule, but I still haven't found the exact cause yet. Will continue digging.