.eslintrc.js 481 B

1234567891011121314151617181920
  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-restricted-syntax': [
  11. 'warn',
  12. {
  13. selector: "CallExpression[callee.property.name='waitForTimeout']",
  14. message: 'Consider using waitForFunction instead of waitForTimeout.',
  15. },
  16. ],
  17. },
  18. });