How to set .eslintrc to recognize 'require'?

后端 未结 4 1621
孤独总比滥情好
孤独总比滥情好 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条回答
  •  死守一世寂寞
    2021-02-02 05:39

    "amd":true in env defines require() and define() as global variables as per the amd spec.

    See http://eslint.org/docs/user-guide/configuring#specifying-environments

提交回复
热议问题