This will prevent ESLint from reporting the debugger statement as an error and then having Prettier clean it up during save if you have that configured. eslint-disable-next-line no-debugger debugger You can accomplish this by adding the following code where you want to add a debugger statement. With this setup, if you have Prettier fix your code upon save, you’ll need to add debugger statements with an additional comment to disable ESLint, so they don’t get cleaned out. This is why this version uses the global _REDUX_DEVTOOLS_EXTENSION_COMPOSE_ and only falls back to the redux compose if that’s not available.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |