Code Quality : Linting and formatting#69
Conversation
|
I have tested this in a separate branch. Review, if it is okay, then you can run After your review, we can lint it. |
|
Note that the lint and format are run by the developer. If the person forgets, then the code still gets pushed. No pre-hook like the one described here or some kind of CI automation. |
anomic30
left a comment
There was a problem hiding this comment.
Should we include a prettierignore file to ignore node modules when linting?
Yes yes. I didn't add that because prettier ignores that by default... But we can excilicitly ignore that. |
Okay fine. I am trying to finish or fix up #71 ...PR |
We can set it up later. |
Description
This defined coding standards (code quality) and formatting styles. This was done to help collaborators follow the same style to avoid inconsistency and quality of code.
To do this, ESLint was used as a linting tool for code quality and prettier was used as a formatting tool. The standard extended is the Airbnb JavaScript style guide.
As a result, ESLint and its peer dependencies.
Fixes #60 (issue)
Type of change
Checklist: