Skip to content
This repository has been archived by the owner on Aug 4, 2020. It is now read-only.

object-shorthand doesn't allow optional parameters #63

Closed
mhagmajer opened this issue Jun 10, 2016 · 2 comments
Closed

object-shorthand doesn't allow optional parameters #63

mhagmajer opened this issue Jun 10, 2016 · 2 comments

Comments

@mhagmajer
Copy link

The configuration below raises "Configuration invalid" errors.

    'babel/object-shorthand': [2, 'always', {
      ignoreConstructors: false,
      avoidQuotes: true,
    }],
@danez
Copy link
Member

danez commented Jun 10, 2016

The rule in this repository is based on an older version of the original object-shorthand rule. This means that the 3rd config param in the array is not supported, only 'babel/object-shorthand': [2, 'always'] should work currently.

@hzoo
Copy link
Member

hzoo commented Nov 17, 2016

deprecating those rules so closing #115

@hzoo hzoo closed this as completed Nov 17, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants