.eslintrc.js 435 Bytes
Newer Older
陈帅's avatar
陈帅 committed
1 2
const fabric = require('@umijs/fabric');

jim's avatar
jim committed
3
module.exports = {
陈帅's avatar
陈帅 committed
4 5 6
  ...fabric.default,
  rules: {
    ...fabric.default.rules,
duanledexianxianxian's avatar
duanledexianxianxian committed
7 8 9 10 11 12 13
    'import/no-extraneous-dependencies': [
      2,
      {
        optionalDependencies: true,
        devDependencies: ['**/tests/**.js', '/mock/**/**.js', '**/**.test.js', '**/**._mock.js'],
      },
    ],
jim's avatar
jim committed
14
  },
15
  globals: {
陈帅's avatar
陈帅 committed
16
    ANT_DESIGN_PRO_ONLY_DO_NOT_USE_IN_YOUR_PRODUCTION: true,
陈帅's avatar
陈帅 committed
17
    page: true,
jim's avatar
jim committed
18 19
  },
};