Skip to content

[New] Add prop-name-casing #289

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 8 commits into from
Feb 21, 2018
Merged

Conversation

bfkbx960
Copy link

This PR implements rule proposed in #252

@michalsnik
Copy link
Member

Thanks for your work @bfkbx960 ! We really appreciate it :) We're going to merge new rules once stable v4 is out 🚀

Copy link
Member

@michalsnik michalsnik left a comment

Choose a reason for hiding this comment

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

Good job @bfkbx960 👍 I left two comments though, update PR and we're ready to 🚢 it :)

if (convertedName !== propName) {
context.report({
node: item,
message: 'Prop "{{name}}" is not {{caseType}}.',
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 it should be: is not in

meta: {
docs: {
description: 'enforce specific casing for the Prop name in Vue components',
category: 'strongly-recommended'
Copy link
Member

Choose a reason for hiding this comment

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

Can you please change the category to be upcoming?

category: 'upcoming' // 'strongly-recommended'

We're not going to enable this rule by default until the next major release, so we'll stash them in special category for everyone to see what's going to be enabled in next version :)

@bfkbx960
Copy link
Author

bfkbx960 commented Jan 4, 2018

@michalsnik suggestions applied, thank you for code review.
In my local environment the test will succeed but it seems to fail here :(

@michalsnik michalsnik self-assigned this Jan 6, 2018
@michalsnik michalsnik added this to the v4.2.0 milestone Jan 6, 2018
@michalsnik michalsnik requested a review from mysticatea January 28, 2018 22:52
@michalsnik michalsnik removed this from the v4.2.0 milestone Jan 28, 2018
@michalsnik michalsnik merged commit 789a2fc into vuejs:master Feb 21, 2018
michalsnik pushed a commit that referenced this pull request Feb 24, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants