From aee2cf87d242eae2ef31464204933fea68363412 Mon Sep 17 00:00:00 2001 From: Whymarrh Whitby Date: Thu, 13 Aug 2020 17:25:56 -0230 Subject: [PATCH] Fix no-process-exit issues 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. --- .eslintrc.js | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/.eslintrc.js b/.eslintrc.js index adca9f3337c7..569d6056b0ae 100644 --- a/.eslintrc.js +++ b/.eslintrc.js @@ -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', @@ -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: {