Skip to content

Commit d3fbc25

Browse files
committed
style: enable jscs requireRightStickedOperators rule
1 parent 0d034a9 commit d3fbc25

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

.jscs.json

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
{
22
"disallowKeywords": ["with"],
3-
"disallowTrailingWhitespace": true
3+
"disallowTrailingWhitespace": true,
4+
"requireRightStickedOperators": ["!"]
45
}

.jscs.json.todo

-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@
88
"requireSpaceAfterKeywords": ["if", "else", "for", "while", "do", "switch", "return", "try", "catch"],
99
"disallowLeftStickedOperators": ["?", "+", "-", "/", "*", "=", "==", "===", "!=", "!==", ">", ">=", "<", "<="],
1010
"disallowRightStickedOperators": ["?", "+", "/", "*", ":", "=", "==", "===", "!=", "!==", ">", ">=", "<", "<="],
11-
"requireRightStickedOperators": ["!"],
1211
"requireLeftStickedOperators": [","],
1312
"disallowImplicitTypeConversion": ["string"],
1413
"disallowMultipleLineBreaks": true,

src/ng/directive/select.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -304,7 +304,7 @@ var selectDirective = ['$compile', '$parse', function($compile, $parse) {
304304
function setupAsOptions(scope, selectElement, ctrl) {
305305
var match;
306306

307-
if (! (match = optionsExp.match(NG_OPTIONS_REGEXP))) {
307+
if (!(match = optionsExp.match(NG_OPTIONS_REGEXP))) {
308308
throw ngOptionsMinErr('iexp',
309309
"Expected expression in form of " +
310310
"'_select_ (as _label_)? for (_key_,)?_value_ in _collection_'" +

src/ng/log.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@ function $LogProvider(){
139139
// Note: reading logFn.apply throws an error in IE11 in IE8 document mode.
140140
// The reason behind this is that console.log has type "object" in IE8...
141141
try {
142-
hasApply = !! logFn.apply;
142+
hasApply = !!logFn.apply;
143143
} catch (e) {}
144144

145145
if (hasApply) {

0 commit comments

Comments
 (0)