加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
.eslintrc.js 2.70 KB
一键复制 编辑 原始数据 按行查看 历史
REBUILD 企业管理系统 提交于 2023-08-24 14:49 . Fix v3.4-beta2 (#650)
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,
$cleanMenu: true,
$cleanMap: true,
$pages: true,
$same: true,
$is: true,
$unmount: true,
$initReferenceSelect2: true,
$keepModalOpen: true,
renderRbcomp: 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,
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,
$emptyNum: 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,
},
}
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化