-
-
Notifications
You must be signed in to change notification settings - Fork 6.5k
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
Settle on file naming convention throughout the codebase #3771
Comments
i like undercores + everything lower case (dependency_resolver.js) because:
using camel case tho saves 1 character everywhere you'd type an underscore, and it looks more like what you'd name a variable in JS. i know a lot of people dislike using underscores in file names, but i never heard any reasonable explanation why, so i'd be curious to go through pros/cons of each convention :) |
i think this file tree looks pretty consistent and it's very easy to make a decision on naming new files:
|
Actually after @DmitriiAbramov I'm less interested in camel case naming. |
@thymikee Do we want to go with |
i think we're good to go with underscores. I had a quick chat with @cpojer and it seems like he doesn't mind either. he mentioned that npm package names usually have |
and yeah, it would be awesome if you could work on it @anilreddykatta! |
Thank you for recommending underscores. An unstated assumption is naming convention applies to descendants of How does this apply to What do you think about a gray areas like names of Last, how hard will it be to rebase any open PRs that get caught in the middle of this? |
@pedrottimark I'd really want to have as few exceptions as possible, so that there's never any confusion around "how do i name my file?" question. (ideally this question should not exist at all). moving to i think the only exception that we'd have is naming publicly exported packages/files (like for react components. i think it's still worth naming them as |
@pedrottimark as for rebase, i think github is pretty smart with renaming and can figure out that it's the same file with a different name. but i can't promise that :) |
followup task #3890 |
* Resolved conflicts * Including eslint file for forcing file names * renaming files * renaming files
* Resolved conflicts * Including eslint file for forcing file names * renaming files * renaming files
This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
Do you want to request a feature or report a bug?
Refactor
What is the current behavior?
Files are named pretty inconsistenly, which makes me sad.
What is the expected behavior?
File naming is consistent, using camelCase or kebab-case (I'm on camelCase train)
I think it would be pretty nice bootcamp task for new Jest contributors, once we settle on the proper naming :)
The text was updated successfully, but these errors were encountered: