Page MenuHomePhabricator

Use shorthand properties
Open, NormalPublic

Description

Shorthand properties reduce the verbosity of object creation syntax which improves readability. Revise all object creation to use shorthand wherever it makes sense. An object-shorthand autofixer exists and may help the effort.

Acceptance criteria

  • All objects are considered for the new syntax and updated as appropriate. This includes src/, tests/, and even webpack.config.js.
  • Any changes to the ESLint config should be attempted in eslint-config-wikimedia.
  • No regressions to production or test code..

Related Objects