- In your
pokedex
project, find all the files with a comment like:/* eslint-disable indent, linebreak-style */
- Edit the comment to remove the
linebreak-style
bit, so that it just becomes/* eslint-disable indent */
This will cause ESLint to fail, but don't worry we'll fix it in the next step :)
- Open a file where ESLint is failing - you can tell by looking for the filename in your browser (if
npm start
is running), or by looking for red squiggly lines in VSCode - Press Ctrl-Shift-P to open the Command Palette
- Type "eol"
- Select the "Change End of Line Sequence" option
- Select the "LF" option
- Repeat these steps for each file where ESLint is failing
This should fix the problem in the files you created in the lesson. But if you create a new file, so you also need to change the "global" setting.
- In VSCode open the settings file (see here
- Search for "end of line"
- Seting
Eol
to\n
(shows "LF" at the bottom)