-
Notifications
You must be signed in to change notification settings - Fork 20
/
.eslintrc.js
48 lines (46 loc) · 1.2 KB
/
.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 = {
'env': {
'node': true
},
rules: {
'jest/no-export': 'off',
'jest/expect-expect': 'off',
'node/no-missing-import': 'off',
'node/no-extraneous-import': 'off',
'node/no-unpublished-import': 'off',
'jest/no-conditional-expect': 'off',
'@typescript-eslint/no-explicit-any': 'off',
'@typescript-eslint/no-empty-function': 'off',
'node/no-unsupported-features/es-syntax': 'off',
'@typescript-eslint/no-non-null-assertion': 'off',
'@typescript-eslint/adjacent-overload-signatures': 'off',
'semi': 'error',
'no-trailing-spaces': 'error',
'quotes': ['error', 'single', { 'avoidEscape': true }],
},
root: true,
parser: '@typescript-eslint/parser',
ignorePatterns: [
// Ignore the mocha tests of hardhat
'test/',
'dist/',
'typechain/',
'contracts/',
'node_modules/',
],
plugins: [
'jest',
'eslint-plugin-import',
'eslint-plugin-node',
'@typescript-eslint',
],
extends: [
'eslint:recommended',
'plugin:import/errors',
'plugin:import/warnings',
'plugin:jest/recommended',
'plugin:node/recommended',
'plugin:import/typescript',
'plugin:@typescript-eslint/recommended',
],
};