.eslintrc.js 534 B

1234567891011121314151617181920212223242526
  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. parser: '@babel/eslint-parser',
  8. preset: 'web',
  9. packageRoot: __dirname,
  10. parserOptions: {
  11. requireConfigFile: false,
  12. },
  13. rules: {
  14. 'no-console': 'off',
  15. 'react/prop-types': 'off',
  16. },
  17. plugins: ['json'],
  18. extends: ['next', 'next/core-web-vitals'],
  19. settings: {
  20. react: {
  21. version: 'detect',
  22. },
  23. },
  24. });