1
0
mirror of https://github.com/twbs/bootstrap.git synced 2025-08-13 09:04:14 +02:00

Update ESLint to v2.5.3 (#20043)

Refs #19908.

[skip sauce]
[skip validator]
This commit is contained in:
Chris Rebert
2016-06-04 14:28:34 -07:00
parent c5eb5a45e9
commit 2b16f5c510
4 changed files with 38 additions and 30 deletions

View File

@@ -24,6 +24,7 @@
"no-dupe-args": "error",
"no-dupe-keys": "error",
"no-duplicate-case": "error",
"no-duplicate-imports": "error",
"no-empty": "error",
"no-empty-character-class": "error",
"no-empty-pattern": "error",
@@ -43,6 +44,7 @@
"no-sparse-arrays": "error",
"no-unexpected-multiline": "error",
"no-unreachable": "error",
"no-useless-escape": "error",
"use-isnan": "error",
"valid-jsdoc": "off",
"valid-typeof": "error",
@@ -166,6 +168,7 @@
"space-infix-ops": "error",
"space-in-parens": "error",
"space-unary-ops": "error",
"max-statements-per-line": ["error", { "max": 1 }],
// es6
"arrow-parens": "error",

View File

@@ -238,9 +238,14 @@ const Carousel = (($) => {
}
switch (event.which) {
case ARROW_LEFT_KEYCODE: this.prev(); break
case ARROW_RIGHT_KEYCODE: this.next(); break
default: return
case ARROW_LEFT_KEYCODE:
this.prev()
break
case ARROW_RIGHT_KEYCODE:
this.next()
break
default:
return
}
}