mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-12-23 01:39:44 +01:00
Fix import/unambiguous issues (#9233)
See [`import/unambiguous`](https://eslint.org/docs/rules/import/unambiguous) for more information. This change enables `import/unambiguous` and fixes the issues raised by the rule.
This commit is contained in:
parent
e803807dd9
commit
a89b6677a1
15
.eslintrc.js
15
.eslintrc.js
@ -50,6 +50,7 @@ module.exports = {
|
||||
'implicit-arrow-linebreak': 'error',
|
||||
'import/extensions': ['error', 'never', { 'json': 'always' }],
|
||||
'import/no-extraneous-dependencies': 'error',
|
||||
'import/unambiguous': 'error',
|
||||
'max-statements-per-line': ['error', { 'max': 1 }],
|
||||
'no-case-declarations': 'error',
|
||||
'no-constant-condition': 'error',
|
||||
@ -168,6 +169,20 @@ module.exports = {
|
||||
rules: {
|
||||
'no-process-exit': 'off',
|
||||
},
|
||||
}, {
|
||||
files: [
|
||||
'.eslintrc.js',
|
||||
'babel.config.js',
|
||||
'nyc.config.js',
|
||||
'stylelint.config.js',
|
||||
'development/**/*.js',
|
||||
'test/e2e/**/*.js',
|
||||
'test/env.js',
|
||||
'test/setup.js',
|
||||
],
|
||||
parserOptions: {
|
||||
sourceType: 'script',
|
||||
},
|
||||
}],
|
||||
|
||||
settings: {
|
||||
|
Loading…
Reference in New Issue
Block a user