mirror of
https://github.com/airbnb/javascript.git
synced 2026-01-14 08:38:08 -05:00
[eslint-v2] fix no-labels rule
This commit is contained in:
committed by
Jordan Harband
parent
75807b9d5e
commit
5109c84926
@@ -32,7 +32,7 @@ module.exports = {
|
||||
// disallow else after a return in an if
|
||||
'no-else-return': 2,
|
||||
// disallow use of labels for anything other then loops and switches
|
||||
'no-labels': [2, { 'allowLoop': true, 'allowSwitch': true }],
|
||||
'no-labels': [2, { 'allowLoop': false, 'allowSwitch': false }],
|
||||
// disallow comparisons to null without a type-checking operator
|
||||
'no-eq-null': 0,
|
||||
// disallow use of eval()
|
||||
|
||||
Reference in New Issue
Block a user