How can I use ESLint no-unused-vars for a block of code?

前端 未结 5 1983
野趣味
野趣味 2021-02-03 20:24

I need to disable some variable checks in ESLint.

Currently, I am using this code, but am not getting the desired result:



        
5条回答
  •  野趣味
    野趣味 (楼主)
    2021-02-03 21:04

    One more option...

    function doStuff({
      // eslint-disable-next-line no-unused-vars
      unused,
      usedA,
      usedB
    }) {
    

提交回复
热议问题