-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy patheslint.config.mjs
118 lines (114 loc) · 3.3 KB
/
eslint.config.mjs
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
import globals from "globals";
import pluginJs from "@eslint/js";
export default [
pluginJs.configs.recommended,
{languageOptions: {globals: globals.browser}},
{
ignores: ["**/static/js/marked.js", "**/static/ruffle/**"],
},
{
rules: {
"no-undef": "off",
"no-unused-vars": "off",
"indent": ["error", 2],
"linebreak-style": ["error", "unix"],
"quotes": ["error", "backtick"],
"no-console": "error",
"no-multi-spaces": "error",
"no-multiple-empty-lines": ["error", {"max": 1}],
"object-shorthand": ["error", "always"],
"semi": ["error", "never"],
"no-else-return": "error",
"padded-blocks": ["error", "never"],
"no-lonely-if": "error",
"eqeqeq": ["error", "always"],
"curly": ["error", "all"],
"brace-style": ["error", "stroustrup", {"allowSingleLine": true}],
"no-var": "error",
"arrow-spacing": ["error", {"before": true, "after": true}],
"space-in-parens": ["error", "never"],
"object-curly-spacing": ["error", "never"],
"prefer-object-spread": "error",
"no-eval": "error",
"no-useless-escape": "error",
"default-param-last": "error",
"dot-notation": "error",
"keyword-spacing": "error",
"space-infix-ops": "error",
"comma-spacing": "error",
"comma-dangle": ["error", "always-multiline"],
"no-extra-parens": ["error", "all", {
"nestedBinaryExpressions": false,
"enforceForArrowConditionals": false,
"returnAssign": false
}],
"padding-line-between-statements": [
"error",
{ "blankLine": "always", "prev": "block-like", "next": "*" }
],
"func-call-spacing": ["error", "never"],
"space-before-function-paren": ["error", {
"anonymous": "never",
"named": "never",
"asyncArrow": "always"
}],
"no-mixed-operators": [
"error",
{
"groups": [
["&&", "||"],
["&&", "==="],
["&&", "!=="],
["&&", "=="],
["&&", "!="],
["&&", ">"],
["&&", ">="],
["&&", "<"],
["&&", "<="],
["||", "==="],
["||", "!=="],
["||", "=="],
["||", "!="],
["||", ">"],
["||", ">="],
["||", "<"],
["||", "<="],
["==", "!=", "===", "!=="],
["in", "instanceof"],
],
"allowSamePrecedence": true
}
]
},
languageOptions: {
globals: {
App: "readonly",
DOM: "readonly",
Msg: "readonly",
Utilz: "readonly",
Croppie: "readonly",
Handlebars: "readonly",
jdenticon: "readonly",
Dropzone: "readonly",
io: "readonly",
Twitch: "readonly",
SC: "readonly",
YT: "readonly",
onYouTubeIframeAPIReady: "writable",
ColorLib: "readonly",
NeedContext: "readonly",
dateFormat: "readonly",
browser: "readonly",
module: "readonly",
__dirname: "readonly",
__filename: "readonly",
Buffer: "readonly",
AColorPicker: "readonly",
process: "readonly",
require: "readonly",
vars: "readonly",
marked: "readonly",
}
}
}
]