eslint.config.js 474 B

1234567891011121314151617181920212223242526
  1. /**
  2. * Copyright (c) 2025 Bytedance Ltd. and/or its affiliates
  3. * SPDX-License-Identifier: MIT
  4. */
  5. const path = require('path');
  6. const { main } = require('./package.json');
  7. const { defineFlatConfig } = require(path.resolve(__dirname, main));
  8. module.exports = defineFlatConfig({
  9. packageRoot: __dirname,
  10. preset: 'node',
  11. settings: {
  12. react: {
  13. version: 'detect',
  14. },
  15. },
  16. ignore: [
  17. 'node_modules',
  18. 'dist',
  19. 'package.json',
  20. '.rush'
  21. ]
  22. });