React: Check filename matches name of exported component
karlhorky opened this issue · comments
Karl Horky commented
The filename (excluding extension) should match the name of the default exported component.
Investigate: Can ESLint do this instead? That would be nicer, if possible.
Karl Horky commented
Ah ESLint can indeed do this, and there are plugins for this: upleveled/eslint-config-upleveled#96