forked from blacktail/taobao
-
Notifications
You must be signed in to change notification settings - Fork 3
/
.eslintrc
36 lines (36 loc) · 1.03 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
{
root: true,
extends: 'standard',
env: {
node: true,
mocha: true
},
# add your custom rules here
"rules":{
"no-tabs": 0,
"max-len": 2,
# force indentation of 2
"indent": ["error", 2, {
"MemberExpression": 1
}],
# allow paren-less arrow functions
'arrow-parens': 0,
# no use of var keyword
'no-var': 2,
# prefer the use of const
'prefer-const': 1,
# variables and properties should always be camelcase
'camelcase' : ['error', {'properties' : 'always'}],
# no variables with underscores,
'no-underscore-dangle': 2,
# key-spacing for objects
'key-spacing': ['error', { 'beforeColon': false, 'afterColon': true, 'align' : 'colon' }],
# spaces after and before curly braces in objects
'object-curly-spacing': ['error', 'always'],
# always use curly braces
'curly': ['error', 'all'],
# one true javascript brace style
'brace-style' : ['error', '1tbs'],
'no-console' : 'error'
}
}