forked from Difegue/LANraragi
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.json
50 lines (50 loc) · 1.43 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
{
"env": {
"browser": true,
"es2021": true,
"jquery": true
},
"extends": [
"airbnb-base",
"eslint:recommended"
],
"parserOptions": {
"ecmaVersion": 12,
"sourceType": "module"
},
"globals": {
"LRR": "readonly",
"Common": "readonly",
"Server": "readonly",
"tagger": "readonly",
"marked": "readonly",
"Awesomplete": "readonly",
"tippy": "readonly",
"Index": "readonly",
"IndexTable": "readonly",
"Swiper": "readonly"
},
"ignorePatterns": ["**/vendor/*.js"],
"rules": {
"func-names": ["error", "never"],
"indent": ["error", 4],
"quotes": ["error", "double"],
"no-alert": "off",
"no-else-return": "off",
"no-param-reassign": ["error", { "props": false }],
"no-plusplus": ["error", { "allowForLoopAfterthoughts": true }],
"no-multi-assign": ["error", { "ignoreNonDeclaration": true }],
"no-unused-expressions": [
"error",
{
"allowShortCircuit": true,
"allowTernary": true
}
],
"one-var": "off",
"one-var-declaration-per-line": ["error", "initializations"],
"prefer-destructuring": ["error", {"object": true, "array": false}],
"function-paren-newline": "off",
"function-call-argument-newline": "off"
}
}