ESLint: Checking for Syntax and Logic Errors
39mAdvanced2022-11-09
Authors

Sasha Vodnik
Principal Technical Course Developer at DocuSign
Course details
Reduce bugs and boost efficiency by using ESLint to catch common coding errors. In this course—the third and final installment in the ESLint series—learn about some of the most essential error-catching rules in ESLint, as well as how to configure them. Instructor Sasha Vodnik details how to configure rules to identify errors in code for functions; configure ESLint to identify issues with loops and in conditional structures; enable error checking for logic errors in for and if-else statements; identify empty blocks and unneeded debugging statements; alert you to sparse arrays and strings that seem to use template literal syntax; and catch common logic errors. Plus, Sasha provides a challenge that allows you to put your new skills to the test.
Skills covered
ESLintJavaScriptWeb Development ToolsOracleWeb DevelopmentOpen SourceDeep Dive (X:Y)
Concepts
0. Introduction
- 01 - Using ESLint to catch coding errors
- 02 - What you should know
- 03 - Using the exercise files for this course
- 04 - Using GitHub Codespaces with this course
1. Checking for Syntax and Logic Errors
- 05 - Understanding ESLint error rule types
- 06 - Flagging issues in functions
- 07 - Identifying problems in loops and conditionals
- 08 - Eliminating unfinished code
- 09 - Ensuring accurate values
- 10 - Calling out general logic errors
- 11 - Challenge
- 12 - Solution
Conclusion
- 13 - Next steps