Skip to content

Commit

Permalink
fix(nx): exclude node_modules from linter
Browse files Browse the repository at this point in the history
  • Loading branch information
EtienneDOYON committed Nov 15, 2023
1 parent e4896e1 commit d63ff27
Show file tree
Hide file tree
Showing 11 changed files with 22 additions and 11 deletions.
3 changes: 2 additions & 1 deletion apps/demo-e2e/project.json
Original file line number Diff line number Diff line change
Expand Up @@ -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/**"]
}
}
},
Expand Down
3 changes: 2 additions & 1 deletion apps/demo/project.json
Original file line number Diff line number Diff line change
Expand Up @@ -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": {
Expand Down
3 changes: 2 additions & 1 deletion apps/docsite-e2e/project.json
Original file line number Diff line number Diff line change
Expand Up @@ -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/**"]
}
}
},
Expand Down
3 changes: 2 additions & 1 deletion apps/docsite/project.json
Original file line number Diff line number Diff line change
Expand Up @@ -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/**"]
}
}
},
Expand Down
3 changes: 2 additions & 1 deletion libs/examples/birthdate/project.json
Original file line number Diff line number Diff line change
Expand Up @@ -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": {
Expand Down
3 changes: 2 additions & 1 deletion libs/examples/styled-inputs/project.json
Original file line number Diff line number Diff line change
Expand Up @@ -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": {
Expand Down
3 changes: 2 additions & 1 deletion libs/form-builder/project.json
Original file line number Diff line number Diff line change
Expand Up @@ -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": {
Expand Down
3 changes: 2 additions & 1 deletion libs/form-context/project.json
Original file line number Diff line number Diff line change
Expand Up @@ -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": {
Expand Down
3 changes: 2 additions & 1 deletion libs/form-editor/project.json
Original file line number Diff line number Diff line change
Expand Up @@ -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": {
Expand Down
3 changes: 2 additions & 1 deletion libs/form-redux/project.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@
"lint": {
"executor": "@nrwl/linter:eslint",
"options": {
"lintFilePatterns": ["libs/form-redux/**/*.ts"]
"lintFilePatterns": ["libs/form-redux/**/*.ts"],
"exclude": ["**/node_modules/**"]
}
},
"test": {
Expand Down
3 changes: 2 additions & 1 deletion libs/form-validation-rule-list/project.json
Original file line number Diff line number Diff line change
Expand Up @@ -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": {
Expand Down

0 comments on commit d63ff27

Please sign in to comment.