File tree Expand file tree Collapse file tree 3 files changed +5
-5
lines changed Expand file tree Collapse file tree 3 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -281,7 +281,7 @@ For example:
281
281
| [ vue/require-prop-comment] ( ./require-prop-comment.md ) | require props to have a comment | | :hammer : |
282
282
| [ vue/require-typed-object-prop] ( ./require-typed-object-prop.md ) | enforce adding type declarations to object props | :bulb : | :hammer : |
283
283
| [ 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 : |
285
285
| [ vue/script-indent] ( ./script-indent.md ) | enforce consistent indentation in ` <script> ` | :wrench : | :lipstick : |
286
286
| [ vue/sort-keys] ( ./sort-keys.md ) | enforce sort-keys in a manner that is compatible with order-in-components | | :hammer : |
287
287
| [ vue/static-class-names-order] ( ./static-class-names-order.md ) | enforce static class names order | :wrench : | :hammer : |
Original file line number Diff line number Diff line change 2
2
pageClass : rule-details
3
3
sidebarDepth : 0
4
4
title : vue/restricted-component-names
5
- description : enforce consistency in component names
5
+ description : enforce using only specific in component names
6
6
---
7
7
8
8
# vue/restricted-component-names
9
9
10
- > enforce consistency in component names
10
+ > enforce using only specific in component names
11
11
12
12
- :exclamation : <badge text =" This rule has not been released yet. " vertical =" middle " type =" error " > _ ** This rule has not been released yet.** _ </badge >
13
13
Original file line number Diff line number Diff line change @@ -46,7 +46,7 @@ module.exports = {
46
46
meta : {
47
47
type : 'problem' ,
48
48
docs : {
49
- description : 'enforce consistency in component names' ,
49
+ description : 'enforce using only specific in component names' ,
50
50
categories : undefined ,
51
51
url : 'https://eslint.vuejs.org/rules/restricted-component-names.html'
52
52
} ,
@@ -66,7 +66,7 @@ module.exports = {
66
66
}
67
67
] ,
68
68
messages : {
69
- invalidName : 'Component name "{{name}}" is not valid .'
69
+ invalidName : 'Component name "{{name}}" is not allowed .'
70
70
}
71
71
} ,
72
72
/** @param {RuleContext } context */
You can’t perform that action at this time.
0 commit comments