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:
parent
82a0ee27f3
commit
944f6d4880
10
.eslintrc.js
10
.eslintrc.js
@ -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: {
|
||||||
|
Loading…
Reference in New Issue
Block a user