forked from wikimedia-gadgets/MoreMenu
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc.json
35 lines (35 loc) · 825 Bytes
/
.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
{
"env": {
"browser": true,
"es6": true
},
"extends": [
"airbnb-base"
],
"globals": {
"Atomics": "readonly",
"SharedArrayBuffer": "readonly",
"$": "readonly",
"mw": "readonly",
"MoreMenu": "writable"
},
"parserOptions": {
"ecmaVersion": 9
},
"overrides": [
{
"files": "src/*.js"
}
],
"rules": {
"indent": ["error", 4],
"max-len": ["error", {"code": 120}],
"no-bitwise": "off",
"no-param-reassign": "off",
"arrow-parens": ["error", "as-needed"],
"newline-per-chained-call": "off",
"yoda": ["error", "always", {"onlyEquality": true}],
"comma-dangle": ["error", "always-multiline"],
"func-names": "off"
}
}