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

前端 未结 5 1997
野趣味
野趣味 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:14

    If you've got multiple overlapping rules that you want to ignore (e.g. typescript and standard js), you can specify more than one rule to ignore by separating by a comma:

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

提交回复
热议问题