From 83fc0ed050076663c5e88641369f6e456b9550f2 Mon Sep 17 00:00:00 2001 From: Mohamed Sameem <42725415+sameemcodes@users.noreply.github.com> Date: Mon, 23 Oct 2023 22:57:30 -0700 Subject: [PATCH] Override Rules to disabled react changes .eslintrc.js --- .eslintrc.js | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/.eslintrc.js b/.eslintrc.js index f842b51f..7241a675 100644 --- a/.eslintrc.js +++ b/.eslintrc.js @@ -24,5 +24,16 @@ module.exports = { 'no-undef': 'off', 'no-console': [process.env.CI ? 'error' : 'warn', { allow: ['warn', 'error', 'info'] }], 'prettier/prettier': 'error' - } + }, + overrides: [ + { + files: ["**/*.js"], + options: { + rules: { + // Disable the rule that treats warnings as errors + "react-scripts/treat-warnings-as-errors": "off", + }, + }, + }, + ] }