2
0

eslint.config.js 614 B

12345678910111213141516171819202122232425
  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. ignore: ['eslint.config.js', 'src/editor/plugins/context-menu-plugin/context-menu-layer.tsx'],
  10. rules: {
  11. 'no-console': 'off',
  12. 'react/prop-types': 'off',
  13. 'react-hooks/exhaustive-deps': 'off',
  14. '@next/next/no-img-element': 'off',
  15. 'jsx-a11y/alt-text': 'off',
  16. },
  17. plugins: [],
  18. settings: {
  19. react: {
  20. version: 'detect',
  21. },
  22. },
  23. });