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,
|
2022-11-04 23:05:09 +08:00
|
|
|
RBCOLORS: true,
|
|
|
|
RBEMOJIS: true,
|
2020-10-16 21:53:44 +08:00
|
|
|
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,
|
2024-04-09 16:22:40 +08:00
|
|
|
$multipleUploader: 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,
|
2024-03-25 19:32:41 +08:00
|
|
|
renderRbcomp18: true,
|
2024-03-20 21:36:06 +08:00
|
|
|
renderDlgcomp: true,
|
2020-10-16 21:53:44 +08:00
|
|
|
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,
|
2022-12-22 17:39:04 +08:00
|
|
|
LiteForm: true,
|
2020-10-16 21:53:44 +08:00
|
|
|
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,
|
|
|
|
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,
|
2023-02-19 00:32:30 +08:00
|
|
|
$emptyNum: true,
|
2020-10-16 21:53:44 +08:00
|
|
|
$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,
|
2021-11-15 23:16:11 +08:00
|
|
|
WrapHtml: true,
|
2022-01-04 11:47:27 +08:00
|
|
|
SignPad: true,
|
2022-02-11 16:18:49 +08:00
|
|
|
RF: true,
|
2022-04-21 18:05:21 +08:00
|
|
|
$select2MatcherAll: true,
|
2022-10-18 12:50:33 +08:00
|
|
|
$isFullUrl: true,
|
|
|
|
$clone: true,
|
|
|
|
$isSysMask: true,
|
2022-12-22 17:39:04 +08:00
|
|
|
$escapeHtml: true,
|
2023-08-15 23:25:26 +08:00
|
|
|
$isLight: true,
|
2023-08-24 14:49:14 +08:00
|
|
|
RbGritter: true,
|
2023-12-02 18:22:06 +08:00
|
|
|
$formattedCode: true,
|
|
|
|
CodeViewport: true,
|
2023-12-13 21:31:02 +08:00
|
|
|
$clipboard: true,
|
|
|
|
$getScript: true,
|
2024-01-10 10:12:21 +08:00
|
|
|
$sec2Time: true,
|
|
|
|
$removeHtml: true,
|
2024-02-28 20:42:28 +08:00
|
|
|
$openWindow: true,
|
2024-03-03 20:22:17 +08:00
|
|
|
MediaCapturer: true,
|
2024-03-12 21:59:50 +08:00
|
|
|
$cleanArray: true,
|
2024-03-18 13:04:07 +08:00
|
|
|
$trim: true,
|
|
|
|
$type: true,
|
2024-05-08 16:45:11 +08:00
|
|
|
$cleanNumber: true,
|
2020-10-16 21:53:44 +08:00
|
|
|
},
|
|
|
|
}
|