Skip to content

vue/prop-name-casing warns variable computed property #442

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

Closed
ota-meshi opened this issue Mar 23, 2018 · 0 comments · Fixed by #444
Closed

vue/prop-name-casing warns variable computed property #442

ota-meshi opened this issue Mar 23, 2018 · 0 comments · Fixed by #444
Assignees
Labels

Comments

@ota-meshi
Copy link
Member

Tell us about your environment

  • ESLint Version:
    4.18.1
  • eslint-plugin-vue Version:
    4.3.0
  • Node Version:
    8.0.0
    Please show your full configuration:
    'vue/prop-name-casing': 'error',

What did you do? Please include the actual source code causing the issue.

        export default {
          props: {
            [greeting_text]: String
          }
        }

What did you expect to happen?

Since [greeting_text] is a variable computed property, it should not be a warn.

What actually happened? Please include the actual, raw output from ESLint.

[greeting_text] warned

Prop "greeting_text" is not in camelCase.

I noticed when I was PR #402.
#402 (review)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants