From d63ff27453a8b9da1c42dc30c20420fbf408fcfb Mon Sep 17 00:00:00 2001 From: etienne-doyon Date: Wed, 15 Nov 2023 17:38:02 +0100 Subject: [PATCH] fix(nx): exclude node_modules from linter --- apps/demo-e2e/project.json | 3 ++- apps/demo/project.json | 3 ++- apps/docsite-e2e/project.json | 3 ++- apps/docsite/project.json | 3 ++- libs/examples/birthdate/project.json | 3 ++- libs/examples/styled-inputs/project.json | 3 ++- libs/form-builder/project.json | 3 ++- libs/form-context/project.json | 3 ++- libs/form-editor/project.json | 3 ++- libs/form-redux/project.json | 3 ++- libs/form-validation-rule-list/project.json | 3 ++- 11 files changed, 22 insertions(+), 11 deletions(-) diff --git a/apps/demo-e2e/project.json b/apps/demo-e2e/project.json index baf7495..67808e6 100644 --- a/apps/demo-e2e/project.json +++ b/apps/demo-e2e/project.json @@ -19,7 +19,8 @@ "lint": { "executor": "@nrwl/linter:eslint", "options": { - "lintFilePatterns": ["apps/demo-e2e/**/*.{js,ts}"] + "lintFilePatterns": ["apps/demo-e2e/**/*.{js,ts}"], + "exclude": ["**/node_modules/**"] } } }, diff --git a/apps/demo/project.json b/apps/demo/project.json index 5f9c3c1..115bc63 100644 --- a/apps/demo/project.json +++ b/apps/demo/project.json @@ -58,7 +58,8 @@ "lint": { "executor": "@nrwl/linter:eslint", "options": { - "lintFilePatterns": ["apps/demo/**/*.{ts,tsx,js,jsx}"] + "lintFilePatterns": ["apps/demo/**/*.{ts,tsx,js,jsx}"], + "exclude": ["**/node_modules/**"] } }, "test": { diff --git a/apps/docsite-e2e/project.json b/apps/docsite-e2e/project.json index b94d019..441782e 100644 --- a/apps/docsite-e2e/project.json +++ b/apps/docsite-e2e/project.json @@ -19,7 +19,8 @@ "lint": { "executor": "@nrwl/linter:eslint", "options": { - "lintFilePatterns": ["apps/docsite-e2e/**/*.{js,ts}"] + "lintFilePatterns": ["apps/docsite-e2e/**/*.{js,ts}"], + "exclude": ["**/node_modules/**"] } } }, diff --git a/apps/docsite/project.json b/apps/docsite/project.json index 56fe601..d83197a 100644 --- a/apps/docsite/project.json +++ b/apps/docsite/project.json @@ -18,7 +18,8 @@ "lint": { "executor": "@nrwl/linter:eslint", "options": { - "lintFilePatterns": ["apps/docsite/**/*.{ts,tsx,js,jsx}"] + "lintFilePatterns": ["apps/docsite/**/*.{ts,tsx,js,jsx}"], + "exclude": ["**/node_modules/**"] } } }, diff --git a/libs/examples/birthdate/project.json b/libs/examples/birthdate/project.json index 1ad6714..73796fd 100644 --- a/libs/examples/birthdate/project.json +++ b/libs/examples/birthdate/project.json @@ -6,7 +6,8 @@ "lint": { "executor": "@nrwl/linter:eslint", "options": { - "lintFilePatterns": ["libs/examples/birthdate/**/*.{ts,tsx,js,jsx}"] + "lintFilePatterns": ["libs/examples/birthdate/**/*.{ts,tsx,js,jsx}"], + "exclude": ["**/node_modules/**"] } }, "test": { diff --git a/libs/examples/styled-inputs/project.json b/libs/examples/styled-inputs/project.json index 01f43d0..d0df930 100644 --- a/libs/examples/styled-inputs/project.json +++ b/libs/examples/styled-inputs/project.json @@ -6,7 +6,8 @@ "lint": { "executor": "@nrwl/linter:eslint", "options": { - "lintFilePatterns": ["libs/examples/styled-inputs/**/*.{ts,tsx,js,jsx}"] + "lintFilePatterns": ["libs/examples/styled-inputs/**/*.{ts,tsx,js,jsx}"], + "exclude": ["**/node_modules/**"] } }, "test": { diff --git a/libs/form-builder/project.json b/libs/form-builder/project.json index 80909a2..4a11004 100644 --- a/libs/form-builder/project.json +++ b/libs/form-builder/project.json @@ -25,7 +25,8 @@ "lint": { "executor": "@nrwl/linter:eslint", "options": { - "lintFilePatterns": ["libs/form-builder/**/*.{ts,tsx,js,jsx}"] + "lintFilePatterns": ["libs/form-builder/**/*.{ts,tsx,js,jsx}"], + "exclude": ["**/node_modules/**"] } }, "test": { diff --git a/libs/form-context/project.json b/libs/form-context/project.json index f8735ea..b44d87b 100644 --- a/libs/form-context/project.json +++ b/libs/form-context/project.json @@ -26,7 +26,8 @@ "executor": "@nrwl/linter:eslint", "outputs": ["{options.outputFile}"], "options": { - "lintFilePatterns": ["libs/form-context/**/*.{ts,tsx,js,jsx}"] + "lintFilePatterns": ["libs/form-context/**/*.{ts,tsx,js,jsx}"], + "exclude": ["**/node_modules/**"] } }, "test": { diff --git a/libs/form-editor/project.json b/libs/form-editor/project.json index 562e2f7..e5a0966 100644 --- a/libs/form-editor/project.json +++ b/libs/form-editor/project.json @@ -25,7 +25,8 @@ "lint": { "executor": "@nrwl/linter:eslint", "options": { - "lintFilePatterns": ["libs/form-editor/**/*.{ts,tsx,js,jsx}"] + "lintFilePatterns": ["libs/form-editor/**/*.{ts,tsx,js,jsx}"], + "exclude": ["**/node_modules/**"] } }, "test": { diff --git a/libs/form-redux/project.json b/libs/form-redux/project.json index 96c8315..0c39139 100644 --- a/libs/form-redux/project.json +++ b/libs/form-redux/project.json @@ -6,7 +6,8 @@ "lint": { "executor": "@nrwl/linter:eslint", "options": { - "lintFilePatterns": ["libs/form-redux/**/*.ts"] + "lintFilePatterns": ["libs/form-redux/**/*.ts"], + "exclude": ["**/node_modules/**"] } }, "test": { diff --git a/libs/form-validation-rule-list/project.json b/libs/form-validation-rule-list/project.json index bd1422b..e7aa130 100644 --- a/libs/form-validation-rule-list/project.json +++ b/libs/form-validation-rule-list/project.json @@ -25,7 +25,8 @@ "lint": { "executor": "@nrwl/linter:eslint", "options": { - "lintFilePatterns": ["libs/form-validation-rule-list/**/*.{ts,tsx,js,jsx}"] + "lintFilePatterns": ["libs/form-validation-rule-list/**/*.{ts,tsx,js,jsx}"], + "exclude": ["**/node_modules/**"] } }, "test": {