jscs-dev / node-jscs

:arrow_heading_up: JavaScript Code Style checker (unmaintained)
https://jscs-dev.github.io
MIT License
4.96k stars 510 forks source link

requireEnhancedObjectLiterals #2013

Closed kobezzza closed 8 years ago

kobezzza commented 8 years ago
export const COMMENTS = {
    [SINGLE_COMMENT]: SINGLE_COMMENT // Error
};
hzoo commented 8 years ago

What's the error say?

kobezzza commented 8 years ago

What's the error say?

Property assignment should use enchanced object literal function. {propName: propName} is not allowed.

hzoo commented 8 years ago

Ok requireEnhancedObjectLiterals just needs to account for computed properties

markelog commented 8 years ago

@kobezzza Would like to try to tackle this bug?

kobezzza commented 8 years ago

@kobezzza Would like to try to tackle this bug?

Ok

markelog commented 8 years ago

Friendly ping