Add ESLint to APPM Store react app

Description

ESLint is a linter for ECMAScript. It will help make code cleaner and more consistent. Linting code is already an established part of any popular JavaScript project. It has a lot of benefits such as:

  • Enhance Readability
  • Consistent code style
  • Pre-code review
  • Finding syntax errors before execution
  • Run ESLint as part of the CI pipeline

With ESLint we have the possibility to define a set of styling rules which increases the readability of our code towards the effort of having our codebase look like it was written by “one person”. For a list of rules, you can refer to the list of ESLint rules. This is important because of a lot of people involved with the development of APPM Store react app. A common set of rules makes it easier to really understand what the code is doing.

References

Edited by Jayasanka Weerasinghe