-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc
28 lines (27 loc) · 892 Bytes
/
.eslintrc
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
{
"plugins": ["@typescript-eslint"],
"extends": ["eslint:recommended", "plugin:@typescript-eslint/recommended", "prettier"],
"env": {
"es6": true,
"node": true
},
"rules": {
"max-lines": ["warn", {"max": 300, "skipBlankLines": true, "skipComments": true}],
"global-require": "error",
"new-cap": "warn",
"prefer-arrow-callback": ["error", {"allowNamedFunctions": true}],
"class-methods-use-this": "off",
"no-return-assign": ["error", "except-parens"],
"no-console": "warn",
"max-statements": ["warn", {"max": 100}],
"no-plusplus": "off",
"no-unused-vars": "off",
// Typescript
"@typescript-eslint/no-unused-vars": ["warn", {"varsIgnorePattern": "d"}],
"@typescript-eslint/explicit-member-accessibility": ["off"],
"@typescript-eslint/explicit-function-return-type": [
"off",
{"allowExpressions": true, "allowTypedFunctionExpressions": true}
]
}
}