In ESLint, the ______ property in the configuration file can be used to define global variables.

  • Globals
  • Environment
  • Globals
  • Rules
In ESLint, the globals property in the configuration file is used to define global variables that are accessible throughout your code without triggering linting errors. This allows you to specify variables that are declared externally or provided by the environment. The environment option is used to specify which environments your code runs in, but it's not used to define individual global variables. The rules property is used for configuring ESLint rules.
Add your answer
Loading...

Leave a comment

Your email address will not be published. Required fields are marked *