Community
Participate
Working Groups
The ECMAScript 5 grammar permits extra commas in cases that were considered syntax errors in ES3: Object literal: > var foo = { > bar: 0, > qux: 1, // extra comma > }; Array literal: > var arr = [1,2,]; // extra comma > var arr = [1,2,,,,]; // several extra commas (only arrays allow this) Orion's validator should provide a rule that flags these. The rule should be set to "Ignore" by default (we should assume authors are targeting ES5, not ES3).
Closing wontfix. I don't think we should be creating rules for old (no longer used) language rules, that are also off by default. If anyone disagrees, feel free to reopen.
Reopening to retarget at a specific eslint rule: http://eslint.org/docs/rules/no-sparse-arrays.html
Rule + tests: http://git.eclipse.org/c/orion/org.eclipse.orion.client.git/commit/?id=090a030b60e1898a446f237c6c06f743b8cb3398