-
Notifications
You must be signed in to change notification settings - Fork 1
/
.eslintrc
45 lines (45 loc) · 1.24 KB
/
.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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
{
"env": {
"node": true,
},
"extends": ["airbnb-base", "airbnb-typescript/base"],
"parser": "@typescript-eslint/parser",
"parserOptions": {
"project": "./tsconfig.json",
"ecmaVersion": 12,
"sourceType": "module",
},
"plugins": ["@typescript-eslint"],
"rules": {
"linebreak-style": ["error", "unix"],
"consistent-return": ["error"],
"@typescript-eslint/no-non-null-assertion": "off",
"@typescript-eslint/no-inferrable-types": "off",
"import/extensions": "off",
"@typescript-eslint/explicit-function-return-type": [
"error",
{
"allowExpressions": false,
"allowTypedFunctionExpressions": false,
"allowHigherOrderFunctions": false,
"allowConciseArrowFunctionExpressionsStartingWithVoid": false,
},
],
"@typescript-eslint/typedef": [
"error",
{
"arrayDestructuring": true,
"arrowParameter": true,
"memberVariableDeclaration": true,
"objectDestructuring": true,
"parameter": true,
"propertyDeclaration": true,
"variableDeclaration": true,
},
],
"import/named": "off",
"implicit-arrow-linebreak": "off",
"function-paren-newline": "off",
"operator-linebreak": "off",
},
}