.eslintrc.cjs 578 B

1234567891011121314151617181920212223242526272829
  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: '@typescript-eslint/parser',
  8. preset: 'node',
  9. packageRoot: __dirname,
  10. parserOptions: {
  11. requireConfigFile: false,
  12. ecmaVersion: 2017,
  13. sourceType: "module",
  14. ecmaFeatures: {
  15. modules: true,
  16. }
  17. },
  18. rules: {
  19. 'no-console': 'off',
  20. },
  21. plugins: ['json', '@typescript-eslint'],
  22. settings: {
  23. react: {
  24. version: '18',
  25. },
  26. },
  27. });