Skip to content

Fix options documentation in order-in-components #76

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Jul 14, 2017

Conversation

armano2
Copy link
Contributor

@armano2 armano2 commented Jul 14, 2017

No description provided.

'renderError'
]
}
]
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this is actually wrong. Current version seems fine @armano2, why do you want to change it?

Copy link
Contributor Author

@armano2 armano2 Jul 14, 2017

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lifecycle_hooks is invalid because it's should be LIFECYCLE_HOOKS

Its defined here rules/order-in-components.js#L25 and used rules/order-in-components.js#L111

if you want to make it work we will have to change

const extendedOrder = order.map(property => groups[property] || property)

to

const extendedOrder = order.map(property => groups[property.toUpperCase()] || property)

i just copied current configuration from rules

Copy link
Member

@michalsnik michalsnik Jul 14, 2017

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah this one. Okay. Then please update only this attribute in this PR. The rest is fine. In your pasted example there is a { missing. Let's keep the diff obvious :)

@michalsnik
Copy link
Member

Perfect, thanks!

@michalsnik michalsnik merged commit d5bd07f into vuejs:master Jul 14, 2017
@armano2 armano2 deleted the patch-4-doc branch July 14, 2017 12:47
ajmas added a commit to ajmas/eslint-plugin-vue that referenced this pull request Dec 17, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants