-
Notifications
You must be signed in to change notification settings - Fork 16
/
.eslintrc
executable file
·40 lines (33 loc) · 1.11 KB
/
.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
35
36
37
38
39
40
{
"extends": "airbnb",
"parser": "babel-eslint",
"env": {
"browser": true,
"node": true,
"mocha": true
},
"ecmaFeatures": {
"jsx": true,
"es6": true,
"classes": true
},
"rules": {
"indent": [0, 2, {"SwitchCase": 1}],
"comma-dangle": [1, "always-multiline"],
"max-len": [1, 180, 4],
"arrow-body-style": [0],
////////// Node.js //////////
////////// Possible Errors //////////
"prefer-arrow-callback": 0,
"func-names": 0, // require function expressions to have a name (off by default)
"comma-dangle": 0, // disallow trailing commas in object literals
"new-cap": 0, // require a capital letter for constructors
"space-infix-ops": 0, // require spaces around operators
"space-before-function-paren": 0,
"object-shorthand": 0,
////////// Variables //////////
"no-unused-vars": 0, // disallow declaration of variables that are not used in the code
////////// ECMAScript 6 //////////
"no-var": 0 // require let or const instead of var (off by default)
}
}