.eslintrc.js 722 B

1234567891011121314151617181920212223242526272829303132
  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. babelOptions: {
  13. presets: [require.resolve('next/babel')],
  14. },
  15. },
  16. rules: {
  17. 'no-console': 'off',
  18. 'react/prop-types': 'off',
  19. 'react-hooks/exhaustive-deps': 'off',
  20. '@next/next/no-img-element': 'off',
  21. 'jsx-a11y/alt-text': 'off'
  22. },
  23. plugins: ['json'],
  24. extends: ['next', 'next/core-web-vitals'],
  25. settings: {
  26. react: {
  27. version: 'detect',
  28. },
  29. },
  30. });