-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.eslintrc.json
More file actions
109 lines (109 loc) · 2.57 KB
/
Copy path.eslintrc.json
File metadata and controls
109 lines (109 loc) · 2.57 KB
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
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
{
"env": {
"browser": true,
"es6": true,
"node": true
},
"extends": [
"eslint:recommended",
"plugin:@typescript-eslint/eslint-recommended",
"plugin:@typescript-eslint/recommended"
],
"globals": {
"Atomics": "readonly",
"SharedArrayBuffer": "readonly"
},
"parser": "@typescript-eslint/parser",
"parserOptions": {
"ecmaVersion": 11,
"sourceType": "module"
},
"plugins": [
"@typescript-eslint"
],
"rules": {
"indent": [
"warn",
2,
{
"FunctionDeclaration": {
"parameters": "first"
},
"FunctionExpression": {
"parameters": "first"
},
"CallExpression": {
"arguments": "first"
},
"ArrayExpression": "first",
"ObjectExpression": "first"
}
],
"linebreak-style": [
"warn",
"windows"
],
"quotes": [
"warn",
"double",
{
"allowTemplateLiterals" : true
}
],
"semi": [
"warn",
"always"
],
"no-unused-vars": 0,
"function-paren-newline": [
"warn",
"consistent"
],
"brace-style": [
"warn",
"allman",
{
"allowSingleLine": true
}
],
"comma-dangle": [
"error",
"never"
],
"comma-spacing": [
"warn",
{
"before": false,
"after": true
}
],
"function-call-argument-newline": [
"warn",
"consistent"
],
"no-constant-condition": [
"warn",
{"checkLoops": false}
],
"camelcase": [
"warn",
{"properties": "always"}
],
"@typescript-eslint/type-annotation-spacing": [
"warn",
{
"before": true,
"after": true
}
],
"@typescript-eslint/consistent-type-assertions": [
"warn",
{
"assertionStyle": "as"
}
],
"@typescript-eslint/no-non-null-assertion": "off",
"@typescript-eslint/no-empty-function": "warn",
"@typescript-eslint/explicit-function-return-type": "error"
}
}