UNPKG

310 BJavaScriptView Raw
1try {
2 require.resolve('@umijs/lint/package.json');
3} catch (err) {
4 throw new Error('@umijs/lint is not built-in, please install it manually before run umi lint.');
5}
6
7module.exports = process.env.LEGACY_ESLINT ? require('@umijs/lint/dist/config/eslint/legacy') : require('@umijs/lint/dist/config/eslint');