How can you integrate ESLint with a continuous integration (CI) service to ensure code quality?
- Run ESLint manually before each commit
- Add an ESLint script in package.json and run it in CI pipelines
- Create a separate ESLint CI service
- ESLint doesn't integrate with CI services
Integrating ESLint with CI services involves adding an ESLint script in package.json and running it in CI pipelines. This ensures that code quality checks are automated during the CI/CD process. The other options do not describe a recommended way to integrate ESLint with CI.
Loading...
Related Quiz
- Which of the following ESLint rules enforces consistent indentation in your code?
- To avoid cross-site scripting (XSS) attacks, EJS escapes any JavaScript code included within the ______ tags by default.
- Which of the following strategies can be used to efficiently serve static assets and optimize performance?
- To handle uncaught exceptions in a Node.js application, you can use process.on('______', callback).
- What happens to the Event Loop when the callback queue and the task queue are both not empty?