-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy path.eslintrc.js
48 lines (42 loc) · 834 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
41
42
43
44
45
46
47
48
module.exports = {
root: true,
env: {
browser: true,
},
extends: ['@metamask/eslint-config'],
plugins: ['prettier'],
overrides: [
{
files: ['*.js'],
parserOptions: {
sourceType: 'script',
},
globals: {
wallet: 'readonly',
ethereum: 'readonly',
},
extends: ['@metamask/eslint-config-nodejs'],
},
],
ignorePatterns: ['!.eslintrc.js', '!.prettierrc.js', 'dist/'],
rules: {
'prettier/prettier': [
1,
{
printWidth: 110,
arrowParens: 'avoid',
},
],
curly: 0,
'no-param-reassign': 0,
'no-negated-condition': 0,
'node/no-unpublished-require': [
'error',
{
convertPath: {
'{src/*.js,abis/*.json}': ['.*', 'dist/bundle.js'],
},
},
],
},
};