module.exports = {
  parser: 'babel-eslint',
  extends: [require.resolve('@umijs/fabric/dist/eslint')],
  globals: {
    ANT_DESIGN_PRO_ONLY_DO_NOT_USE_IN_YOUR_PRODUCTION: true,
    page: true,
  },
  rules: {
    'max-len': ['error', { code: 200 }],
    'no-param-reassign': 0,
    'no-console': 0,
    'no-plusplus': ['off'],
    '@typescript-eslint/camelcase': ['off'],
    '@typescript-eslint/no-unused-vars': ['off'],
    'import/no-unresolved': 0,
    'import/extensions': 0,
    'no-unused-expressions': ['error', { allowShortCircuit: true }],
  },
};
