Treat debugger statements as lint errors

This commit is contained in:
Kevin Sawicki
2014-09-30 13:25:55 -07:00
parent f205fe81ce
commit 1f4359d429
2 changed files with 3 additions and 1 deletions

View File

@@ -10,5 +10,8 @@
},
"no_interpolation_in_single_quotes": {
"level": "error"
},
"no_debugger": {
"level": "error"
}
}

View File

@@ -122,7 +122,6 @@ class MenuManager
# find an existing menu item matching the given item
findMatchingItem: (menu, {label, submenu}) ->
debugger unless menu?
for item in menu
if @normalizeLabel(item.label) is @normalizeLabel(label) and item.submenu? is submenu?
return item