-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc.js
30 lines (30 loc) · 1016 Bytes
/
.eslintrc.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
module.exports = {
'extends': 'airbnb',
'env': {
// Allow mocha globals like "describe" and "it"
'mocha': true
},
'parserOptions': {
'ecmaFeatures': {
// Allow object rest spread eg: {...thing}
'experimentalObjectRestSpread': true
}
},
// Relax a few rules for personal preference
'rules': {
// Allow single statements inside the curly braces of an arrow function
'arrow-body-style': 0,
// Allow a little more line length for edge cases and ignore comments
'max-len': [2, 105, 2, {'ignoreUrls': true, 'ignoreComments': true}],
// Allow param props to be set, useful for Array.reduce
'no-param-reassign': [2, {'props': false}],
// Allow shadowed variables, which makes writing redux connectors easier
'no-shadow': 0,
// No curly braces spacing
'object-curly-spacing': [2, 'never'],
// Allow regular string concatenation
'prefer-template': 0,
// Allow parseInt radix param to be omitted
'radix': [2, 'as-needed']
}
};