2020-10-16 21:53:44 +08:00
|
|
|
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,
|
|
|
|
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,
|
2021-02-05 11:28:52 +08:00
|
|
|
$initUploader: true,
|
2020-10-16 21:53:44 +08:00
|
|
|
$cleanMenu: true,
|
|
|
|
$cleanMap: true,
|
|
|
|
$pages: true,
|
|
|
|
$same: true,
|
2021-03-31 16:55:31 +08:00
|
|
|
$is: true,
|
2020-10-16 21:53:44 +08:00
|
|
|
$unmount: true,
|
|
|
|
$initReferenceSelect2: true,
|
|
|
|
$keepModalOpen: true,
|
|
|
|
renderRbcomp: true,
|
|
|
|
RbSpinner: true,
|
|
|
|
RbAlertBox: true,
|
|
|
|
RbModal: true,
|
|
|
|
RbModalHandler: true,
|
2021-10-23 17:40:43 +08:00
|
|
|
RbForm: true,
|
2020-10-16 21:53:44 +08:00
|
|
|
RbFormHandler: true,
|
|
|
|
RbFormElement: true,
|
|
|
|
RbList: true,
|
2021-10-22 17:11:58 +08:00
|
|
|
RbListCommon: true,
|
2020-10-16 21:53:44 +08:00
|
|
|
RbListPage: true,
|
2021-08-07 13:53:32 +08:00
|
|
|
RbViewPage: true,
|
2020-10-16 21:53:44 +08:00
|
|
|
CellRenders: true,
|
|
|
|
AdvFilter: true,
|
|
|
|
UserSelector: true,
|
|
|
|
UserShow: true,
|
|
|
|
DateShow: true,
|
|
|
|
DeleteConfirm: true,
|
|
|
|
ApprovalProcessor: 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,
|
2021-09-30 12:02:57 +08:00
|
|
|
$fromNow: true,
|
|
|
|
$toNow: true,
|
2020-10-16 21:53:44 +08:00
|
|
|
$L: true,
|
2020-11-17 01:26:51 +08:00
|
|
|
$isTrue: true,
|
2020-11-23 12:37:04 +08:00
|
|
|
$fieldIsCompatible: true,
|
2021-03-09 16:54:57 +08:00
|
|
|
$unhideDropdown: true,
|
2021-04-07 15:04:13 +08:00
|
|
|
AnyRecordSelector: true,
|
2021-06-15 01:37:25 +08:00
|
|
|
AsideTree: true,
|
2021-11-02 01:16:25 +08:00
|
|
|
$useMap: true,
|
|
|
|
BaiduMap: true,
|
2021-11-02 17:28:27 +08:00
|
|
|
BaiduMapModal: true,
|
2020-10-16 21:53:44 +08:00
|
|
|
},
|
|
|
|
}
|