rebuild/.eslintrc.js

131 lines
2.6 KiB
Java
Raw Normal View History

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,
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,
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,
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,
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,
$select2MatcherAll: true,
Merge v3.1 (#537) * 3.1-dev * feat: Auto revoke RB-811 (#514) * feat: Auto revoke * remove: MAX_REVOKED 100 * disableWhen * style: drag icon * fix: docs * Remove `type="text/css"` * Feat trigger when rejected 813 (#519) * testcase * feat: 分组聚合后回填 * better code * better isCurrentSame * 1.series-reset; 2.better * bump libs * feat: 字段更新 N2N supports (#520) * feat: N2N supports * add `type="button"` * Update @rbv * Show cc details 817 (#522) * feat: show cc users * style: n-values * useColor in forms * fix: revType text * excel error * fix: details in excel * RB-815 Releated list show (#523) * reference-search open ref * feat: show text on barcode * feat: related show grid * feat: VF current approver * some styles fixs * Forms window resize (#524) * feat: form modal _maximize * better: protable width * Better styles (#525) * fix: thymeleaf.version 3012 * feat: map _suggestUpDown * better styles * open: filterpane * Approval urge (#526) * styled: filterpane * approval urge * better token (#527) * better token (3) * better 2fa * UTF8 * Trigger on reject RB-813 (#528) * feat: trigger when 1024 2048 * cfg: SecurityEnhanced * PREFIX_2FA * trigger tips hit * Trigger auto delete (#529) * AutoDelete * active selected entity * better code * TriggerResult * better: data imports * Force update for ga (#531) * gitee #I5TN5M * gitee #I5TFC9 Add unique key for SERIES * feat: forceUpdate for GROUPAGGREGATION * better SERIES * Approve remarks * Details import via trans RB-830 (#532) * upload multiple * fix: _cascadingFieldParentValue on detail new * frontjs: DEF_DETAIL_IMPORTS * feat: details imports * getFormData * better chart * Advfilter use record (#533) * lab: $isSysMask * tablesort for fields * AdvFilterParser support field-var * Openapi of file (#534) * File openapi * details delay render * better styles Co-authored-by: RB <getrebuild@sina.com> Co-authored-by: Zixin <42044143+getrebuild@users.noreply.github.com> * Better v3.1 (#535) * aviator log * New after reload reference-search * better error msg * support-plat * filterpane VF_ACU * BarCode 80 * lang * tipClear * better trigger * approval urge 5min * feat: CHINESEYUAN * TrustedAllUrl * Update @rbv * Better v3.1#2 (#536) * TriggerResult * feat: fileSuffix * New __customAdv * feat: ListAdvFilter * Remove btn-space * better token * fix shareTo * better rbv11 * ucenter * 3.1.0-beta1 * lang * btn style * No catch trigger refresh * fix: fillin parent field * feat: admin cancel approval * comp: {{xxxx}} Co-authored-by: devezhao <zhaofang123@gmail.com>
2022-10-18 12:50:33 +08:00
$isFullUrl: true,
$clone: true,
$isSysMask: true,
$escapeHtml: true,
2020-10-16 21:53:44 +08:00
},
}