forked from MattKetmo/darkroomjs
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy path.eslintrc.js
38 lines (38 loc) · 1.05 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
module.exports = {
"extends": "airbnb-base",
"rules": {
"func-names": [ "error", "never" ],
"comma-dangle": ["error", "never"],
"max-len": ["error", { "code": 150 }],
"no-param-reassign": ["error", { "ignorePropertyModificationsFor": ["delta"] }],
"quotes": ["error", "double"],
"no-underscore-dangle": ["error", { "allowAfterThis": true }],
"no-mixed-operators": [
"error",
{
"groups": [
[ "+", "-", "*", "/", "%", "**" ],
[ "&", "|", "^", "~", "<<", ">>", ">>>" ],
[ "==", "!=", "===", "!==", ">", ">=", "<", "<=" ],
[ "&&", "||" ],
[ "in", "instanceof" ]
],
"allowSamePrecedence": true
}
],
"no-undef": ["error", { "typeof": false }],
"prefer-destructuring": ["error", {
"array": false,
"object": false
}, {
"enforceForRenamedProperties": false
}]
},
"globals": {
"Darkroom": true,
"Image": true,
"fabric": true,
"document": true,
"window": true
}
};