-
Notifications
You must be signed in to change notification settings - Fork 38
Expand file tree
/
Copy path.eslintrc.js
More file actions
36 lines (36 loc) · 764 Bytes
/
.eslintrc.js
File metadata and controls
36 lines (36 loc) · 764 Bytes
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
module.exports = {
root: true,
parser: 'babel-eslint',
env: {
browser: true,
node: true
},
extends: 'standard',
rules: {
// node specific
'indent': ['error', 2],
'node/no-extraneous-require': 'error',
// defaults
'space-before-function-paren': ['error', {
'anonymous': 'ignore',
'named': 'ignore',
'asyncArrow': 'ignore'
}],
'new-cap': 0,
'comma-dangle': 0,
'no-unused-vars': 0,
'no-trailing-spaces': 0,
'arrow-parens': 0,
'spaced-comment': 0,
'no-debugger': process.env.NODE_ENV === 'production' ? 2 : 0
},
globals: {
'define': true,
'it': true,
'describe': true,
'before': true,
'after': true,
'beforeEach': true,
'afterEach': true,
},
}