Skip to content

Commit 902db38

Browse files
committed
feat: update suggestions
1 parent 148cc44 commit 902db38

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

docs/rules/index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -281,7 +281,7 @@ For example:
281281
| [vue/require-prop-comment](./require-prop-comment.md) | require props to have a comment | | :hammer: |
282282
| [vue/require-typed-object-prop](./require-typed-object-prop.md) | enforce adding type declarations to object props | :bulb: | :hammer: |
283283
| [vue/require-typed-ref](./require-typed-ref.md) | require `ref` and `shallowRef` functions to be strongly typed | | :hammer: |
284-
| [vue/restricted-component-names](./restricted-component-names.md) | enforce consistency in component names | | :warning: |
284+
| [vue/restricted-component-names](./restricted-component-names.md) | enforce using only specific in component names | | :warning: |
285285
| [vue/script-indent](./script-indent.md) | enforce consistent indentation in `<script>` | :wrench: | :lipstick: |
286286
| [vue/sort-keys](./sort-keys.md) | enforce sort-keys in a manner that is compatible with order-in-components | | :hammer: |
287287
| [vue/static-class-names-order](./static-class-names-order.md) | enforce static class names order | :wrench: | :hammer: |

docs/rules/restricted-component-names.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,12 @@
22
pageClass: rule-details
33
sidebarDepth: 0
44
title: vue/restricted-component-names
5-
description: enforce consistency in component names
5+
description: enforce using only specific in component names
66
---
77

88
# vue/restricted-component-names
99

10-
> enforce consistency in component names
10+
> enforce using only specific in component names
1111
1212
- :exclamation: <badge text="This rule has not been released yet." vertical="middle" type="error"> _**This rule has not been released yet.**_ </badge>
1313

lib/rules/restricted-component-names.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ module.exports = {
4646
meta: {
4747
type: 'problem',
4848
docs: {
49-
description: 'enforce consistency in component names',
49+
description: 'enforce using only specific in component names',
5050
categories: undefined,
5151
url: 'https://eslint.vuejs.org/rules/restricted-component-names.html'
5252
},
@@ -66,7 +66,7 @@ module.exports = {
6666
}
6767
],
6868
messages: {
69-
invalidName: 'Component name "{{name}}" is not valid.'
69+
invalidName: 'Component name "{{name}}" is not allowed.'
7070
}
7171
},
7272
/** @param {RuleContext} context */

0 commit comments

Comments
 (0)