You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 0b51c93
Browse filesBrowse the repository at this point in the historyBrowse files
Fixed `vue/no-unused-components` to match registered names the same way Vue resolves components, so e.g. a `myComponent` registration used only as `<MyComponent>` (which Vue cannot resolve) is now reported
Copy file name to clipboardExpand all lines: docs/rules/no-unused-components.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -89,7 +89,7 @@ export default {
89
89
</eslint-code-block>
90
90
91
91
::: warning Note
92
-
Components registered under `PascalCase` or `camelCase` names may be called however you like, except using `snake_case`. Otherwise, they will need to be called directly under the specified name.
92
+
A component counts as used when Vue can resolve it from the template, the same way Vue does at runtime. For a tag in the template, Vue looks for a registration named exactly like the tag, then like the tag in `camelCase`, then like the tag in `PascalCase`. So a component registered as `TheButton` is found by `<TheButton>`, `<the-button>` and `<theButton>`. But a component registered as `theButton` is not found by `<TheButton>`, because Vue never lowercases the first letter of a tag.
0 commit comments