Skip to content
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

style: adhere to standard code style #470

Closed
wants to merge 1 commit into from
Closed

style: adhere to standard code style #470

wants to merge 1 commit into from

Conversation

TheDancingCode
Copy link

Remove eslint rule overrides and adapt code accordingly. This completes the conversion to standard style as intended in #406.

@LinusU
Copy link
Contributor

LinusU commented Mar 2, 2018

I personally prefer to slowly adapt every part of the code that as we change it, that way diffs and history (e.g. git blame) still works as intended.

That is how we are currently handling it in express

On the other hand, I don't feel too strongly about this so I'll let @jimthedev decide :)

@TheDancingCode
Copy link
Author

In understand your reasoning, but I'm not sure you'll ever get rid of the exceptions then. It presupposes contributors somehow being aware that the extra rules in the ESLint config are temporary. They would have to disable them before linting, and then re-enable them before submitting a PR. Your repo's history shows that that doesn't happen: last year's code changes and additions don't adhere to the standard code style.

@LinusU
Copy link
Contributor

LinusU commented Mar 2, 2018

Maybe we could use this lovely project?

https://github.com/okonet/lint-staged

@TheDancingCode
Copy link
Author

Won't that make the git diffs and blame even more confusing? A commit changing a part of the code in a file would suddenly have all these other stylistic changes in the rest of the file, unrelated to the commit.

Making one big style commit with an appropriate title at least signals clearly that all the changes in that commit are style related, and if needed, one can easily look for the git blame before this one commit.

@LinusU
Copy link
Contributor

LinusU commented Mar 15, 2018

The idea is not to fix the entire file as soon as you touch it, but rather just fix the line that you touch. This has worked very well in the express project.

That being said, I'm also open to just merging this...

@jimthedev
Copy link
Member

Will not implement.

@jimthedev jimthedev closed this Jul 17, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants