upleveled / preflight

Preflight checks for your UpLeveled projects before you submit 🚀

Home Page:https://www.npmjs.com/package/@upleveled/preflight

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

React: Check filename matches name of exported component

karlhorky opened this issue · comments

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.

Ah ESLint can indeed do this, and there are plugins for this: upleveled/eslint-config-upleveled#96