.eslintrc.js 602 Bytes
Newer Older
1
const fabric = require('@duanledexian/umi-config');
2

jim's avatar
jim committed
3
module.exports = {
4 5 6
  ...fabric.default,
  rules: {
    ...fabric.default.rules,
jim's avatar
jim committed
7
  },
duanledexianxianxian's avatar
duanledexianxianxian committed
8 9 10 11 12 13 14 15 16 17 18 19
  settings: {
    ...fabric.default.settings,
    // support import modules from TypeScript files in JavaScript files
    'import/resolver': {
      node: { extensions: ['.js', '.ts', '.tsx'] },
      alias: {
        map: [['@', './src'], ['utils', './src/utils'], ['config', './config']],
        extensions: ['.ts', '.js', '.jsx', '.json'],
      },
    },
  },

20
  globals: {
ι™ˆεΈ…'s avatar
ι™ˆεΈ… committed
21
    ANT_DESIGN_PRO_ONLY_DO_NOT_USE_IN_YOUR_PRODUCTION: true,
22
    page: true,
jim's avatar
jim committed
23 24
  },
};