- 这笔修改体现了 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.