From bec8eac72d7017faa89ec5f31ac171b643e8d26b Mon Sep 17 00:00:00 2001 From: pwolaq Date: Thu, 24 Oct 2019 23:22:12 +0200 Subject: [PATCH 1/2] Enable eslint no-console rule except for build directory --- .eslintrc.json | 1 + build/.eslintrc.json | 5 ++++- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/.eslintrc.json b/.eslintrc.json index 0f5a079194a8..ad0c2aab83bd 100644 --- a/.eslintrc.json +++ b/.eslintrc.json @@ -9,6 +9,7 @@ "xo/browser" ], "rules": { + "no-console": "error", "capitalized-comments": "off", "function-call-argument-newline": "off", "indent": [ diff --git a/build/.eslintrc.json b/build/.eslintrc.json index 8709a8b5b5e6..08169ca4cca8 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" + } } From 3ebac9cfa62ccdf28817463be95780eef497e078 Mon Sep 17 00:00:00 2001 From: XhmikosR Date: Fri, 25 Oct 2019 12:18:27 +0300 Subject: [PATCH 2/2] Update .eslintrc.json --- .eslintrc.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.eslintrc.json b/.eslintrc.json index ad0c2aab83bd..2d4d6b16c160 100644 --- a/.eslintrc.json +++ b/.eslintrc.json @@ -9,7 +9,6 @@ "xo/browser" ], "rules": { - "no-console": "error", "capitalized-comments": "off", "function-call-argument-newline": "off", "indent": [ @@ -29,6 +28,7 @@ "always-multiline" ], "new-cap": "off", + "no-console": "error", "object-curly-spacing": [ "error", "always"