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.
Loading...
Related Quiz
- In semantic versioning, what does a change in the 'patch' version (e.g. 1.2.3) typically indicate?
- Which method should be used to handle the rejection of a Promise?
- How does npm handle version conflicts between dependencies and devDependencies?
- You are developing a Node.js library intended to be used as a dependency in other projects. How would you utilize the package.json and package-lock.json files to ensure that the consumers of your library do not face any versioning or dependency conflicts?
- You are building a RESTful API with Express to serve a mobile application. The mobile development team has asked for the ability to retrieve condensed responses to minimize data usage. How would you accommodate this request while maintaining the integrity of your API?