Description
It is a good idea to make sure that your code is formatted based on a single standard throughout your project. There are two packages that can usually help you with that:
prettier is a formatter that makes sure that your code is formatted the same way throughout. For example all files use tab characters for indenting.
eslint is a linter that checks the code for common coding mistakes and warns you if it encounters any of them. It can also automatically fix some mistakes.
Acceptance criteria
Guidance 🧭
Check the code quality guide for steps on how to format and form
Description
It is a good idea to make sure that your code is formatted based on a single standard throughout your project. There are two packages that can usually help you with that:
prettieris a formatter that makes sure that your code is formatted the same way throughout. For example all files usetabcharacters for indenting.eslintis a linter that checks the code for common coding mistakes and warns you if it encounters any of them. It can also automatically fix some mistakes.Acceptance criteria
.prettierrc.eslintrcGuidance 🧭
Check the code quality guide for steps on how to format and form