I recently had the opportunity of contributing code to the upcoming default theme of WordPress — Twenty Nineteen on GitHub. The project was developing at a quite fast pace. It was receiving an average of 20 to 30 commits and PRs — pull requests — on a daily basis.
- ESLint is a modern linting tool for JS development to make your code consistent and bug-free.
npm install eslint --globalto install ESLint globally.
- Go to your project in the terminal and run
eslint --initto initiate and setup linting for your project.
- Install and automate your workflow in VSCode using ESLint extension.