8000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3c047b3 commit b744bd9Copy full SHA for b744bd9
benchmark/process/bench-hrtime.js
@@ -37,6 +37,5 @@ function main({ n, type }) {
37
break;
38
}
39
40
- // eslint-disable-next-line valid-typeof
41
assert.ok(Array.isArray(noDead) || typeof noDead === 'bigint');
42
lib/internal/buffer.js
@@ -43,7 +43,6 @@ function checkBounds(buf, offset, byteLength) {
43
44
function checkInt(value, min, max, buf, offset, byteLength) {
45
if (value > max || value < min) {
46
47
const n = typeof min === 'bigint' ? 'n' : '';
48
let range;
49
if (byteLength > 3) {
lib/internal/errors.js
@@ -1039,7 +1039,6 @@ E('ERR_OUT_OF_RANGE',
1039
let received;
1040
if (Number.isInteger(input) && Math.abs(input) > 2 ** 32) {
1041
received = addNumericalSeparator(String(input));
1042
1043
} else if (typeof input === 'bigint') {
1044
received = String(input);
1045
if (input > 2n ** 32n || input < -(2n ** 32n)) {
lib/internal/fs/utils.js
@@ -276,7 +276,7 @@ Stats.prototype._checkModeProperty = function(property) {
276
property === S_IFSOCK)) {
277
return false; // Some types are not available on Windows
278
279
- if (typeof this.mode === 'bigint') { // eslint-disable-line valid-typeof
+ if (typeof this.mode === 'bigint') {
280
return (this.mode & BigInt(S_IFMT)) === BigInt(property);
281
282
return (this.mode & S_IFMT) === property;
lib/internal/util/inspect.js
@@ -1012,7 +1012,6 @@ function groupArrayElements(ctx, output, value) {
1012
let order = 'padStart';
1013
if (value !== undefined) {
1014
for (let i = 0; i < output.length; i++) {
1015
1016
if (typeof value[i] !== 'number' && typeof value[i] !== 'bigint') {
1017
order = 'padEnd';
1018
@@ -1087,7 +1086,6 @@ function formatPrimitive(fn, value, ctx) {
1087
1086
1088
if (typeof value === 'number')
1089
return formatNumber(fn, value);
1090
1091
if (typeof value === 'bigint')
1092
return formatBigInt(fn, value);
1093
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
tempStr = formatNumber(stylizeNoColor, tempArg);
1553
1554
} else if (typeof tempArg === 'bigint') {
1555
tempStr = `${tempArg}n`;
1556
} else {
@@ -1582,7 +1579,6 @@ function formatWithOptions(inspectOptions, ...args) {
1582
1579
1583
1580
case 100: // 'd'
1584
1581
const tempNum = args[++a];
1585
1586
if (typeof tempNum === 'bigint') {
1587
tempStr = `${tempNum}n`;
1588
} 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
1610
1605
if (typeof tempInteger === 'bigint') {
1611
tempStr = `${tempInteger}n`;
1612
} else if (typeof tempInteger === 'symbol') {
test/common/index.js
@@ -239,9 +239,6 @@ const pwdCommand = isWindows ?
239
240
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
245
const multipliers = typeof ms === 'bigint' ?
246
{ two: 2n, four: 4n, seven: 7n } : { two: 2, four: 4, seven: 7 };
247
tools/node_modules/eslint/README.md
tools/node_modules/eslint/bin/eslint.js
tools/node_modules/eslint/lib/cli-engine/cascading-config-array-factory.js
tools/node_modules/eslint/lib/cli-engine/cli-engine.js