-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.js
37 lines (37 loc) · 905 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
module.exports = {
env: {
browser: true,
commonjs: true,
es2021: true,
mocha: true,
node: true,
},
extends: ['eslint:recommended', 'plugin:prettier/recommended'],
parserOptions: {
ecmaVersion: 12,
},
rules: {
'no-unused-vars': 'warn',
'no-console': 'off',
'func-names': 'off',
'no-process-exit': 'off',
'object-shorthand': 'off',
'class-methods-use-this': 'off',
'no-underscore-dangle': 'off',
'max-len': ['warn', { code: 120 }],
'no-param-reassign': 'off',
'no-use-before-define': ['error', { functions: false, classes: true }],
'no-plusplus': 'off',
'no-await-in-loop': 'off',
'no-restricted-syntax': 'off',
'prettier/prettier': 'warn',
},
globals: {
ethers: 'readonly',
upgrades: 'readonly',
describe: 'readonly',
it: 'readonly',
beforeEach: 'readonly',
expect: 'readonly',
},
};