forked from corona-school/backend
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc
60 lines (60 loc) · 1.92 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
48
49
50
51
52
53
54
55
56
57
58
59
60
{
"parser": "@typescript-eslint/parser",
"parserOptions": {
"ecmaVersion": 6,
"sourceType": "module"
},
"plugins": [
"@typescript-eslint",
"lernfair-lint",
"import"
],
"settings": {
"import/parsers": {
"@typescript-eslint/parser": [".ts"]
},
"import/resolver": {
"typescript": true,
"node": true
}
},
"rules": {
"block-scoped-var": "error",
"camelcase": ["warn", {"allow": ["wix_id", "wix_creation_date"]}],
"comma-dangle": "off",
"indent": "off",
"keyword-spacing": ["error", {
"after": true
}],
"key-spacing": ["error", {
"mode": "strict",
"beforeColon": false,
"afterColon": true
}],
"no-debugger": "error",
"no-duplicate-case": "error",
"no-eval": "error",
"no-extra-bind": "error",
"no-extra-semi": "error",
"no-invalid-regexp": "error",
"no-lonely-if": "warn",
"no-multi-spaces": "error",
"no-trailing-spaces": "error",
"@typescript-eslint/semi": ["error", "always"],
"space-in-parens": "off",
"curly": ["error", "all"],
"comma-spacing": ["error", { "before": false, "after": true }],
"space-before-blocks": ["error", "always"],
"block-spacing": ["error", "always"],
"brace-style": ["error", "1tbs", { "allowSingleLine": true }],
"max-statements-per-line": ["error", {"max": 1}],
"newline-per-chained-call": "off",
"lernfair-lint/graphql-authorized": "error",
"lernfair-lint/graphql-deferred-auth": "error",
"lernfair-lint/graphql-undeferred-impossible": "error",
"lernfair-lint/graphql-cache": "error",
"lernfair-lint/prisma-laziness": "error",
"require-await": "warn",
"import/no-cycle": ["warn"]
}
}