-
Notifications
You must be signed in to change notification settings - Fork 208
/
.eslintrc.js
150 lines (150 loc) · 3.08 KB
/
.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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
module.exports = {
root: true,
env: {
browser: true,
jquery: true,
es6: true,
},
parserOptions: {
ecmaVersion: 2016,
sourceType: 'script',
},
parser: 'babel-eslint',
plugins: ['react'],
extends: ['eslint:recommended', 'plugin:react/recommended'],
settings: {
react: {
pragma: 'React',
version: '16.10.2',
},
},
rules: {
'react/jsx-no-target-blank': 0,
'react/prop-types': 0,
'strict': 0,
'no-redeclare': 0,
'indent': [2, 2],
'linebreak-style': [0, 'unix'],
'quotes': [2, 'single'],
'semi': [2, 'never'],
'eqeqeq': [2, 'always'],
},
globals: {
module: true,
define: true,
require: true,
Mprogress: true,
gridster: true,
echarts: true,
qiniu: true,
React: true,
ReactDOM: true,
PropTypes: true,
RBCOLORS: true,
RBEMOJIS: true,
rb: true,
$setTimeout: true,
$random: true,
$regex: true,
$storage: true,
$val: true,
$urlp: true,
$encode: true,
$decode: true,
$fileCutName: true,
$fileExtName: true,
$gotoSection: true,
$createUploader: true,
$initUploader: true,
$multipleUploader: true,
$cleanMenu: true,
$cleanMap: true,
$pages: true,
$same: true,
$is: true,
$unmount: true,
$initReferenceSelect2: true,
$keepModalOpen: true,
renderRbcomp: true,
renderRbcomp18: true,
renderDlgcomp: true,
RbSpinner: true,
RbAlertBox: true,
RbModal: true,
RbModalHandler: true,
RbForm: true,
RbFormHandler: true,
RbFormElement: true,
LiteForm: true,
RbList: true,
RbListCommon: true,
RbListPage: true,
RbViewPage: true,
CellRenders: true,
AdvFilter: true,
UserSelector: true,
UserShow: true,
DateShow: true,
DeleteConfirm: true,
RbFormModal: true,
DlgAssign: true,
DlgShare: true,
DlgUnshare: true,
DlgShareManager: true,
RbAlert: true,
RbHighbar: true,
ApprovalSubmitForm: true,
ConfigList: true,
ConfigFormDlg: true,
RbPreview: true,
$countdownButton: true,
Share2: true,
$stopEvent: true,
$addResizeHandler: true,
$empty: true,
$mp: true,
$converEmoji: true,
$throttle: true,
$timechunk: true,
moment: true,
$moment: true,
$expired: true,
$fromNow: true,
$toNow: true,
$L: true,
$isTrue: true,
$fieldIsCompatible: true,
$unhideDropdown: true,
AnyRecordSelector: true,
AsideTree: true,
$useMap: true,
BaiduMap: true,
BaiduMapModal: true,
WrapHtml: true,
SignPad: true,
RF: true,
$select2MatcherAll: true,
$isFullUrl: true,
$clone: true,
$isSysMask: true,
$escapeHtml: true,
$isLight: true,
RbGritter: true,
$formattedCode: true,
CodeViewport: true,
$clipboard: true,
$getScript: true,
$sec2Time: true,
$removeHtml: true,
$openWindow: true,
MediaCapturer: true,
$cleanArray: true,
$trim: true,
$type: true,
$cleanNumber: true,
$hex2rgb: true,
$isImage: true,
$dropUpload: true,
$tagStyle2: true,
},
}