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

前端 未结 5 1982
野趣味
野趣味 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 20:52

    For typescript eslint users just add this at the end of line you wish to ignore:

    // eslint-disable-line @typescript-eslint/no-unused-vars
    

提交回复
热议问题