const fabric = require('@umijs/fabric'); module.exports = { ...fabric.default, rules: { ...fabric.default.rules, 'import/no-extraneous-dependencies': [ 2, { optionalDependencies: true, devDependencies: ['**/tests/**.js', '/mock/**/**.js', '**/**.test.js', '**/**._mock.js'], }, ], 'import/no-named-as-default': 0, }, 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'], }, }, }, globals: { ANT_DESIGN_PRO_ONLY_DO_NOT_USE_IN_YOUR_PRODUCTION: true, page: true, }, };