From the course: ESLint: Checking for Syntax and Logic Errors
Unlock the full course today
Join today to access over 22,600 courses taught by industry experts or purchase this course individually.
Challenge
(playful music) - [Instructor] Ready to try your hand at configuring ESLint error checking features? It's time for a challenge. The start files for this video are in the challenge folder. For this project, the rules section of the eslintrc file is empty. The index.js file in the source folder contains test code with a few comments. Each comment describes how ESLint should react to the line of code that follows. Your task is to edit the eslintrc file so the five error types in the comments are flagged. You may need to fix earlier flagged errors in order for ESLint to identify errors that occur further down in the code. So fix errors as you go. This should take you 10 to 15 minutes. When you're done, join me in the next video and I'll walk you through how I approached it. Have fun.
Contents
-
-
-
Understanding ESLint error rule types1m 39s
-
(Locked)
Flagging issues in functions3m 4s
-
(Locked)
Identifying problems in loops and conditionals3m 12s
-
(Locked)
Eliminating unfinished code4m 44s
-
(Locked)
Ensuring accurate values3m 39s
-
(Locked)
Calling out general logic errors4m 28s
-
(Locked)
Challenge55s
-
(Locked)
Solution6m 33s
-
-