forked from Maddious/RiTA-DiscordBot
-
Notifications
You must be signed in to change notification settings - Fork 55
/
.eslintrc.json
128 lines (128 loc) · 4.01 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
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
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
{
"parserOptions": {
"ecmaVersion": 6
},
"env": {
"browser": false,
"node": true,
"es6": true
},
//"extends": "eslint:recommended",
"extends": "eslint:all",
"parser": "babel-eslint",
"rules": {
// -------------
// eslint Error
// -------------
"new-parens": "error",
"no-lonely-if": "error",
"no-multi-assign": "error",
"no-undef": "error",
"curly": "error",
"dot-notation": "error",
"no-alert": "error",
"no-else-return": "error",
"no-empty-function": "error",
"no-eq-null": "error",
"no-eval": "error",
"no-floating-decimal": "error",
"no-loop-func": "error",
"no-param-reassign": "error",
"no-return-assign": "error",
"no-self-compare": "error",
"no-whitespace-before-property": "error",
"no-useless-return": "error",
"complexity": ["error", 25],
"no-useless-concat": "error",
"no-constant-condition": "error",
"callback-return": "error",
"global-require": "error",
"space-before-blocks": ["error", "always"],
"no-mixed-spaces-and-tabs": "error",
"no-unreachable": "error",
"no-unused-vars": "error",
"no-multi-spaces": "error",
// ------------
// eslint Warn
// ------------
"eqeqeq": "warn",
"no-extra-parens": "warn",
"no-multi-str": "warn",
"no-unused-expressions": "warn",
"yoda": "warn",
"brace-style": ["warn", "allman", {"allowSingleLine": true}],
"comma-dangle": ["warn", "never"],
"func-call-spacing": "warn",
"indent": ["warn", 3, {"SwitchCase": 1}],
"key-spacing": "warn",
"keyword-spacing": "warn",
"linebreak-style": "warn",
"max-depth": ["warn", 4],
"max-len": ["warn", 500],
"max-nested-callbacks": ["warn", 5],
"max-params": ["warn", 5],
"max-statements-per-line": ["warn", {"max": 2}],
"no-trailing-spaces": "warn",
"object-property-newline": "warn",
"operator-linebreak": ["warn", "after"],
"quotes": ["warn", "double", {"allowTemplateLiterals": true}],
"semi": "warn",
"semi-spacing": "warn",
"space-in-parens": "warn",
"wrap-regex": "warn",
"prefer-const": "warn",
"template-curly-spacing": "warn",
"no-extra-semi": "warn",
"no-prototype-builtins": "warn",
"padded-blocks": ["warn", "always"],
"new-cap": ["warn", {"properties": false}],
"capitalized-comments": "off",
"quote-props": "warn",
"no-plusplus": "warn",
// -----------
// eslint Off
// -----------
"block-scoped-var": "off",
"no-console": "off",
"camelcase": "off",
"no-dupe-keys": "off",
// -----------------------------
// eslint all override defaults
// -----------------------------
"max-lines-per-function": "off",
"max-statements": "off",
"no-labels": "off",
"no-lone-blocks": "off",
"one-var": "off",
"id-length": "off",
"max-lines": "off",
"prefer-destructuring": ["error", {"object": false, "array": false}],
"no-undefined": "off",
"func-style": "off",
"no-shadow": "off",
"array-bracket-newline": "off",
"array-element-newline": "off",
"array-bracket-spacing": "off",
"function-call-argument-newline": "off",
"no-process-env": "off",
"no-underscore-dangle": "off",
"no-magic-numbers": "off",
"prefer-arrow-callback": "off",
// --------------
// DO NOT CHANGE
// --------------
"multiline-comment-style":["off", "separate-lines"],
"handle-callback-err": "off",
"no-sync": "off",
"no-negated-condition": "off",
"no-mixed-operators": "off",
"no-ternary": "off",
"no-nested-ternary": "off",
// ---------------------
// These could be fixed
// ---------------------
"require-unicode-regexp": "off",
"prefer-named-capture-group": "off",
"prefer-regex-literals": "off"
}
}