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 Oct 31, 2024
1 parent e5406c2 commit 954b57d
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 @@ -217,7 +217,8 @@ const baseConfig = {
const binScriptsConfig = {
files: ['**/bin/**', '**/scripts/**'],
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 954b57d

Please sign in to comment.