-
Notifications
You must be signed in to change notification settings - Fork 3
/
.eslintrc
40 lines (40 loc) · 1.14 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
{
"parser": "@typescript-eslint/parser",
"parserOptions": {
"project": "tsconfig.json",
"sourceType": "module"
},
"plugins": ["@typescript-eslint/eslint-plugin"],
"extends": [
"plugin:@typescript-eslint/eslint-recommended",
"plugin:@typescript-eslint/recommended"
],
"root": true,
"env": {
"node": true,
"jest": true
},
"rules": {
"max-len": ["error", 150],
"quotes": ["error", "single"],
"indent": ["error", 2, {
"MemberExpression": 1,
"SwitchCase": 1
}],
"@typescript-eslint/typedef": ["error", {
"memberVariableDeclaration": true,
"propertyDeclaration": true,
"variableDeclaration": false,
"variableDeclarationIgnoreFunction": true,
"arrowParameter": false,
"parameter": true
}],
"@typescript-eslint/ban-types": "off",
"@typescript-eslint/no-var-requires": "warn",
"@typescript-eslint/explicit-function-return-type": "error",
"@typescript-eslint/no-unused-vars": "error",
"@typescript-eslint/no-empty-interface": "off",
"@typescript-eslint/no-inferrable-types": "off",
"@typescript-eslint/semi": ["error", "always"]
}
}