From 1c9291932a433b98550f22548ab93fd46e90d387 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C5=82=20Dro=C5=84?= Date: Thu, 6 Jul 2023 14:37:22 +0200 Subject: [PATCH] Enable `no-console` ESLint rule (#3871) * Enable no-console * Lint files * Add changeset --- .changeset/red-dogs-occur.md | 5 +++++ .eslintrc.json | 6 ++++++ 2 files changed, 11 insertions(+) create mode 100644 .changeset/red-dogs-occur.md diff --git a/.changeset/red-dogs-occur.md b/.changeset/red-dogs-occur.md new file mode 100644 index 000000000..a9705bede --- /dev/null +++ b/.changeset/red-dogs-occur.md @@ -0,0 +1,5 @@ +--- +"saleor-dashboard": patch +--- + +Enable no-console ESLint rule diff --git a/.eslintrc.json b/.eslintrc.json index dcd00fe07..cf8fa459f 100644 --- a/.eslintrc.json +++ b/.eslintrc.json @@ -61,6 +61,12 @@ "paths": ["lodash", "@material-ui/icons/Delete", "classnames"] } ], + "no-console": [ + "error", + { + "allow": ["warn", "error"] + } + ], // These rules should be reviewed - tracked in // Tracked in https://github.com/saleor/saleor-dashboard/issues/3813 "@typescript-eslint/consistent-type-imports": "off",