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
This rule check if a component's name attribute matches its file name. By default it checks only .jsx files, but an additional option is provided to check both .jsx and .vue files
What category should the rule belong to?
Enforces code style
Warns about a potential error
Suggests an alternate way of doing something
Other (please specify:)
Provide 2-3 code examples that this rule should warn about:
// src/MyComponent.jsxexportdefault{name: 'MComponent',// this rule would warn of the mismatch between component's namerender(){return<div/>}}
Please describe what the rule should do:
This rule check if a component's name attribute matches its file name. By default it checks only
.jsx
files, but an additional option is provided to check both.jsx
and.vue
filesWhat category should the rule belong to?
Provide 2-3 code examples that this rule should warn about:
Additional context
As discussed with @chrisvfritz in the #589 PR comments
The text was updated successfully, but these errors were encountered: