Skip to content

Commit

Permalink
Exclude no-process-exit for bin and script files
Browse files Browse the repository at this point in the history
  • Loading branch information
risantos committed Nov 5, 2024
1 parent 912b43b commit 16a5546
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -226,7 +226,8 @@ const upholdBinScriptsConfig = {
files: ['**/bin/**', '**/scripts/**'],
languageOptions,
rules: {
'no-console': 'off'
'no-console': 'off',
'node-plugin/no-process-exit': 'off'
}
};

Expand Down
3 changes: 3 additions & 0 deletions test/fixtures/bin/correct.js
Original file line number Diff line number Diff line change
@@ -1,2 +1,5 @@
// `no-console`.
console.log('foo');

// `no-process-exit`.
process.exit(0);
3 changes: 3 additions & 0 deletions test/fixtures/scripts/correct.js
Original file line number Diff line number Diff line change
@@ -1,2 +1,5 @@
// `no-console`.
console.log('foo');

// `no-process-exit`.
process.exit(0);

0 comments on commit 16a5546

Please sign in to comment.