-
Notifications
You must be signed in to change notification settings - Fork 1
/
.eslintrc
46 lines (46 loc) · 1.5 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
{
"parser": "@typescript-eslint/parser",
"plugins": [
"@typescript-eslint"
],
"env": {
"es6": true,
"node": true
},
"globals": {
"Atomics": "readonly",
"SharedArrayBuffer": "readonly"
},
"parserOptions": {
"ecmaVersion": 2018,
"sourceType": "module",
"project": "./tsconfig.json"
},
"extends": [
"plugin:@typescript-eslint/recommended"
],
"rules": { //individual rule config for typescript
"@typescript-eslint/type-annotation-spacing": ["error", {"before": true} ],
"@typescript-eslint/indent": [ "error", 2],
"@typescript-eslint/no-parameter-properties": ["off"],
"@typescript-eslint/no-use-before-define": ["off"],
"@typescript-eslint/no-unused-vars": ["error"],
"@typescript-eslint/no-floating-promises": "error",
"@typescript-eslint/explicit-function-return-type": ["error"],
"no-trailing-spaces": ["warn"],
"@typescript-eslint/semi": ["error", "always"],
"eol-last": ["error", "always"],
"max-len": ["warn" , { "code" : 120}],
"no-multiple-empty-lines": ["error", { "max": 1, "maxEOF": 1 }],
"no-warning-comments": ["warn", { "terms": ["TODO", "FIX"], "location": "start"}],
"sort-keys": ["warn", "asc", {"natural": true}],
"sort-vars": ["warn", { "ignoreCase": true }],
"sort-imports": ["error", {
"ignoreCase": true,
"ignoreDeclarationSort": false,
"ignoreMemberSort": false,
"memberSyntaxSortOrder": ["none", "all", "multiple", "single"]
}],
"quotes": ["error", "single"]
}
}