【问题标题】:Turnoff a certain warning in VSCode关闭 VSCode 中的某个警告
【发布时间】:2022-01-07 14:30:46
【问题描述】:

有没有办法关闭 Vs Code 中所有文件 React 文件中未使用的 var 警告。 ??

【问题讨论】:

    标签: reactjs visual-studio-code


    【解决方案1】:

    这可能与linting有关,也许这可以帮助你no-unused-vars

    您也可以在一行中禁用 linting

    // eslint-disable-next-line no-unused-vars
    const [edit, setEdit] = useState({...})
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2020-10-03
      • 2018-08-26
      • 2015-05-19
      • 2011-04-05
      • 2023-03-09
      • 1970-01-01
      相关资源
      最近更新 更多