Closed
Description
What version of ESLint are you using?
2.9.0
What parser (default, Babel-ESLint, etc.) are you using?
babel-eslint = 6.0.4
Please show your full configuration:
rules: {
...
"object-shorthand": 1,
...
}
What did you do? Please include the actual source code causing the issue.
const constant = 'foo'
....
const obj = { [constant]: constant }
What did you expect to happen?
This should pass or I am missing something on how to do it.
What actually happened? Please include the actual, raw output from ESLint.
warning Expected property shorthand object-shorthand