Which of the following ESLint rules enforces consistent indentation in your code?
- no-console
- indent
- semi
- no-unused-vars
The indent rule in ESLint enforces consistent indentation in your code. It helps ensure that your code is properly formatted and readable by specifying the expected indentation style. The other options are for different rules, such as preventing the use of console, enforcing semicolons, or catching unused variables.
Loading...
Related Quiz
- How does the try...catch statement work in asynchronous operations in Node.js?
- In Node.js, how can data be written to a writable stream?
- ________ is a security practice that involves encoding information so that only authorized parties can access it.
- When an error occurs in Node.js, the error object is typically an instance of __________.
- Which of the following is the correct syntax for destructuring an array in JavaScript?