-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathindex.js
70 lines (60 loc) · 1.24 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
62
63
64
65
66
67
68
69
70
module.exports = {
extends: 'eslint-config-airbnb',
env: {
es6: true,
node: true,
mocha: true
},
plugins: [
'mocha'
],
rules: {
// http://eslint.org/docs/rules/no-use-before-define
'no-use-before-define': [
2,
{
functions: false
}
],
// http://eslint.org/docs/rules/quotes
quotes: [
2,
'single',
{
avoidEscape: true,
allowTemplateLiterals: true
}
],
// http://eslint.org/docs/rules/comma-dangle
'comma-dangle': [
2,
'never'
],
// http://eslint.org/docs/rules/no-shadow
'no-shadow': [
0
],
// http://eslint.org/docs/rules/no-param-reassign
'no-param-reassign': [
2, { props: false }
],
// http://eslint.org/docs/rules/strict
strict: [
0
],
'mocha/no-exclusive-tests': 'error',
// http://eslint.org/docs/rules/func-names
'func-names': 0,
// https://github.com/yannickcr/eslint-plugin-react/blob/master/docs/rules/prefer-stateless-function.md
'react/prefer-stateless-function': [
1
],
'react/require-extension': 'off',
'generator-star-spacing': [
'error', {
before: true,
after: false
}
]
}
};