From 46bd9e5eb44fde7f12c7686a0bee5d3e7d557e14 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Leosvel=20P=C3=A9rez=20Espinosa?= Date: Thu, 17 Apr 2025 13:59:45 +0200 Subject: [PATCH] chore(nx-dev): ignore the `public` directory in the eslint configuration (#30770) ## Current Behavior The `nx-dev:lint` task is processing the `public` directory. That directory is meant to contain assets that ESLint shouldn't process. It results in extra time being spent linting the project, and it could result in some errors due to linting some generated output that's copied there (e.g. `documentation` and `tutorials` directories). ## Expected Behavior The `nx-dev:lint` task should not process the `public` directory. ## Related Issue(s) Fixes # --- nx-dev/nx-dev/.eslintrc.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nx-dev/nx-dev/.eslintrc.json b/nx-dev/nx-dev/.eslintrc.json index dd5ddc5316..0a7f2c987e 100644 --- a/nx-dev/nx-dev/.eslintrc.json +++ b/nx-dev/nx-dev/.eslintrc.json @@ -1,4 +1,4 @@ { "extends": ["plugin:@nx/react", "../../.eslintrc.json"], - "ignorePatterns": ["!**/*", "**/.next"] + "ignorePatterns": ["!**/*", "**/.next", "public"] }