Abstract
This note tracked why we need eslint and how to use eslint in Valina JavaScript and TypeScript projects.
Background
Why?: People may have different habits and preferences on how to format code and name a variable. While this is not necessarily a problem, team collaboration, codebase maintainability, and readability would be annoying issues when working with other people on a large project.
So here comes a question, how can I enforce a consistent style across team members?
JSLint is the first trial of the above problem. Eslint, a successor, is adopted widely by developers. After typescript adoptions, typescript-eslint project emerged to satisfy the needs of force code style on typescript projects.