jscodeshift codemod that converts object shorthand syntax
// from this
const person = {
name: function() {
return this.firstName + " " + this.lastName;
}
};
// to this
const person = {
name() {
return this.firstName + " " + this.lastName;
}
};