forked from brussell98/discord-markdown
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc.json
65 lines (65 loc) · 1.48 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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
{
"parserOptions": {
"ecmaVersion": 2017,
"sourceType": "module"
},
"env": {
"es6": true,
"node": true,
"jest": true
},
"extends": "eslint:recommended",
"rules": {
"no-console": 1,
"no-control-regex": 0,
"no-alert": 1,
"no-else-return": 1,
"no-redeclare": 2,
"no-useless-escape": 1,
"no-inner-declarations": 0,
"array-bracket-spacing": ["warn", "never"],
"brace-style": ["warn", "1tbs", {
"allowSingleLine": true
}],
"no-trailing-spaces": 1,
"space-before-function-paren": ["warn", {
"anonymous": "never",
"named": "never",
"asyncArrow": "always"
}],
"arrow-spacing": 1,
"comma-spacing": ["warn", {
"before": false,
"after": true
}],
"indent": ["error", "tab", {
"SwitchCase": 1
}],
"array-callback-return": "error",
"eqeqeq": ["warn", "always", {
"null": "ignore"
}],
"no-empty-function": ["error", {
"allow": ["arrowFunctions", "functions", "methods"]
}],
"no-eval": "error",
"no-implied-eval": "error",
"no-return-assign": "error",
"no-unmodified-loop-condition": "off",
"no-empty": "error",
"no-extra-semi": "error",
"no-invalid-regexp": "error",
"no-irregular-whitespace": "error",
"no-regex-spaces": "error",
"no-unreachable": "error",
"valid-typeof": ["error", {
"requireStringLiterals": false
}],
"constructor-super": "error",
"no-const-assign": "error",
"no-dupe-class-members": "error",
"no-var": "error",
"block-spacing": ["error", "always"],
"eol-last": ["error", "always"]
}
}