Definition for rule 'react-hooks/exhaustive-deps' was not found

后端 未结 4 738
盖世英雄少女心
盖世英雄少女心 2021-02-18 19:00

I am getting the following eslint error after adding // eslint-disable-next-line react-hooks/exhaustive-deps in my code.

8:14 error Definit

4条回答
  •  失恋的感觉
    2021-02-18 19:10

    Make sure you define your react-hooks both in extends and plugins array like this

    "extends": [
        "react-hooks",
      ],
      "plugins": [
        "react-hooks"
      ],
    

提交回复
热议问题