diff --git a/app/client/.eslintrc.base.json b/app/client/.eslintrc.base.json index 6826984d32..c141e3bf46 100644 --- a/app/client/.eslintrc.base.json +++ b/app/client/.eslintrc.base.json @@ -53,8 +53,8 @@ "error", { "caseSensitive": false } ], - "no-console": "warn", - "no-debugger": "warn", + "no-console": "error", + "no-debugger": "error", "@typescript-eslint/no-restricted-imports": [ "error", { diff --git a/app/client/build.sh b/app/client/build.sh index 4df23bc8fb..b15fd524c3 100755 --- a/app/client/build.sh +++ b/app/client/build.sh @@ -18,6 +18,8 @@ fi # build cra app export REACT_APP_SENTRY_RELEASE=$GIT_SHA export REACT_APP_CLIENT_LOG_LEVEL=ERROR +# Disable CRA built-in ESLint checks since we have our own config and a separate step for this +export DISABLE_ESLINT_PLUGIN=true craco --max-old-space-size=7168 build --config craco.build.config.js if [ "$GITHUB_REPOSITORY" == "appsmithorg/appsmith-ee" ]; then