forked from 1inch/permit-signed-approvals-utils
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.js
33 lines (33 loc) · 1.04 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
module.exports = {
root: true,
parser: '@typescript-eslint/parser',
plugins: ['@typescript-eslint', 'unused-imports'],
extends: [
'eslint:recommended',
'plugin:@typescript-eslint/recommended',
'prettier',
],
rules: {
'@typescript-eslint/member-ordering': 'error',
'lines-between-class-members': 'error',
'padding-line-between-statements': 'error',
'no-unused-vars': 'off',
'max-len': ['error', {code: 100}],
'max-depth': ['error', 3],
'max-lines-per-function': ['error', 26],
'max-params': ['error', 6],
'@typescript-eslint/no-explicit-any': 'error',
'@typescript-eslint/no-unused-vars': 'error',
'unused-imports/no-unused-imports': 'error',
'unused-imports/no-unused-vars': 0,
},
overrides: [
{
files: ['src/**/*.test.ts'],
rules: {
'max-lines-per-function': ['error', 400],
'max-len': ['error', {code: 130}],
},
},
],
};