Installing ESLint - AUV-IITK/Website2020 GitHub Wiki
In order to setup ESLint, follow the given steps.
- Make sure that your local repository is up to date with upstream. If not pull the changes from upstream.
- 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. - Inside your terminal run the command
npm install. Make sure that you run this command in the root of the git repository. - Add the eslint extension for your code editor and enable it. To understand how to install extensions checkout here for VSCode.
- To check if eslint is installed disrupt the indentation in any file. A red squiggly underline should appear.