Skip to content

Commit 44b57ed

Browse files
committed
Fix: false positive 'no-unsupported-features/node-builtins'
- `process.emitWarning` is supported since 6.0.0.
1 parent cde4c82 commit 44b57ed

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

lib/rules/no-unsupported-features/node-builtins.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ const trackMap = {
129129
argv0: { [READ]: { supported: "6.4.0" } },
130130
channel: { [READ]: { supported: "7.1.0" } },
131131
cpuUsage: { [READ]: { supported: "6.1.0" } },
132-
emitWarning: { [READ]: { supported: "8.0.0" } },
132+
emitWarning: { [READ]: { supported: "6.0.0" } },
133133
getegid: { [READ]: { supported: "2.0.0" } },
134134
geteuid: { [READ]: { supported: "2.0.0" } },
135135
hasUncaughtExceptionCaptureCallback: {

tests/lib/rules/no-unsupported-features/node-builtins.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3189,7 +3189,7 @@ new RuleTester({
31893189
},
31903190
{
31913191
code: "process.emitWarning",
3192-
options: [{ version: "8.0.0" }],
3192+
options: [{ version: "6.0.0" }],
31933193
},
31943194
{
31953195
code: "process.getegid",
@@ -3260,7 +3260,7 @@ new RuleTester({
32603260
{
32613261
code: "process.emitWarning",
32623262
options: [
3263-
{ version: "7.9.9", ignores: ["process.emitWarning"] },
3263+
{ version: "5.9.9", ignores: ["process.emitWarning"] },
32643264
],
32653265
},
32663266
{
@@ -3421,14 +3421,14 @@ new RuleTester({
34213421
},
34223422
{
34233423
code: "process.emitWarning",
3424-
options: [{ version: "7.9.9" }],
3424+
options: [{ version: "5.9.9" }],
34253425
errors: [
34263426
{
34273427
messageId: "unsupported",
34283428
data: {
34293429
name: "process.emitWarning",
3430-
supported: "8.0.0",
3431-
version: "7.9.9",
3430+
supported: "6.0.0",
3431+
version: "5.9.9",
34323432
},
34333433
},
34343434
],

0 commit comments

Comments
 (0)