-
Notifications
You must be signed in to change notification settings - Fork 34
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
filenames/match-exported
: Error when exporting from index.d.ts
file.
#41
Comments
As an alternative, you can use eslint-plugin-project-structure
ESLint plugin with rules to help you achieve a scalable, consistent, and well-structured project. Create your own framework! Define your folder structure, advanced naming conventions, file composition, and create independent modules. Take your project to the next level and save time by automating the review of key principles of a healthy project! project‑structure/folder‑structureEnforce rules on folder structure to keep your project consistent, orderly and well thought out.
|
When exporting with
export default
from anindex.d.ts
file (TypeScript definitions), I get an error. But the error should be ignored forindex.d.ts
files, just like they are ignored forindex.js
andindex.ts
files.Basically, maybe check for this with a regex for
index
before the first period, and if that exists, then skip thefilenames/match-exported
check.It seems to me that here:
eslint-plugin-filenames/lib/common/isIndexFile.js
Line 2 in 9cdf56a
It can therefore be something like:
Or something.
The text was updated successfully, but these errors were encountered: