-
Notifications
You must be signed in to change notification settings - Fork 13
/
.eslintrc
62 lines (62 loc) · 1.95 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
61
62
{
"parser": "@typescript-eslint/parser",
"parserOptions": {
"ecmaVersion": 2017,
"sourceType": "module"
},
"env": {
"jest/globals": true
},
"extends": [
"plugin:@typescript-eslint/recommended",
"prettier/@typescript-eslint",
"plugin:prettier/recommended"
],
"plugins": ["jest", "prettier"],
"root": true,
"rules": {
"constructor-super": "error",
"curly": "error",
"eqeqeq": "error",
"linebreak-style": ["error", "unix"],
"new-cap": "error",
"no-class-assign": "error",
"no-console": 0,
"no-const-assign": "error",
"no-delete-var": "error",
"no-dupe-class-members": "error",
"no-label-var": "error",
"no-negated-condition": "error",
"no-return-assign": "error",
"no-return-await": "error",
"no-this-before-super": "error",
"no-undef-init": "error",
"no-undef": "error",
"no-unused-vars": "error",
"no-use-before-define": ["error", { "classes": false, "functions": false }],
"no-useless-constructor": "error",
"no-var": "error",
"prefer-const": "error",
"prefer-template": "error",
"prettier/prettier": [
"error",
{
"bracketSpacing": true,
"jsxBracketSameLine": false,
"printWidth": 100,
"semi": true,
"singleQuote": false,
"tabWidth": 4,
"trailingComma": "all"
}
],
"require-await": "error",
"require-yield": "error",
"semi": ["error", "always"],
"spaced-comment": ["error", "always", { "markers": ["/"] }],
"strict": ["error", "global"],
"yoda": "error",
"quotes": ["error", "double", { "avoidEscape": true }],
"@typescript-eslint/no-use-before-define": ["error", { "functions": false }]
}
}