Skip to content
Permalink
Browse files

JSCS: Require "!" to stick to the right operator

  • Loading branch information...
nschonni committed Dec 2, 2013
1 parent 445e197 commit 0f63bd9067f36f806c5ef5c093340962b98d2f15
Showing with 4 additions and 2 deletions.
  1. +3 −0 .jscs.json
  2. +1 −2 src/core/helpers.js
@@ -53,6 +53,9 @@
"<",
"<="
],
"requireRightStickedOperators": [
"!"
],
"requireLineFeedAtFileEnd": true,
"validateJSDoc": {
"checkParamNames": true,
@@ -270,8 +270,7 @@
tabbable: function( element ) {
var tabIndex = $.attr( element, "tabindex" ),
isTabIndexNaN = isNaN( tabIndex );
return ( isTabIndexNaN || tabIndex >= 0 ) && focusable( element, !
isTabIndexNaN );
return ( isTabIndexNaN || tabIndex >= 0 ) && focusable( element, !isTabIndexNaN );
}
});

0 comments on commit 0f63bd9

Please sign in to comment.
You can’t perform that action at this time.