Skip to content
This repository has been archived by the owner on Jan 9, 2023. It is now read-only.

Disallow console log in ESLint #423

Closed
Tomastomaslol opened this issue Aug 15, 2020 · 1 comment
Closed

Disallow console log in ESLint #423

Tomastomaslol opened this issue Aug 15, 2020 · 1 comment

Comments

@Tomastomaslol
Copy link

🐛 Bug Report

As a followup to HospitalRun/hospitalrun-frontend#2286 I thought it might be desirable to not allow any log messages in the application using a ESlint rule https://eslint.org/docs/rules/no-console

Proposed changes

  • Remove any console call from the application
  • Add a rule in the ESLint config that would make the linter fail if there a console call in the application

Is there any good reason why console logs should be kept in the application?

@Tomastomaslol
Copy link
Author

Woops opened the issue in the wrong repository closing in favour of HospitalRun/hospitalrun-frontend#2307

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant