mirror of
https://github.com/atom/atom.git
synced 2026-04-28 03:01:47 -04:00
Treat debugger statements as lint errors
This commit is contained in:
@@ -10,5 +10,8 @@
|
||||
},
|
||||
"no_interpolation_in_single_quotes": {
|
||||
"level": "error"
|
||||
},
|
||||
"no_debugger": {
|
||||
"level": "error"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user