Installing ESLint - AUV-IITK/Website2020 GitHub Wiki

In order to setup ESLint, follow the given steps.

  1. Make sure that your local repository is up to date with upstream. If not pull the changes from upstream.
  2. Check the package.json file. You should be able to find the line "eslint": "^7.26.0". This means that eslint has been added as a development dependency.
  3. Inside your terminal run the command npm install. Make sure that you run this command in the root of the git repository.
  4. Add the eslint extension for your code editor and enable it. To understand how to install extensions checkout here for VSCode.
  5. To check if eslint is installed disrupt the indentation in any file. A red squiggly underline should appear.