Closed caiangums closed 5 years ago
Is it a valid proposal to help with this?
Sure it is : )
I can fork the project and place a linter with some basic stuff. I think I can do this on this week before Friday and open the PR.
Is there any template for PR or minimal description that I have to do?
No template so far. I think the best idea is not only to adopt a linter, but to make sure a CI checks for it and blocks new code to be added if it doesn't respect the linter coding style. I'm not into the JS world but we implemented this scheme in the backend using Black in the CI, so I leave this as a possible reference: https://github.com/okfn-brasil/perfil-politico/pull/54
Is this solved yet? I could contribute with a simple eslint/husky integration that should work out of the box.
Is this solved yet?
Not yet, but maybe @caian-gums is working on it. You might want to check with them.
I could contribute with a simple eslint/husky integration that should work out of the box.
Sounds good. I think a pre-commit hook would be great (but optional). Essentially what we need as a first-step is a CI check to throw us a red light when code is not formatted properly ; )
@cuducos in my experimentations I also added prettier as a code formatter, which would prevent future typos and mistakes while developing. It integrates very well with eslint and auto format the code for you when saving the file, which is great because it takes one burden off the developer (to decide which code style to follow). Throwing a CI to consume these tasks should not be difficult from now on.
@caian-gums do you have your PR ready to merge or should I move forward on this?
in my experimentations I also added prettier as a code formatter
Just googled it and… opinionated code formatter. Love it : )
Just added a PR listing all the changes. If @caian-gums is preparing a PR, i could drop that.
Closed by #13
Hey, I've noticed that the project doesn't have a
linter
. Is it a valid proposal to help with this?