1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-11-22 09:57:02 +01:00

Fix no-process-exit issues (#9219)

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.
This commit is contained in:
Whymarrh Whitby 2020-08-13 19:01:40 -02:30 committed by GitHub
parent 82a0ee27f3
commit 944f6d4880
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -57,6 +57,7 @@ module.exports = {
'no-loop-func': 'error', 'no-loop-func': 'error',
'no-nested-ternary': 'error', 'no-nested-ternary': 'error',
'no-plusplus': ['error', { 'allowForLoopAfterthoughts': true }], 'no-plusplus': ['error', { 'allowForLoopAfterthoughts': true }],
'no-process-exit': 'error',
'no-prototype-builtins': 'error', 'no-prototype-builtins': 'error',
'no-useless-catch': 'error', 'no-useless-catch': 'error',
'no-useless-concat': 'error', 'no-useless-concat': 'error',
@ -143,6 +144,15 @@ module.exports = {
// Mocha will re-assign `this` in a test context // Mocha will re-assign `this` in a test context
'babel/no-invalid-this': 'off', 'babel/no-invalid-this': 'off',
}, },
}, {
files: [
'development/**/*.js',
'test/e2e/benchmark.js',
'test/helper.js',
],
rules: {
'no-process-exit': 'off',
},
}], }],
settings: { settings: {