No restricted globals

前端 未结 6 729
梦毁少年i
梦毁少年i 2021-01-30 03:58

I am using React and Redux to develop a webapp and when I started up my project I got this:

Line 13:  Unexpected use of \'location\'  no-restricted-globals

Sear         


        
6条回答
  •  庸人自扰
    2021-01-30 04:02

    This is a simple and maybe not the best solution, but it works.

    On the line above the line you get your error, paste this:

    // eslint-disable-next-line no-restricted-globals

提交回复
热议问题