eslint.config.js 517 B

123456789101112131415161718192021
  1. /**
  2. * Copyright (c) 2025 Bytedance Ltd. and/or its affiliates
  3. * SPDX-License-Identifier: MIT
  4. */
  5. const { defineFlatConfig } = require('@flowgram.ai/eslint-config');
  6. module.exports = defineFlatConfig({
  7. preset: 'web',
  8. packageRoot: __dirname,
  9. rules: {
  10. 'no-restricted-syntax': [
  11. 'error',
  12. {
  13. selector: 'ExportAllDeclaration',
  14. message:
  15. 'Do not re-export everything from another modules, you should explicitly specify the members to be exported.',
  16. },
  17. ],
  18. },
  19. });