mirror of
https://github.com/lrsjng/h5ai.git
synced 2025-05-31 15:28:19 -04:00
Update eslintrc.
This commit is contained in:
parent
a893cb7534
commit
73e74bb887
3 changed files with 5 additions and 4 deletions
|
@ -1,5 +1,4 @@
|
|||
---
|
||||
rules:
|
||||
max-params: [1, 10]
|
||||
no-console: 1
|
||||
prefer-reflect: 0
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue