Page MenuHomePhabricator

Replace string concatenation with ES6 template literals
Open, NormalPublic


ES6 string template literals are easier to read than + string concatenation. Replace all + syntax with the new syntax. The prefer-template has an autofixer that may help in automating the effort.

Acceptance criteria

  • All additive string concatenations are replaced with template literals like ${foo}${bar}. Exceptions are as wanted but should require an explicit linter disable.
  • Concatenating a string with +is a linting failure.
  • Any linting changes are attempted at eslint-config-wikimedia.