.eslintrc.js 493 B

123456789101112131415161718192021
  1. /**
  2. * Copyright (c) 2025 Bytedance Ltd. and/or its affiliates
  3. * SPDX-License-Identifier: MIT
  4. */
  5. const { defineConfig } = require('@flowgram.ai/eslint-config');
  6. module.exports = defineConfig({
  7. preset: 'web',
  8. packageRoot: __dirname,
  9. rules: {
  10. 'no-console': 'off',
  11. 'react/prop-types': 'off',
  12. 'react/no-deprecated': 'off',
  13. },
  14. settings: {
  15. react: {
  16. version: '16.8.6', // React version. "detect" automatically picks the version you have installed.
  17. },
  18. },
  19. });