Disallow console log in ESLint
Tomastomaslol opened this issue Β· comments
Tomas Nygren commented
π 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?
Tomas Nygren commented
Woops opened the issue in the wrong repository closing in favour of HospitalRun/hospitalrun-frontend#2307