From b3dfcdc7ed066469074e96d9ca80b0684d185d82 Mon Sep 17 00:00:00 2001 From: Pawel Wolak Date: Fri, 25 Oct 2019 11:25:30 +0200 Subject: [PATCH] Enable eslint no-console rule except for build directory (#29585) --- .eslintrc.json | 1 + build/.eslintrc.json | 5 ++++- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/.eslintrc.json b/.eslintrc.json index 0f5a079194..2d4d6b16c1 100644 --- a/.eslintrc.json +++ b/.eslintrc.json @@ -28,6 +28,7 @@ "always-multiline" ], "new-cap": "off", + "no-console": "error", "object-curly-spacing": [ "error", "always" diff --git a/build/.eslintrc.json b/build/.eslintrc.json index 8709a8b5b5..08169ca4cc 100644 --- a/build/.eslintrc.json +++ b/build/.eslintrc.json @@ -6,5 +6,8 @@ "parserOptions": { "sourceType": "script" }, - "extends": "../.eslintrc.json" + "extends": "../.eslintrc.json", + "rules": { + "no-console": "off" + } }