DEV: Use method definition syntax consistently (PR #14915)

GitHub

Are there any eslint rules we can use to enforce this going forward?

There are (object-shorthand - Rules - ESLint - Pluggable JavaScript linter :slightly_smiling_face:) but as with all linting rules, I’d like us to have the auto-fixing flow in place (for plugins) before adding new rules to our shared configs.