From c0c90ff168b2d196ed24d9096b041b6a8694a3cf Mon Sep 17 00:00:00 2001 From: Maha Zaid Date: Sun, 12 Apr 2020 11:53:16 +0200 Subject: [PATCH] feat: add no-console rule (#32) BREAKING CHANGE: If your code used to have `console` statements, now eslint will hate it. --- package.json | 4 ++++ rules/best-practices.js | 2 ++ 2 files changed, 6 insertions(+) diff --git a/package.json b/package.json index 53b6659..f66ec0e 100644 --- a/package.json +++ b/package.json @@ -28,6 +28,10 @@ { "name": "Abdelrahman Elkady ", "email": "abdelrahman.elkady@crowdanalyzer.com" + }, + { + "name": "Maha Zaid ", + "email": "maha.raafat@crowdanalyzer.com" } ], "main": "./index", diff --git a/rules/best-practices.js b/rules/best-practices.js index b5961cb..87cd66d 100644 --- a/rules/best-practices.js +++ b/rules/best-practices.js @@ -43,5 +43,7 @@ module.exports = { // disallow redundant `return await` statements 'no-return-await': 'error', + // disallows calls to methods of the console object + 'no-console': 'error', }, };