-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc.json
51 lines (51 loc) · 1.32 KB
/
.eslintrc.json
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
{
"extends": ["plugin:prettier/recommended"],
"parser": "typescript-eslint-parser",
"parserOptions": {
"sourceType": "module"
},
"env": {
"node": true
},
"root": true,
"rules": {
"no-console": "off",
"no-tabs": "error",
"no-trailing-spaces": "error",
"linebreak-style": ["error", "unix"],
"eol-last": "error",
"space-infix-ops": "error",
"space-before-blocks": "error",
"arrow-spacing": "error",
"keyword-spacing": "error",
"max-len": "off",
"quotes": ["error", "single", { "allowTemplateLiterals": true }],
"comma-dangle": ["error", "always-multiline"],
"semi": ["error", "always"],
"camelcase": "error",
"no-use-before-define": [
"error",
{
"functions": false,
"classes": false
}
],
"no-multiple-empty-lines": [
"error",
{
"max": 2,
"maxEOF": 0
}
],
"func-style": ["error", "declaration"],
"no-var": "error",
"prefer-const": "error",
"sort-vars": [
"error",
{
"ignoreCase": true
}
],
"prefer-arrow-callback": "error"
}
}