molindo / eslint-config-molindo

ESLint config that implements the Molindo styleguide and helps to catch errors
MIT License
1 stars 2 forks source link

Default export should match filename #45

Closed amannn closed 4 years ago

amannn commented 4 years ago

See the discussion in https://github.com/benmosher/eslint-plugin-import/issues/662 and filenames/match-exported of https://www.npmjs.com/package/eslint-plugin-filenames.

However with the current story with peer dependencies it's a bit painful to add new plugins.

Related, it would be nice to ensure that imports match filenames.

amannn commented 4 years ago

There are some exceptions to this:

E.g. in Next.js you have index.page.tsx but neither Index nor IndexPage work for the current state of eslint-plugins-filenames.