-
-
Notifications
You must be signed in to change notification settings - Fork 10
/
Copy path.eslintrc.js
40 lines (36 loc) · 928 Bytes
/
.eslintrc.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
module.exports = {
root: true,
extends: ['@metamask/eslint-config', '@metamask/eslint-config-nodejs'],
rules: {
'n/no-process-env': 'off',
},
overrides: [
{
files: ['**/*.ts'],
extends: ['@metamask/eslint-config-typescript'],
rules: {
'@typescript-eslint/consistent-type-definitions': [
'error',
'interface',
],
'@typescript-eslint/naming-convention': 'off',
'@typescript-eslint/no-shadow': ['error', { builtinGlobals: true }],
'no-shadow': 'off',
},
},
{
files: ['**/*.d.ts'],
rules: {
'import/unambiguous': 'off',
},
},
{
files: ['**/*.test.js', '**/*.test.ts'],
extends: ['@metamask/eslint-config-jest'],
rules: {
'@typescript-eslint/restrict-template-expressions': 'off',
},
},
],
ignorePatterns: ['!.eslintrc.js', 'lib/', 'dist/'],
};