-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.js
46 lines (41 loc) · 1.33 KB
/
index.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
41
42
43
44
45
46
module.exports = {
'extends': 'eslint:recommended',
'rules': {
'no-extra-parens': [2, 'functions'],
'dot-location': [2, 'property'],
'no-else-return': 2,
'no-self-compare': 2,
'no-throw-literal': 2,
'no-void': 2,
'wrap-iife': [2, 'inside'],
'strict': [2, 'never'],
'array-bracket-spacing': [2, 'never'],
'brace-style': [2, 'stroustrup', { 'allowSingleLine': true }],
'comma-style': [2, 'last'],
'computed-property-spacing': [2, 'never'],
'indent': [2, 4, {'SwitchCase': 1}],
'no-console': 0,
'no-lonely-if': 2,
'no-multiple-empty-lines': [2, {'max': 3}],
'no-nested-ternary': 2,
'no-spaced-func': 2,
'no-undef': 2,
'no-unneeded-ternary': 2,
'object-curly-spacing': [2, 'always'],
'quote-props': [2, 'as-needed'],
'quotes': [2, 'single', 'avoid-escape'],
'semi': [2, 'always'],
'space-before-blocks': [2, 'always'],
'space-before-function-paren': [2, 'never'],
'space-in-parens': [2, 'never'],
'spaced-comment': [2, 'always']
/*
Recommended es6 rules.
'constructor-super': 2,
'no-this-before-super': 2,
'no-var': 2,
'object-shorthand': [2, 'always'],
'prefer-const': 2
*/
}
};