-
Notifications
You must be signed in to change notification settings - Fork 739
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
Review file and folder structure casing and relationship #38
Comments
Yes - this is the class-name rule that is already enforced in the packages via gts
I'm fine with enforcing camelCase for filenames. The TS book style guide concurs and the TypeScript repo itself uses it. We can enforce that via the file-name-casing rule. Google uses We should be able to use the
The TypeScript repo itself seems to use camelCase for folders, which would make it consistent with file names, but I'm fine with |
+1 What should be the TSLint rule for name of the test files? (either |
@draffensperger I'm not sure your suggestions are the same as what I described above. Let me provide a few examples of what I meant just to make sure. Class example: This makes it easy to know what is the content of the file. The most important part is the files where the file name matches the export. I don't have a strong opinion for folders or utilities names. kebab-case and snake_case are easier to read, but camelCase would be more consistent. Is this something these TSLint rules can handle? If not I'm fine to revisit this with something that can be enforced as it will make standardizing this easier. |
I believe our code bases are following such rules and this issue can be closed. |
Is your feature request related to a problem? Please describe.
Right now it's not easy to correlate a file with its content. A usual TypeScript project has the name of the file match what it exports. For example: https://github.com/microsoft/TypeScript-Node-Starter/tree/master/src
Describe the solution you'd like
There should be a TSLint rule if possible with the below rules:
The text was updated successfully, but these errors were encountered: