module.exports = { parser: '@typescript-eslint/parser', parserOptions: { project: 'tsconfig.json', sourceType: 'module', }, extends: [ require.resolve('@umijs/fabric/dist/eslint'), 'plugin:prettier/recommended', ], ignorePatterns: ['.eslintrc.js'], rules: { '@typescript-eslint/no-unused-vars':'warn', '@typescript-eslint/interface-name-prefix': 'off', '@typescript-eslint/explicit-function-return-type': 'off', '@typescript-eslint/explicit-module-boundary-types': 'off', '@typescript-eslint/no-explicit-any': 'warn', '@typescript-eslint/no-use-before-define':'off', '@typescript-eslint/no-shadow':'off' }, globals: { ANT_DESIGN_PRO_ONLY_DO_NOT_USE_IN_YOUR_PRODUCTION: true, page: true, REACT_APP_ENV: true, }, };