.eslintrc.js 424 B

123456789101112131415161718
  1. module.exports = {
  2. extends: [require.resolve('@umijs/fabric/dist/eslint')],
  3. parserOptions: {
  4. tsconfigRootDir: __dirname,
  5. project: './tsconfig.json',
  6. createDefaultProgram: false,
  7. },
  8. globals: {
  9. ANT_DESIGN_PRO_ONLY_DO_NOT_USE_IN_YOUR_PRODUCTION: true,
  10. page: true,
  11. REACT_APP_ENV: true,
  12. API_GRAPHQL_URL: true,
  13. },
  14. rules: {
  15. 'import/order': 'error',
  16. 'no-restricted-syntax': 0,
  17. },
  18. }