Skip to content

Commit

Permalink
Fix no-process-exit issues (#9219)
Browse files Browse the repository at this point in the history
See [`no-process-exit`](https://eslint.org/docs/rules/no-process-exit) for more information.

This change enables `no-process-exit` and fixes the issues raised by the rule.
  • Loading branch information
whymarrh authored Aug 13, 2020
1 parent 82a0ee2 commit 944f6d4
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@ module.exports = {
'no-loop-func': 'error',
'no-nested-ternary': 'error',
'no-plusplus': ['error', { 'allowForLoopAfterthoughts': true }],
'no-process-exit': 'error',
'no-prototype-builtins': 'error',
'no-useless-catch': 'error',
'no-useless-concat': 'error',
Expand Down Expand Up @@ -143,6 +144,15 @@ module.exports = {
// Mocha will re-assign `this` in a test context
'babel/no-invalid-this': 'off',
},
}, {
files: [
'development/**/*.js',
'test/e2e/benchmark.js',
'test/helper.js',
],
rules: {
'no-process-exit': 'off',
},
}],

settings: {
Expand Down

0 comments on commit 944f6d4

Please sign in to comment.