Skip to content

Commit

Permalink
[eslint] reduce warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
ljharb committed Feb 22, 2017
1 parent d72fd48 commit c43969f
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
3 changes: 1 addition & 2 deletions .eslintrc
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,9 @@
"indent": [2, 4],
"max-params": [2, 12],
"max-statements": [2, 43],
"no-extra-parens": 1,
"no-continue": 1,
"no-magic-numbers": 0,
"no-restricted-syntax": [2, "BreakStatement", "DebuggerStatement", "ForInStatement", "LabeledStatement", "WithStatement"],
"operator-linebreak": 1
"operator-linebreak": [2, "after"],
}
}
4 changes: 2 additions & 2 deletions lib/stringify.js
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ module.exports = function (object, opts) {
var strictNullHandling = typeof options.strictNullHandling === 'boolean' ? options.strictNullHandling : defaults.strictNullHandling;
var skipNulls = typeof options.skipNulls === 'boolean' ? options.skipNulls : defaults.skipNulls;
var encode = typeof options.encode === 'boolean' ? options.encode : defaults.encode;
var encoder = encode ? (typeof options.encoder === 'function' ? options.encoder : defaults.encoder) : null;
var encoder = typeof options.encoder === 'function' ? options.encoder : defaults.encoder;
var sort = typeof options.sort === 'function' ? options.sort : null;
var allowDots = typeof options.allowDots === 'undefined' ? false : options.allowDots;
var serializeDate = typeof options.serializeDate === 'function' ? options.serializeDate : defaults.serializeDate;
Expand Down Expand Up @@ -193,7 +193,7 @@ module.exports = function (object, opts) {
generateArrayPrefix,
strictNullHandling,
skipNulls,
encoder,
encode ? encoder : null,
filter,
sort,
allowDots,
Expand Down
3 changes: 2 additions & 1 deletion test/.eslintrc
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
"max-nested-callbacks": [2, 3],
"max-statements": 0,
"no-extend-native": 0,
"sort-keys": 1
"no-magic-numbers": 0,
"sort-keys": 0
}
}

0 comments on commit c43969f

Please sign in to comment.