-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy path.eslintrc
34 lines (34 loc) · 932 Bytes
/
.eslintrc
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
{
/**
* Set JavaScript language options
*/
"parserOptions": {
"sourceType": "script"
},
/**
* Set Environnement
*/
"env": {
"browser": true
},
/**
* Set globals
*/
"globals": {
},
/**
* Set rules
*/
"extends": "airbnb-base",
// Overwritten airbnb's rules:
"rules": {
"strict": ["error", "global"],
"func-names": ["error", "never"],
"space-before-function-paren": ["error", { "anonymous": "never", "named": "never", "asyncArrow": "always" }],
"no-plusplus": ["error", { "allowForLoopAfterthoughts": true }],
"no-multi-spaces": [2, { "exceptions": { "VariableDeclarator": true } }],
"comma-style": ["error", "first", { "exceptions": { "ArrayExpression": true, "ObjectExpression": true } }],
"indent": ["error", 2, { "VariableDeclarator": { "const": 2 }, "SwitchCase": 1 }],
"no-multiple-empty-lines": ["error", { "max": 2, "maxEOF": 0 }]
}
}