Home > front end >  Turnoff a certain warning in VSCode
Turnoff a certain warning in VSCode

Time:01-09

enter image description here

Is there a way to turn off the unused var warning in all of the files React files in Vs Code. ??

CodePudding user response:

This probably has to do with linting, Maybe this can help you no-unused-vars

You can also disable linting on one line

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