在.eslintrc.js的rules中添加一条规则

rules: {
    "no-use-before-define": 'off',
    "@typescript-eslint/no-use-before-define": ["error"]
}

相关文章:

  • 2021-09-25
  • 2022-12-23
  • 2021-10-22
  • 2022-01-05
  • 2021-08-05
猜你喜欢
  • 2021-09-16
  • 2021-10-12
  • 2022-12-23
  • 2022-12-23
  • 2022-02-13
  • 2022-12-23
相关资源
相似解决方案