HospitalRun / hospitalrun

Monorepo that holds all of HospitalRun's v2 projects.

Home Page:https://hospitalrun.io

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Disallow console log in ESLint

Tomastomaslol opened this issue Β· comments

πŸ› 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?

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