forked from ForkKILLET/WillBot
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.js
56 lines (48 loc) · 1.27 KB
/
.eslintrc.js
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
module.exports = {
env: {
node: true,
es2021: true
},
parserOptions: {
ecmaVersion: 2021
},
rules: {
"indent": [ 0, "tab" ],
"object-property-newline": 0,
"no-multiple-empty-lines": [ 2, { max: 2, maxEOF: 1, maxBOF: 0 } ],
"no-multi-spaces": 0,
"no-trailing-spaces": 2,
"key-spacing": 0,
"space-before-function-paren": 0,
"space-unary-ops": [ 2, { words: true, nonwords: true } ],
"camelcase": 0,
"spaced-comment": 2,
"semi": [ 2, "never" ],
"quotes": [ 2, "double", { allowTemplateLiterals: true } ],
"quote-props": [ 2, "as-needed" ],
"comma-dangle": 0,
"no-sequences": 0,
"no-var": 2,
"one-var": 0,
"no-unused-vars": [ 2, { varsIgnorePattern: "^_" } ],
"no-undef": 2,
"no-case-declarations": 0,
"no-fallthrough": 0,
"array-bracket-spacing": 0,
"template-curly-spacing": 0,
"computed-property-spacing": [ 0, "always" ],
"curly": 0,
"brace-style": [ 0, "stroustrup", { allowSingleLine: true } ],
"eqeqeq": [ 2, "always", { null: "ignore" } ],
"no-mixed-operators": 0,
"space-unary-ops": 0,
"operator-linebreak": 0,
"no-extend-native": 0,
},
globals: [
"marked",
"filterXSS",
"scrollToId",
"type_dat", "proxy_dat", "load_dat", "save_dat", "clear_dat", "raw_dat"
].reduce((o, k) => (o[k] = true, o), {})
}