rebuild/.eslintrc.js

151 lines
3.1 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,
$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,
renderRbcomp18: true,
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,
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,
$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,
Merge v3.4 (#644) * Enh charts (#575) * NN * feat: LINE/BAR 2dim and dateContinuous --------- Co-authored-by: RB <getrebuild@sina.com> * Copy role (#576) * feat: showAllUsers * feat: role copy * bg-guide --------- Co-authored-by: RB <getrebuild@sina.com> * base support (#579) * Excel pdf (#581) * Bump lib * excel to pdf * PdfConverter --------- Co-authored-by: devezhao <zhaofang123@gmail.com> * Files access (#582) * code style * se:conf * feat: folder rights --------- Co-authored-by: devezhao <zhaofang123@gmail.com> * Showfields spec (#584) * field CLASSIFICATION dv * feat: SYS for DataList * 视图>详情 * Trigger async (#585) * 同步发送 * Update @rbv --------- Co-authored-by: RB <getrebuild@sina.com> * N2n aggregation (#587) * 列表视图 * bump * better delete * Update @rbv * star userid * fieldVarsN2NPath * USER_OWNS No warn --------- Co-authored-by: devezhao <zhaofang123@gmail.com> * Single field after reload (#589) * v3.3 compact * singleField reload * .col-right-compact --------- Co-authored-by: RB <getrebuild@sina.com> * List styles (#590) * quick-filter-pane v3 * dock page * better * H5 sync (#593) * Update submail.html * better files * Update @rbv * H5 sync2 (#595) * style: 目录样式gh * style: J_new * feat: advListFilterTabs * feat: nav-copyto * enh: 助记码全拼 * enh: 地图搜索选点 * enh: topnav * list pn * .form-line.v33 * open TAG * KVS addShutdownHook * fix: #594 --------- Co-authored-by: devezhao <zhaofang123@gmail.com> * Fix long request (#599) * fix: `trigger/exec-manual` async * fix: lang * fix: #596 * open: detailsNotEmpty (#600) * open: detailsNotEmpty * enh: template preview * protable tipping * be: form-design * be: file upload noname * style: better * be: NTEXT \n --------- Co-authored-by: RB <getrebuild@sina.com> * List topnav (#601) * setHidden * enh: THROTTLED_QUEUE * enh: PageTokenVerify 2h * fix: Mix N2N & styles * feat: 表单回填源字段支持二级 * be: showStartGuide * fix: spec label * fix: 图表刻度 * fix: file copy --------- Co-authored-by: devezhao <zhaofang123@gmail.com> * Trigger fa n2n (#602) * style * Update entities-sheet.html * be: N2N in FieldWriteback * feat: fa 目标字段支持 N2N NTEXT * Update trigger.FIELDAGGREGATION.js * be * Update LogFunction.java * be: save tips * transform-design * be: meta-name trim * enh: show import speed * Project view (#603) * relaxed-path-chars * be: style * feat: LiteForm, setNullable, setTip * be: forms include * Update @rbv * style: 断行 * enh: customized * style: dialog footer --------- Co-authored-by: devezhao <zhaofang123@gmail.com> * Excel use refs (#605) * template v33 * be: schema timeout * DataList renderAfter * enh: whenUpdateFields * be: RbAlter hide force * Update @rbv * fix: useValueOfVarRecord --------- Co-authored-by: devezhao <zhaofang123@gmail.com> * import for users (#608) * fix: template v33 * feat: clearFields * be: login btn * enh: 直接打印 * fix: textCommon overflow * be: J_decimalTypeFlag * be: styles & ID * AssertFailedException * be: aviator func * FieldWritebackRefresh * SSS * be: RecordBuilder * classification-editor * Update ClassificationFileImporter.java * be: target record DELETED * Update BarCodeSupport.java * feat: N selected * imports for users * be: barcode w/h * Update DataImportController.java * be: TopNav * open: textCommon * feat: EnableBizzPart * text $separator --------- Co-authored-by: devezhao <zhaofang123@gmail.com> * Better v3.3 (#610) * be: style * 3.3.0-beta1 * be * Update @rbv * Update @rbv * Remove saml deps (#616) * Update @rbv * Update pom.xml * be -p * Remove saml2 & Bump * N details2 (#617) * config * be * fix * __LAB_ * list and view * fix * style * fix * style * forms * 回填 * feat: __ * be: same detail-id * isNoValue * be * Trigger logs (#620) * fix: phvalue * style * be for tip * rm: getEntityType * detaileds * escapeHtml for charts * trigger logs * Update @rbv * Be enable bizz part (#621) * strong EnableBizzPart * isCanView * getCanAccessStatus * Add regCellRender * easyexcel 3.3.2 * Sharefile stroage (#623) * be: sharefile list * feat: P/N date unit * files list * auto_fiilin * logo size * v34 radius 6px --------- Co-authored-by: devezhao <zhaofang123@gmail.com> * Update @rbv * Uf for datavalidate (#624) * Update @rbv * be * Detail view show main (#626) * Update pom.xml * be: force scale of decimal * be * check .detail prefix * @CURRENT USER * trim * Update server-status.html * Form calc use details (#628) * fix: RecycleRestore * fix: task seq * be: reference-search * feat: fillinBackend * be: 单字段修改刷新 * gs style * feat: sendGroupMessage * fix: 明细自定义权限 * be: auto-fillin --------- Co-authored-by: devezhao <zhaofang123@gmail.com> * Be related new check (#630) * New addon check data-filter * Update @rbv * data-key for classifiaction * Update FormsBuilder.java * Stop propagation (#634) * 设为系统用户,否则后续查询会有问题 * feat: stopPropagation * putCreatedBy * feat: tablecellsselection * best error * DU_SECOND * Update @rbv * feat: detailsGlobalRepeat * fix #633 * be: delete snap * Join for ga (#639) * fix #638 * #635 * #632 * be (#641) * getLogbackFile * lang * be: trans * be newpage * mdi7 * close esc * style * repeatFieldsCheckMode * J_moreOpt * disabledViewEditable * fix * currentRoles * execFor * convertHtml * Color (#642) * rbcolors * feat: sort for template * Update entity-edit.js * Detail on btm (#643) * bugfix CombinedRole * style * rbcolor * feat: _showAtBottom * $isLight * fix: approval in template * fix wrapValue * excel template * delete timer * DateNotSync * Be v3.4 (#646) * excel HTML * TempAuth * Update @rbv * fix: shareTo * lang * Update README.md --------- Co-authored-by: devezhao <zhaofang123@gmail.com> --------- Co-authored-by: devezhao <zhaofang123@gmail.com>
2023-08-15 23:25:26 +08:00
$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,
2020-10-16 21:53:44 +08:00
},
}