| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent 3c047b3 commit b744bd9
63 files changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -37,6 +37,5 @@ function main({ n, type }) { | |||
| 37 | 37 | break; | |
| 38 | 38 | } | |
| 39 | 39 | ||
| 40 | - // eslint-disable-next-line valid-typeof | ||
| 41 | 40 | assert.ok(Array.isArray(noDead) || typeof noDead === 'bigint'); | |
| 42 | 41 | } | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -43,7 +43,6 @@ function checkBounds(buf, offset, byteLength) { | |||
| 43 | 43 | ||
| 44 | 44 | function checkInt(value, min, max, buf, offset, byteLength) { | |
| 45 | 45 | if (value > max || value < min) { | |
| 46 | - // eslint-disable-next-line valid-typeof | ||
| 47 | 46 | const n = typeof min === 'bigint' ? 'n' : ''; | |
| 48 | 47 | let range; | |
| 49 | 48 | if (byteLength > 3) { | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -1039,7 +1039,6 @@ E('ERR_OUT_OF_RANGE', | |||
| 1039 | 1039 | let received; | |
| 1040 | 1040 | if (Number.isInteger(input) && Math.abs(input) > 2 ** 32) { | |
| 1041 | 1041 | received = addNumericalSeparator(String(input)); | |
| 1042 | - // eslint-disable-next-line valid-typeof | ||
| 1043 | 1042 | } else if (typeof input === 'bigint') { | |
| 1044 | 1043 | received = String(input); | |
| 1045 | 1044 | if (input > 2n ** 32n || input < -(2n ** 32n)) { | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -276,7 +276,7 @@ Stats.prototype._checkModeProperty = function(property) { | |||
| 276 | 276 | property === S_IFSOCK)) { | |
| 277 | 277 | return false; // Some types are not available on Windows | |
| 278 | 278 | } | |
| 279 | - if (typeof this.mode === 'bigint') { // eslint-disable-line valid-typeof | ||
| 279 | + if (typeof this.mode === 'bigint') { | ||
| 280 | 280 | return (this.mode & BigInt(S_IFMT)) === BigInt(property); | |
| 281 | 281 | } | |
| 282 | 282 | return (this.mode & S_IFMT) === property; | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -1012,7 +1012,6 @@ function groupArrayElements(ctx, output, value) { | |||
| 1012 | 1012 | let order = 'padStart'; | |
| 1013 | 1013 | if (value !== undefined) { | |
| 1014 | 1014 | for (let i = 0; i < output.length; i++) { | |
| 1015 | - // eslint-disable-next-line valid-typeof | ||
| 1016 | 1015 | if (typeof value[i] !== 'number' && typeof value[i] !== 'bigint') { | |
| 1017 | 1016 | order = 'padEnd'; | |
| 1018 | 1017 | break; | |
@@ -1087,7 +1086,6 @@ function formatPrimitive(fn, value, ctx) { | |||
| 1087 | 1086 | } | |
| 1088 | 1087 | if (typeof value === 'number') | |
| 1089 | 1088 | return formatNumber(fn, value); | |
| 1090 | - // eslint-disable-next-line valid-typeof | ||
| 1091 | 1089 | if (typeof value === 'bigint') | |
| 1092 | 1090 | return formatBigInt(fn, value); | |
| 1093 | 1091 | if (typeof value === 'boolean') | |
@@ -1550,7 +1548,6 @@ function formatWithOptions(inspectOptions, ...args) { | |||
| 1550 | 1548 | const tempArg = args[++a]; | |
| 1551 | 1549 | if (typeof tempArg === 'number') { | |
| 1552 | 1550 | tempStr = formatNumber(stylizeNoColor, tempArg); | |
| 1553 | - // eslint-disable-next-line valid-typeof | ||
| 1554 | 1551 | } else if (typeof tempArg === 'bigint') { | |
| 1555 | 1552 | tempStr = `${tempArg}n`; | |
| 1556 | 1553 | } else { | |
@@ -1582,7 +1579,6 @@ function formatWithOptions(inspectOptions, ...args) { | |||
| 1582 | 1579 | break; | |
| 1583 | 1580 | case 100: // 'd' | |
| 1584 | 1581 | const tempNum = args[++a]; | |
| 1585 | - // eslint-disable-next-line valid-typeof | ||
| 1586 | 1582 | if (typeof tempNum === 'bigint') { | |
| 1587 | 1583 | tempStr = `${tempNum}n`; | |
| 1588 | 1584 | } else if (typeof tempNum === 'symbol') { | |
@@ -1606,7 +1602,6 @@ function formatWithOptions(inspectOptions, ...args) { | |||
| 1606 | 1602 | } | |
| 1607 | 1603 | case 105: // 'i' | |
| 1608 | 1604 | const tempInteger = args[++a]; | |
| 1609 | - // eslint-disable-next-line valid-typeof | ||
| 1610 | 1605 | if (typeof tempInteger === 'bigint') { | |
| 1611 | 1606 | tempStr = `${tempInteger}n`; | |
| 1612 | 1607 | } else if (typeof tempInteger === 'symbol') { | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -239,9 +239,6 @@ const pwdCommand = isWindows ? | |||
| 239 | 239 | ||
| 240 | 240 | ||
| 241 | 241 | function platformTimeout(ms) { | |
| 242 | - // ESLint will not support 'bigint' in valid-typeof until it reaches stage 4. | ||
| 243 | - // See https://github.com/eslint/eslint/pull/9636. | ||
| 244 | - // eslint-disable-next-line valid-typeof | ||
| 245 | 242 | const multipliers = typeof ms === 'bigint' ? | |
| 246 | 243 | { two: 2n, four: 4n, seven: 7n } : { two: 2, four: 4, seven: 7 }; | |
| 247 | 244 | ||
| Back | FazBrowse Home | New Git URL |
0 commit comments