-
Notifications
You must be signed in to change notification settings - Fork 44
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
Adapt a code style #141
Comments
I am biased as well (which dev isn't?)... but my recommendation would be Standard: https://github.com/feross/standard - you can see that it's well past 5k stars and the primary principle is to not bikeshed on style and just get work done. Any |
That argument applies to any eslint config... "standard" name does not make it an exception. Besides, eslint-config-standard is not a real style guide. It only defines a bare minimum of style requirements.
|
@phpnode See the changes I have done for node-mysql2. sidorares/node-mysql2#268 I am happy to contribute equivalent style config and changes to this code base. |
@gajus that'd be awesome, thanks! I've added you as a collab on github. |
Standard is out because of the semi-colons thing, you can prise them from my cold, dead, fingers 😄 |
@phpnode Would you like me to branch from master or v2 branch? |
It doesn't in this case, because by design,
Cool, fair enough. There's https://github.com/Flet/semistandard for that 😛 But on a serious note, I'm glad this issue was brought up. Any style is better than no style and I'm glad to see this this as it'll make everyone more productive and allow them to focus on what really matters. |
Adapt a code style and declare "lint" script.
It is really hard to contribute to a codebase when it has not adapted code style.
I am biased (author), but I recommend
eslint-config-canonical
as it is the most strict of the existing style guides (, which has its pros and cons).Alternatively, please have a look at https://github.com/dustinspecker/awesome-eslint.
If you choose to go with Canonical style guide, I will happily submit a PR.
The text was updated successfully, but these errors were encountered: