.eslintrc.js 594 B

123456789101112131415161718192021
  1. module.exports = {
  2. extends: [require.resolve('@umijs/fabric/dist/eslint')],
  3. globals: {
  4. ANT_DESIGN_PRO_ONLY_DO_NOT_USE_IN_YOUR_PRODUCTION: true,
  5. page: true,
  6. REACT_APP_ENV: true,
  7. },
  8. rules: {
  9. // Note: you must disable the base rule as it can report incorrect errors
  10. 'no-unused-expressions': 'off',
  11. '@typescript-eslint/no-unused-expressions': 'off',
  12. '@typescript-eslint/ban-types': 'off',
  13. 'react/no-array-index-key': 'off',
  14. 'no-unused-vars': 'off',
  15. '@typescript-eslint/no-unused-vars': 'off',
  16. '@typescript-eslint/no-this-alias': 'off',
  17. },
  18. }