-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathindex.js
43 lines (42 loc) · 1.32 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
module.exports = {
env: {
es6: true,
node: true,
},
extends: ['airbnb'],
plugins: ['chai-friendly'],
rules: {
'no-unused-expressions': 'off',
'chai-friendly/no-unused-expressions': 'error',
'linebreak-style': ['error', 'unix'],
'no-param-reassign': ['error', { props: false }],
'func-style': ['error', 'declaration', { allowArrowFunctions: true }],
'no-use-before-define': ['error', { functions: false }],
'no-unused-vars': ['error', {'vars': 'all', 'args': 'none'}],
'consistent-return': 'off',
'arrow-body-style': ['off', 'as-needed', {
requireReturnForObjectLiteral: false,
}],
'prefer-destructuring': ['off', {
VariableDeclarator: {
array: false,
object: true,
},
AssignmentExpression: {
array: true,
object: true,
},
}, {
enforceForRenamedProperties: false,
}],
'no-underscore-dangle': 'off',
'array-element-newline': 'off',
'function-paren-newline': ['warn', 'multiline'],
'newline-per-chained-call': ['error', { ignoreChainWithDepth: 4 }],
'no-inline-comments': 'off',
'object-curly-newline': ['error', {
ObjectExpression: { minProperties: 4, multiline: true, consistent: true },
ObjectPattern: { minProperties: 4, multiline: true, consistent: true }
}],
},
};