• 这笔修改体现了 env 和 global 的关系:

https://github.com/g8up/youDaoDict/commit/8b05616f

 

  • 官方文档表述:

https://eslint.org/docs/user-guide/configuring

    • Environments - which environments your script is designed to run in. Each environment brings with it a certain set of predefined global variables.
    • Globals - the additional global variables your script accesses during execution.
posted on 2018-10-11 17:16  死宅程序员  阅读(1647)  评论(0编辑  收藏  举报