From c8140f9641307089c943eef1ef73a99453aa0d78 Mon Sep 17 00:00:00 2001 From: Alasdair Smith Date: Fri, 9 Aug 2019 10:39:26 +0100 Subject: [PATCH] Merge pull request #2059 from overleaf/spd-no-console Don't allow 'console.log' in backend code GitOrigin-RevId: f52413b574487eef54e8bd27cc61d15a011beb6f --- services/web/.eslintrc | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/services/web/.eslintrc b/services/web/.eslintrc index e9d930b375..0d5c9a1f85 100644 --- a/services/web/.eslintrc +++ b/services/web/.eslintrc @@ -78,6 +78,13 @@ // based on mocha's context mechanism "mocha/prefer-arrow-callback": "error" } + }, + { + // don't allow console.log in backend code + "files": ["**/app/*/src/**/*.js"], + "rules": { + "no-console": "error" + } } ] }