-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy path.eslintrc
More file actions
75 lines (75 loc) · 1.79 KB
/
Copy path.eslintrc
File metadata and controls
75 lines (75 loc) · 1.79 KB
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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
{
'parser': 'babel-eslint',
'plugins': [
'react',
'flowtype',
'react-native'
],
'env': {
'node': true,
'es6': true
},
'ecmaFeatures': {
'jsx': true,
'modules': true
},
'extends': 'eslint:recommended',
'rules': {
'react/jsx-max-props-per-line': 0,
'react/jsx-no-duplicate-props': 0,
'react/jsx-no-undef': 0,
'react/jsx-uses-react': 0,
'react/jsx-uses-vars': 2,
'react/no-danger': 0,
'react/no-did-mount-set-state': 0,
'react/no-did-update-set-state': 0,
'react/no-direct-mutation-state': 0,
'react/prop-types': 0,
'react/react-in-jsx-scope': 0,
'react/self-closing-comp': 0,
'react/sort-comp': 0,
# 'strict': 2,
'no-unreachable': 0,
'no-console': 2,
'semi': [2,'always'],
'comma-dangle': 0,
'prefer-template': 2,
'prefer-const': 2,
'no-var': 2,
'no-const-assign': 2,
'indent': [2,2, { "SwitchCase": 1 }],
# 'key-spacing': [2,{
# 'singleLine':{
# 'beforeColon':false,
# 'afterColon':false
# },
# 'multiLine':{
# 'beforeColon':false,
# 'afterColon':false
# },
# }],
'jsx-quotes': 0,
'no-unused-vars': ["error",{ "varsIgnorePattern": "React" }],
'max-len': [2,85],
'no-alert': 0,
'react-native/no-unused-styles': 2,
# flow rules
'flowtype/require-parameter-type': 1,
# 'flowtype/require-return-type': [1,'always',{
# 'annotateUndefined': 'never'
# }],
# 'flowtype/space-after-type-colon': [1,'never'],
# 'flowtype/space-before-type-colon': [1,'never'],
# 'flowtype/type-id-match': [1,'^([A-Z][a-z0-9]+)+Type$']
},
'globals': {
'fetch': true,
'window': true,
'__DEV__': true
},
'settings': {
'flowtype': {
'onlyFilesWithFlowAnnotation': true
}
}
}