-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy path.eslintrc
52 lines (42 loc) · 1.37 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
41
42
43
44
45
46
47
48
49
50
51
52
{
"parser": "babel-eslint",
"env": {
"browser": true,
"commonjs": true,
"es6": true
},
"extends": ["strict"],
"ecmaFeatures": {
"experimentalObjectRestSpread": true,
},
// Overrides:
"rules": {
// We always add a newline after variable declarations, e.g. `require`s:
// TODO: Disabled for now due to issues of valid `var` before `if`:
"newline-after-var": 0,
// Disallow use of semicolons:
"semi": [2, "never"],
// Enforce no spaces inside object and array literals:
"object-curly-spacing": [2, "never"],
"array-bracket-spacing": [2, "never"],
// Allow, but warn on `TODO`, `FIXME`, etc. comments:
"no-warning-comments": [1],
"id-length": [2, {"min": 3, "exceptions": ["id"]}],
// Disallow dashes in filenames, i.e. favor `PascalCase` and `camelCase`
// over `kebab-case`:
"filenames/filenames": [2, "^[a-zA-Z.]+$"],
// Max line length:
"max-len": [2, 80],
// Identifier formats:
"id-match": [2, "^([_a-zA-Z][a-zA-Z0-9]*|[A-Z_]*)$"],
// Allow `/*eslint … */` overrides:
"spaced-comment": [2, "always", {
markers: ["eslint-disable", "eslint-enable"]
}],
// We always allow inline comments, e.g. to denote variable
// units (milliseconds, seconds, etc.)
"no-inline-comments": 0,
// Allow any style of function declaration:
"func-style": 0,
}
}