mirror of
https://github.com/airbnb/javascript.git
synced 2026-01-14 12:37:57 -05:00
[eslint-v2] enforce yield-start-spacing, no-unused-labels, no-extra-label
This commit is contained in:
committed by
Jordan Harband
parent
c05b2da9db
commit
a126d0b85c
@@ -36,7 +36,7 @@ module.exports = {
|
||||
'no-else-return': 2,
|
||||
// disallow Unnecessary Labels
|
||||
// http://eslint.org/docs/rules/no-extra-label
|
||||
'no-extra-label': 0,
|
||||
'no-extra-label': 2,
|
||||
// disallow comparisons to null without a type-checking operator
|
||||
'no-eq-null': 0,
|
||||
// disallow use of eval()
|
||||
@@ -107,7 +107,7 @@ module.exports = {
|
||||
'no-unused-expressions': 2,
|
||||
// disallow unused labels
|
||||
// http://eslint.org/docs/rules/no-unused-labels
|
||||
'no-unused-labels': 0,
|
||||
'no-unused-labels': 2,
|
||||
// disallow unnecessary .call() and .apply()
|
||||
'no-useless-call': 0,
|
||||
// disallow use of void operator
|
||||
|
||||
@@ -61,6 +61,6 @@ module.exports = {
|
||||
'sort-imports': 0,
|
||||
// enforce spacing around the * in yield* expressions
|
||||
// http://eslint.org/docs/rules/yield-star-spacing
|
||||
'yield-star-spacing': 0
|
||||
'yield-star-spacing': [2, 'after']
|
||||
}
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user