ESLint: Checking for Syntax and Logic Errors

ESLint: Checking for Syntax and Logic Errors

39mAdvanced2022-11-09

Authors

Sasha Vodnik

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

Introduction

  • Using ESLint to catch coding errors
  • What you should know
  • Using the exercise files for this course
  • Using GitHub Codespaces with this course

Checking for Syntax and Logic Errors

  • Understanding ESLint error rule types
  • Flagging issues in functions
  • Identifying problems in loops and conditionals
  • Eliminating unfinished code
  • Ensuring accurate values
  • Calling out general logic errors
  • Challenge
  • Solution

Conclusion

  • Next steps
40,000 Toman