Closed amannn closed 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.
filenames/match-exported
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.
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.
index.page.tsx
Index
IndexPage
eslint-plugins-filenames
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.