forked from Vestride/Shuffle
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.js
32 lines (25 loc) · 960 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
31
32
module.exports = {
extends: 'airbnb-base',
env: {
node: true,
browser: true,
},
rules: {
// We like _private methods and variables. It's easier to refactor code
// when you know other components shouldn't be using private methods + props.
'no-underscore-dangle': 'off',
// Prefer template is nice, but tedious for things like: width + 'px'
'prefer-template': 'off',
// Allow + and - in the same line.
'no-mixed-operators': 'off',
// Shadowing is a nice language feature. Naming is hard.
'no-shadow': 'off',
// Make inheritance annoying sometimes.
'class-methods-use-this': 'off',
// Allow `i++` in loops.
'no-plusplus': ['error', { allowForLoopAfterthoughts: true }],
// Allow reassigning properties of objects.
'no-param-reassign': ['error', { props: false }],
'import/no-extraneous-dependencies': ['error', { 'devDependencies': ['gulpfile.js', 'gulp/**/*.js'] }]
},
};