--- pageClass: rule-details sidebarDepth: 0 title: vue/require-prop-types description: require type definitions in props since: v3.9.0 --- # vue/require-prop-types > require type definitions in props - :gear: This rule is included in the following preset configs: - `*.configs["flat/strongly-recommended"]` - `*.configs["flat/vue2-strongly-recommended"]` - `*.configs["flat/recommended"]` - `*.configs["flat/vue2-recommended"]` - `"plugin:vue/strongly-recommended"` - `"plugin:vue/vue2-strongly-recommended"` - `"plugin:vue/recommended"` - `"plugin:vue/vue2-recommended"` ## :book: Rule Details This rule enforces that a `props` statement contains type definition. In committed code, prop definitions should always be as detailed as possible, specifying at least type(s). ```vue ``` ## :wrench: Options Nothing. ## :books: Further Reading - [Style guide - Prop definitions](https://vuejs.org/style-guide/rules-essential.html#use-detailed-prop-definitions) ## :rocket: Version This rule was introduced in eslint-plugin-vue v3.9.0 ## :mag: Implementation - [Rule source](https://github.com/vuejs/eslint-plugin-vue/blob/master/lib/rules/require-prop-types.js) - [Test source](https://github.com/vuejs/eslint-plugin-vue/blob/master/tests/lib/rules/require-prop-types.test.ts)