-
Notifications
You must be signed in to change notification settings - Fork 29
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
Code formatting #44
Comments
Sounds nice, though I'd suggest enforcing this with a linter as well |
I agree with what you said, but I think the problem here would be that some of the people contributing may not appreciate the role of a linter yet - i.e. haven't worked in large enough codebase to realize that non-strict code styles can become a problem So I'd recommend against making it mandatory. Could we maybe add it as optional? So if someone is contributing a big feature then we can ask them to run the linter (on the lines added in their diff?), but if someone is contributing a simple one liner CSS bug fix, I don't want to drag on that process... |
Sounds good |
I don't want to set up a linting check / commit hook because I think it'll add friction to the process of contributing to the site
Also this is a small project so we might not really need it.
But we do want to end up just formatting everything from time to time so that it looks consistent for someone new who looks at the code.
Chances are -- if the code already isn't spaghetti then someone changing some files would also adhere to the making their changes look nice and fit in with the rest of the code too.
How could we achieve this? How about adding a few scripts which can be manually triggered to auto-format html, css, yaml, and js and then one could just run the script after it's been a long time and submit a PR
The text was updated successfully, but these errors were encountered: