Skip to content

Commit 1aa1de6

Browse files
update docs
1 parent 9161964 commit 1aa1de6

File tree

4 files changed

+5
-4
lines changed

4 files changed

+5
-4
lines changed

docs/rules/force-types-on-object-props.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,11 @@
22
pageClass: rule-details
33
sidebarDepth: 0
44
title: vue/force-types-on-object-props
5-
description: enforce user to add type declaration to object props
5+
description: enforce adding type declarations to object props
66
---
77
# vue/force-types-on-object-props
88

9-
> enforce user to add type declaration to object props
9+
> enforce adding type declarations to object props
1010
1111
- :exclamation: <badge text="This rule has not been released yet." vertical="middle" type="error"> ***This rule has not been released yet.*** </badge>
1212
- :gear: This rule is included in all of `"plugin:vue/base"`, `"plugin:vue/essential"`, `"plugin:vue/vue3-essential"`, `"plugin:vue/strongly-recommended"`, `"plugin:vue/vue3-strongly-recommended"`, `"plugin:vue/recommended"` and `"plugin:vue/vue3-recommended"`.

docs/rules/index.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ Rules in this category are enabled for all presets provided by eslint-plugin-vue
2828
| Rule ID | Description | | |
2929
|:--------|:------------|:--:|:--:|
3030
| [vue/comment-directive](./comment-directive.md) | support comment-directives in `<template>` | | :warning: |
31-
| [vue/force-types-on-object-props](./force-types-on-object-props.md) | enforce user to add type declaration to object props | | :hammer: |
31+
| [vue/force-types-on-object-props](./force-types-on-object-props.md) | enforce adding type declarations to object props | | :hammer: |
3232
| [vue/jsx-uses-vars](./jsx-uses-vars.md) | prevent variables used in JSX to be marked as unused | | :warning: |
3333

3434
</rules-table>

lib/configs/base.js

+1
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ module.exports = {
1616
plugins: ['vue'],
1717
rules: {
1818
'vue/comment-directive': 'error',
19+
'vue/force-types-on-object-props': 'error',
1920
'vue/jsx-uses-vars': 'error'
2021
}
2122
}

lib/rules/force-types-on-object-props.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ module.exports = {
134134
type: 'suggestion',
135135
docs: {
136136
description: 'enforce adding type declarations to object props',
137-
categories: ['suggestion'],
137+
categories: ['base'],
138138
recommended: false,
139139
url: 'https://eslint.vuejs.org/rules/force-types-on-object-props.html'
140140
},

0 commit comments

Comments
 (0)