-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.eslintrc.js
More file actions
43 lines (31 loc) · 897 Bytes
/
.eslintrc.js
File metadata and controls
43 lines (31 loc) · 897 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
37
38
39
40
41
42
43
// http://eslint.org/docs/user-guide/configuring
module.exports = {
parser: 'babel-eslint',
env: {
browser: true,
jest: true,
},
globals: {
"$": true
},
extends: [
'airbnb'
],
// add your custom rules here
rules: {
// allow debugger during development
'no-debugger': process.env.NODE_ENV === 'production' ? 2 : 0,
// allow prefix underscore to indicate private memeber/function
'no-underscore-dangle': 0,
// allow both windows and linux type linebreaks
'linebreak-style': 0,
// allow loose prop type check
'react/forbid-prop-types': 0,
// allow dev module import in config files
'import/no-extraneous-dependencies': 0,
// allow unary operators since we are not using auto semicolon insertion process
'no-plusplus': 0,
// no need to do prop type check for everything
'react/prop-types': 0,
}
}