-
Notifications
You must be signed in to change notification settings - Fork 1
/
.eslintrc.js
27 lines (27 loc) · 1.13 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
module.exports = {
"root": true,
"extends": "airbnb-base",
"rules": {
/* The default of AirBnB style guide is alignment with 4 spaces for code,
we change it for tabs, as everyone prefers it, obviously :) */
"indent": ["error", "tab"],
"no-tabs": "off",
/* this one doesn't allow extra lines between function definition and code,
we override it because it can make the code look a bit dirtier at times */
"padded-blocks": "off",
/* they don't like functions like _privateFn(), but we do, so we override it */
"no-underscore-dangle": "off",
/* it complains with for...of loops by default, so we override it
just to take the ForOfStatement out of it, as it can be useful */
"no-restricted-syntax": [
"error",
"ForInStatement",
"LabeledStatement",
"WithStatement"
],
"no-confusing-arrow": "off",
/* comma-dangle enforces things like [1, 2, 3,]
which are pretty awkward, so we invert the default */
"comma-dangle": ["error", "never"]
}
}