eslint.config.js 473 B

1234567891011121314151617181920212223
  1. /**
  2. * Copyright (c) 2025 Bytedance Ltd. and/or its affiliates
  3. * SPDX-License-Identifier: MIT
  4. */
  5. import { defineFlatConfig } from '@flowgram.ai/eslint-config';
  6. import path from 'path';
  7. import { fileURLToPath } from 'url';
  8. const __dirname = path.dirname(fileURLToPath(import.meta.url));
  9. export default defineFlatConfig({
  10. preset: 'web',
  11. packageRoot: __dirname,
  12. rules: {
  13. 'no-console': 'off',
  14. },
  15. settings: {
  16. react: {
  17. version: '18',
  18. },
  19. },
  20. });