-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.eslintrc
47 lines (47 loc) · 1.38 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
46
47
{
"env": {
"browser": true,
"jest": true,
"es6": true
},
"root": true,
"parser": "@typescript-eslint/parser",
"plugins": ["@typescript-eslint"],
"extends": [
"eslint:recommended",
"plugin:@typescript-eslint/eslint-recommended",
"plugin:@typescript-eslint/recommended-requiring-type-checking",
"plugin:@typescript-eslint/recommended",
"airbnb-typescript/base"
],
"parserOptions": {
"project": "./tsconfig.lib.json",
"sourceType": "module"
},
"rules": {
"no-var": 1,
"no-return-assign": 0,
"no-confusing-arrow": 0,
"no-use-before-define": ["error", "nofunc"],
"camelcase": "error",
"complexity": ["error", 9],
"curly": "error",
"new-cap": ["error", { "properties": false }],
"no-empty": "error",
"no-eval": "error",
"no-implied-eval": "error",
"no-plusplus": 0,
"max-len": ["error", 128],
"max-nested-callbacks": [1, 2],
"max-params": ["error", 5],
"max-statements": ["error", 25],
"quotes": ["error", "single", { "allowTemplateLiterals": true }],
"wrap-iife": ["error", "any"],
"import/prefer-default-export": 0,
"import/no-cycle": ["error", { "maxDepth": 1 }],
"class-methods-use-this": 0,
"operator-linebreak": ["error", "after"],
"@typescript-eslint/restrict-template-expressions": ["error", { "allowNullish": true }],
"@typescript-eslint/indent": 0
}
}