forked from Uniswap/v3-subgraph
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.js
47 lines (46 loc) · 1.27 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
require('@uniswap/eslint-config/load')
module.exports = {
extends: ['@uniswap/eslint-config/node'],
rules: {
'@typescript-eslint/no-inferrable-types': 'off',
'import/no-unused-modules': 'off',
'@typescript-eslint/no-restricted-imports': 'off',
'@typescript-eslint/no-unused-vars': [
'error',
{ argsIgnorePattern: '^_', varsIgnorePattern: '^_', caughtErrorsIgnorePattern: '^_' },
],
'@typescript-eslint/no-this-alias': [
'error',
{
allowDestructuring: true, // Allow `const { props, state } = this`; false by default
allowedNames: [
'self', // Allow `const self= this`; `[]` by default
],
},
],
'@typescript-eslint/no-non-null-assertion': 'off',
'@typescript-eslint/no-explicit-any': 'off',
'@typescript-eslint/ban-types': [
'error',
{
types: {
// Allow BigInt (uppercase)
BigInt: false,
},
},
],
},
overrides: [
{
files: ['tests/**/*.ts'],
settings: {
jest: {
version: 26,
},
// jest is added as a plugin in our org's eslint config, but we use
// matchstick, and this would crash when linting matchstick files.
'disable/plugins': ['jest'],
},
},
],
}