Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.
Sign upAllowing `debugger` statements during development #260
Comments
dcousens
added
the
feature request
label
Sep 17, 2015
This comment has been minimized.
This comment has been minimized.
|
Thanks for the thoughtful issue. If We haven't added any flags that change rules yet and I don't think it's worth the added complexity just to support this use case. Sorry. |
feross
closed this
Sep 21, 2015
This comment has been minimized.
This comment has been minimized.
|
I like fast feed feedback with linting as part of the default/watch tasks. Thanks for the explanation though. |
This comment has been minimized.
This comment has been minimized.
|
Also, there's legitimate uses of |
This comment has been minimized.
This comment has been minimized.
|
@jameslnewell No problem :) FWIW, the eslint page for this rule says this:
The dev tools are a great way to set breakpoints! |
This comment has been minimized.
This comment has been minimized.
|
@rstacruz That's another good point! |
This comment has been minimized.
This comment has been minimized.
|
Yeah good point about cli apps. I don't understand why |
This comment has been minimized.
This comment has been minimized.
|
You can use this: debugger // eslint-disable-lineor: /* eslint-disable no-debugger */ |
This comment has been minimized.
This comment has been minimized.
|
ty good point |
This comment has been minimized.
This comment has been minimized.
m5rk
commented
Jan 5, 2018
|
@rstacruz Your post from over 2 years ago is my goto: I add |
jameslnewell commentedSep 16, 2015
I know
standardis all about no-configuration but could there be a--devor--debugflag that allows thedebuggerstatement? It's really helpful during debugging - manually having to find and set breakpoints sucks!I'm also curious as to why
no-debuggeris enabled butno-consoleisn't?