Skip to content
This repository has been archived by the owner on Mar 23, 2024. It is now read-only.

(disallow|require)SpaceAfterObjectKeys: check object method shorthand (ES6) #1365

Closed
hzoo opened this issue May 11, 2015 · 0 comments
Closed

Comments

@hzoo
Copy link
Member

hzoo commented May 11, 2015

From https://github.com/dockyard/ember-suave/issues/29.

Related to #1013 since we added a check for property.method to return;

// bad
let x = {
  foo () { // space before parentheses
  }
};
// good
let x = {
  foo() {
  }
}
hzoo added a commit to hzoo/node-jscs that referenced this issue May 11, 2015
@hzoo hzoo changed the title (disallow|require)SpaceAfterObjectKeys: check object method shorthand (disallow|require)SpaceAfterObjectKeys: check object method shorthand (ES6) May 14, 2015
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant