You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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:
Add eslint and prettier to package.json
Add a default eslintconfig and prettierconfig file. Additionally, add local .vscode configuration if needed
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.
The text was updated successfully, but these errors were encountered:
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:
eslint
andprettier
topackage.json
eslintconfig
andprettierconfig
file. Additionally, add local.vscode
configuration if neededIn addition, this will also make PR codes more consistent and easier to review.
The text was updated successfully, but these errors were encountered: