How to set .eslintrc to recognize 'require'?

后端 未结 4 1667
孤独总比滥情好
孤独总比滥情好 2021-02-02 05:02

I am new to ESLint, and I have successfully integrated ESLint with IntelliJ.

Out of the box, my integration of ESLint did not recognize node, but basic revi

4条回答
  •  萌比男神i
    2021-02-02 05:31

    Adding amd to env inside .eslintrc will enable you to use define() and require(), as per the amd spec:

    {
      "env": {
        "amd": true
      }
    }
    

提交回复
热议问题