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,
    $multipleUploader: true,
    $cleanMenu: true,
    $cleanMap: true,
    $pages: true,
    $same: true,
    $is: true,
    $unmount: true,
    $initReferenceSelect2: true,
    $keepModalOpen: true,
    renderRbcomp: true,
    renderRbcomp18: true,
    renderDlgcomp: 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,
    FileShow: 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,
    $fromNow: true,
    $toNow: true,
    $L: true,
    $isTrue: true,
    $fieldIsCompatible: true,
    $unhideDropdown: true,
    RecordSelector: true,
    AnyRecordSelector: true,
    ReferenceSearcher: 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,
    $formattedCode: true,
    CodeViewport: true,
    $clipboard: true,
    $clipboard2: 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,
    $clearSelection: true,
    DlgTransform: true,
    $select2OpenTemplateResult: true,
    $env: true,
    $dropdownMenuSearch: true,
    $formatNumber: true,
    $logRBAPI: true,
    Md2Html: true,
    marked: true,
    $focus2End: true,
    RecordSelectorModal: true,
    $fetchMetaInfo: true,
    FileRename: true,
    $syncGet: true,
  },
}
