Skip to content

Latest commit

 

History

History
35 lines (25 loc) · 639 Bytes

prop-name-casing.md

File metadata and controls

35 lines (25 loc) · 639 Bytes

enforce specific casing for the Prop name in Vue components (vue/prop-name-casing)

This rule would enforce proper casing of props in vue components(camelCase).

📖 Rule Details

(https://vuejs.org/v2/style-guide/#Prop-name-casing-strongly-recommended).

👍 Examples of correct code for camelCase:

export default {
  props: {
    greetingText: String
  }
}

👎 Examples of incorrect code for camelCase:

export default {
  props: {
    'greeting-text': String
  }
}

🔧 Options

Default casing is set to camelCase.

"vue/prop-name-casing": ["error", "camelCase|snake_case"]