-
Notifications
You must be signed in to change notification settings - Fork 49
/
.eslintrc.js
40 lines (32 loc) · 1.04 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
39
40
module.exports = {
parser : "babel-eslint",
extends : "airbnb-base",
rules : {
// Enforce the consistent use of double quotes
quotes : ["error", "double", { avoidEscape: true }],
// Allow bitwise operators
"no-bitwise" : "off",
// Allow the unary operators ++ and --
"no-plusplus" : "off",
// Require or disallow trailing commas
"comma-dangle": ["error", "only-multiline"],
// Disallow Reassignment of Function Parameters
"no-param-reassign" : ["error", { props: false }],
// Enforce consistent spacing between keys and values in object literal properties
"key-spacing" : ["error", {
singleLine : {
beforeColon : false,
afterColon : true
},
multiLine : {
beforeColon : true,
afterColon : true,
mode : "minimum"
}
}],
// Disallow multiple spaces
"no-multi-spaces" : ["error", { ignoreEOLComments: true }],
// Require or disallow padding within blocks
"padded-blocks": ["error", { classes: "always" }]
}
};