Closed TinoDidriksen closed 3 years ago
We should also set https://eslint.org/docs/rules/no-var in the future, though that requires a lot more testing to ensure all scopes are actually correct.
That makes sense. IE11 is the only one anyone needs to care about these days, but IE11 is unfortunately still relevant. Luckily, IE11 supports trailing commas and let
.
The diff from https://github.com/apertium/apertium-html-tools/pull/400 has superfluous line changes, which made me realize this project enforces no trailing commas. So change that to enforce trailing commas, except for function args, as this reduces diff overhead and copy-paste errors. It is a travesty that JSON doesn't allow trailing commas, but we should absolutely require it for all JS lists.