-
Notifications
You must be signed in to change notification settings - Fork 20
/
.eslintrc.js
53 lines (51 loc) · 858 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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
module.exports = {
extends: ['airbnb'],
env:{
'browser':true,
'node':true,
'jasmine':true,
},
parser: 'babel-eslint',
plugins: [
'babel',
],
rules:{
'max-len':[
2,
{
code:80,
ignoreUrls:true,
ignoreStrings:true,
}
],
'arrow-parens':[
2,
'as-needed',
],
'react/jsx-curly-spacing': [
2,
'always',
],
'jsx-quotes': [
2,
'prefer-single',
],
'react/jsx-equals-spacing': [
2,
'always',
],
'comma-dangle':[
2,
'always-multiline',
],
'react/jsx-boolean-value': [
2,
'always',
],
'no-underscore-dangle': [2, { allow: ['__', '_id', ] }],
'no-mixed-operators': [0],
'consistent-return':0,
camelcase:0,
'react/forbid-prop-types':0,
},
};