Disallow debugger (no-debugger)
debugger, as it will cause the browser to stop executing code and open an appropriate debugger.
This rule is aimed at eliminating
debugger used as an identifier in code.
When Not To Use It
If your code is still very much in development and don’t want to worry about stripping about
debugger statements, then turn this rule off. You’ll generally want to turn it back on when testing code prior to deployment.
This rule was introduced in ESLint 0.0.2.