eslint 的 env 配置是干嘛使的?

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

[恰饭]教程推荐:

不会 js 断点调试?看这里, 一碗面的成本,掌握知识和姿势~


原文地址:https://www.cnblogs.com/duxing/p/9773676.html