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

Adding ESLINT + Prettier Support #97

Closed
YosephKS opened this issue Jan 18, 2022 · 0 comments
Closed

Adding ESLINT + Prettier Support #97

YosephKS opened this issue Jan 18, 2022 · 0 comments

Comments

@YosephKS
Copy link

In order to increase the readibility of the code, linting and formatting must be incorporated within the development process. The most popular linter in JS is ESLINT and similarly for formatter it is Prettier. To enforce this within the code:

  1. Add eslint and prettier to package.json
  2. Add a default eslintconfig and prettierconfig file. Additionally, add local .vscode configuration if needed
  3. Add all these linting and formatting process in git hooks so that it would be forced when making a new commit

In addition, this will also make PR codes more consistent and easier to review.

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

No branches or pull requests

1 participant