Skip to content

Commit

Permalink
Fix: false positive 'no-unsupported-features/node-builtins'
Browse files Browse the repository at this point in the history
- `process.emitWarning` is supported since 6.0.0.
  • Loading branch information
mysticatea committed Jul 17, 2018
1 parent cde4c82 commit 44b57ed
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion lib/rules/no-unsupported-features/node-builtins.js
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ const trackMap = {
argv0: { [READ]: { supported: "6.4.0" } },
channel: { [READ]: { supported: "7.1.0" } },
cpuUsage: { [READ]: { supported: "6.1.0" } },
emitWarning: { [READ]: { supported: "8.0.0" } },
emitWarning: { [READ]: { supported: "6.0.0" } },
getegid: { [READ]: { supported: "2.0.0" } },
geteuid: { [READ]: { supported: "2.0.0" } },
hasUncaughtExceptionCaptureCallback: {
Expand Down
10 changes: 5 additions & 5 deletions tests/lib/rules/no-unsupported-features/node-builtins.js
Original file line number Diff line number Diff line change
Expand Up @@ -3189,7 +3189,7 @@ new RuleTester({
},
{
code: "process.emitWarning",
options: [{ version: "8.0.0" }],
options: [{ version: "6.0.0" }],
},
{
code: "process.getegid",
Expand Down Expand Up @@ -3260,7 +3260,7 @@ new RuleTester({
{
code: "process.emitWarning",
options: [
{ version: "7.9.9", ignores: ["process.emitWarning"] },
{ version: "5.9.9", ignores: ["process.emitWarning"] },
],
},
{
Expand Down Expand Up @@ -3421,14 +3421,14 @@ new RuleTester({
},
{
code: "process.emitWarning",
options: [{ version: "7.9.9" }],
options: [{ version: "5.9.9" }],
errors: [
{
messageId: "unsupported",
data: {
name: "process.emitWarning",
supported: "8.0.0",
version: "7.9.9",
supported: "6.0.0",
version: "5.9.9",
},
},
],
Expand Down

0 comments on commit 44b57ed

Please sign in to comment.