Skip to content

Commit 06e2d8a

Browse files
committed
fix review
1 parent ef2405f commit 06e2d8a

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

.eslintrc.cjs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -352,9 +352,9 @@ module.exports = {
352352
'error',
353353
{
354354
selector:
355-
'MemberExpression[object.name="globalThis"][property.name="process"]',
355+
'MemberExpression[property.name="env"] > .object[object.name="globalThis"][property.name="process"]',
356356
message:
357-
"Never use `process` with `globalThis` because bundlers incorrectly replace it and doesn't tree shake unused code",
357+
"Never use `process.env` with `globalThis` because bundlers incorrectly replace it and doesn't tree shake unused code",
358358
},
359359
],
360360
'no-return-assign': 'error',

src/jsutils/instanceOf.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import { inspect } from './inspect.js';
88
*/
99
export const instanceOf: (value: unknown, constructor: Constructor) => boolean =
1010
/* c8 ignore next 6 */
11-
typeof process !== 'undefined' && process.env.NODE_ENV === 'production'
11+
globalThis.process !== undefined && process.env.NODE_ENV === 'production'
1212
? function instanceOf(value: unknown, constructor: Constructor): boolean {
1313
return value instanceof constructor;
1414
}

0 commit comments

Comments
 (0)