Update eslintrc.

This commit is contained in:
Lars Jung 2016-07-01 15:00:39 +02:00
parent a893cb7534
commit 73e74bb887
3 changed files with 5 additions and 4 deletions

View file

@ -1,5 +1,4 @@
---
rules:
max-params: [1, 10]
no-console: 1
prefer-reflect: 0

View file

@ -10,6 +10,7 @@ const dre = /(^([\w ]+,?[\w ]+)?[\w ]+,?[\w ]+\d+:\d+(:\d+)?[\w ]?|^\d{1,4}[\/\-
const reHex = /^0x[0-9a-f]+$/i;
const reLeadingZero = /^0/;
/* eslint-disable complexity */
const naturalCmp = (val1, val2) => {
// convert all to strings strip whitespace
const x = String(val1).replace(reStrip, '');
@ -56,6 +57,7 @@ const naturalCmp = (val1, val2) => {
return 0;
};
/* eslint-enable */
module.exports = {
naturalCmp