-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.eslintrc
48 lines (44 loc) · 1.21 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
{
env: {
node: true,
mocha: true
},
rules: {
// Best Practices
curly: [2, all],
dot-notation: 2,
eqeqeq: [2, allow-null],
guard-for-in: 2,
no-caller: 2,
no-multi-str: 2,
no-multi-spaces: 2,
no-unused-vars: 2,
no-with: 2,
// Variables
no-undef: 2,
// Stylistic Issues
array-bracket-spacing: [2, never],
brace-style: [2, 1tbs, {allowSingleLine: true}],
camelcase: [2, {properties: never}],
eol-last: 2,
indent: [2, 2, {VariableDeclarator: 2, SwitchCase: 1}],
key-spacing: [2, {beforeColon: false, afterColon: true}],
new-cap: 2,
no-mixed-spaces-and-tabs: [2, smart-tabs],
no-multiple-empty-lines: 2,
no-trailing-spaces: 2,
object-curly-spacing: [2, never],
operator-linebreak: [2, after],
quotes: [2, single, avoid-escape],
semi-spacing: [2, {before: false, after: true}],
space-after-keywords: [2, always],
space-before-function-paren: [2, {anonymous: never, named: never}],
space-before-blocks: [2,always],
space-in-parens: [2, never],
space-infix-ops: 2,
space-unary-ops: [2, {nonwords: false}],
space-return-throw-case: 2,
// Legacy
max-len: [2, 80, 4, {ignoreUrls: true}]
}
}