l10ns
l10ns copied to clipboard
Unable to parse with break lines and trailing commas
I use airbnb eslint, and it use the following rule: http://eslint.org/docs/rules/comma-dangle
I am writing code with trailing commas but l10ns can't parse it...
return l(
'my->super->string',
{ playerName: 'playername' }, <<-- WITH COMMA UPDATE WAS FAILED
)
l10ns only parse if has not trailing commas
return l(
'my->super->string',
{ playerName: 'playername' }
)
Any help or update? PD: Sorry for my english
Unfortunately, l10ns doesn't support trailing commas right now. Though, in the next version we will have an embedded JS parser to deal with this.
@krailler - you are invoking the l
function here .. how comes your eslint includes an extra comma? Have you taken a look at prettier
yet?