Skip to content

Commit

Permalink
no-array-push-push: Ignore process.{stdin,stdout,stderr} (#1654)
Browse files Browse the repository at this point in the history
  • Loading branch information
fisker committed Dec 23, 2021
1 parent f2ca555 commit 10ad699
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion rules/no-array-push-push.js
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,15 @@ function create(context) {
ignore: [],
...context.options[0],
};
const ignoredObjects = ['stream', 'this', 'this.stream', ...ignore];
const ignoredObjects = [
'stream',
'this',
'this.stream',
'process.stdin',
'process.stdout',
'process.stderr',
...ignore,
];
const sourceCode = context.getSourceCode();

return {
Expand Down

0 comments on commit 10ad699

Please sign in to comment.