-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.js
61 lines (61 loc) · 1.98 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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
module.exports = {
parserOptions: {
ecmaVersion: 8 // overrides ecmaVersion set by es6 env
},
rules: {
'array-bracket-spacing': [2, 'never'],
'block-spacing': [2, 'always'],
'brace-style': [2, '1tbs', { allowSingleLine: true }],
camelcase: [2, { properties: 'always' }],
'comma-spacing': [2, { before: false, after: true }],
'comma-style': [2, 'last'],
'computed-property-spacing': [2, 'never'],
curly: [2, 'multi-line', 'consistent'],
'dot-location': [2, 'property'],
'eol-last': [2],
eqeqeq: [2, 'smart'],
'handle-callback-err': [2],
indent: [2, 4],
'key-spacing': [2, { beforeColon: false, afterColon: true }],
'keyword-spacing': [2, { before: true, after: true, overrides: {} }],
'linebreak-style': [2, 'unix'],
'max-depth': [2],
'max-nested-callbacks': [2],
'no-console': [0],
'no-catch-shadow': [2],
'no-const-assign': [2],
'no-label-var': [2],
'no-lonely-if': [2],
'no-multi-spaces': [2],
'no-path-concat': [2],
'no-process-exit': [2],
'no-shadow': [2],
'no-shadow-restricted-names': [2],
'no-spaced-func': [2],
'no-trailing-spaces': [2],
'no-undef': [2],
'no-unused-vars': [2],
'no-use-before-define': [2],
'no-var': [2],
'no-whitespace-before-property': [2],
'object-curly-spacing': [2, 'always'],
'prefer-const': [2],
'prefer-template': [2],
quotes: [2, 'single'],
radix: [2],
semi: [2, 'always'],
'space-before-blocks': [2, 'always'],
'space-before-function-paren': [2, 'never'],
'space-infix-ops': [2],
'space-unary-ops': [2],
'spaced-comment': [2, 'always'],
strict: [2, 'safe'],
yoda: [2],
'new-cap': [2]
},
env: {
es6: true,
node: true
},
extends: 'eslint:recommended'
};