Skip to content

Commit

Permalink
test(plugin-eslint): fix nx project graph for mocked monorepo
Browse files Browse the repository at this point in the history
Signed-off-by: Vojtech Masek <[email protected]>
  • Loading branch information
vmasek committed Sep 5, 2024
1 parent bf7a22d commit 6e16658
Show file tree
Hide file tree
Showing 7 changed files with 10 additions and 25 deletions.
Original file line number Diff line number Diff line change
@@ -1 +1 @@
.nx/cache
.nx
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,13 @@
"name": "cli",
"sourceRoot": "packages/cli/src",
"projectType": "application",
"implicitDependencies": ["core"],
"targets": {
"lint": {
"executor": "@nx/linter:eslint",
"outputs": ["{options.outputFile}"],
"options": {
"lintFilePatterns": [
"packages/cli/**/*.ts",
"packages/cli/package.json"
]
"lintFilePatterns": ["packages/cli/**/*.ts"]
}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,13 @@
"name": "core",
"sourceRoot": "packages/core/src",
"projectType": "library",
"implicitDependencies": ["utils"],
"targets": {
"lint": {
"executor": "@nx/linter:eslint",
"outputs": ["{options.outputFile}"],
"options": {
"lintFilePatterns": [
"packages/core/**/*.ts",
"packages/core/package.json"
]
"lintFilePatterns": ["packages/core/**/*.ts"]
}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,13 @@
"name": "nx-plugin",
"sourceRoot": "packages/nx-plugin/src",
"projectType": "library",
"implicitDependencies": ["utils"],
"targets": {
"lint": {
"executor": "@nx/linter:eslint",
"outputs": ["{options.outputFile}"],
"options": {
"lintFilePatterns": [
"packages/nx-plugin/**/*.ts",
"packages/nx-plugin/package.json",
"packages/nx-plugin/generators.json"
]
"lintFilePatterns": ["packages/nx-plugin/**/*.ts"]
}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,7 @@
"executor": "@nx/linter:eslint",
"outputs": ["{options.outputFile}"],
"options": {
"lintFilePatterns": [
"packages/utils/**/*.ts",
"packages/utils/package.json"
]
"lintFilePatterns": ["packages/utils/**/*.ts"]
}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@
"emitDecoratorMetadata": true,
"experimentalDecorators": true,
"importHelpers": true,
"target": "es2015",
"target": "ES2022",
"module": "esnext",
"lib": ["es2020", "dom"],
"lib": ["ES2022", "dom"],
"skipLibCheck": true,
"skipDefaultLibCheck": true,
"baseUrl": ".",
Expand Down
5 changes: 0 additions & 5 deletions packages/plugin-eslint/src/lib/nx.integration.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,6 @@ describe('Nx helpers', () => {
eslintrc: './packages/cli/.eslintrc.json',
patterns: [
'packages/cli/**/*.ts',
'packages/cli/package.json',
'packages/cli/src/*.spec.ts',
'packages/cli/src/*.cy.ts',
'packages/cli/src/*.stories.ts',
Expand All @@ -56,7 +55,6 @@ describe('Nx helpers', () => {
eslintrc: './packages/core/.eslintrc.json',
patterns: [
'packages/core/**/*.ts',
'packages/core/package.json',
'packages/core/src/*.spec.ts',
'packages/core/src/*.cy.ts',
'packages/core/src/*.stories.ts',
Expand All @@ -67,8 +65,6 @@ describe('Nx helpers', () => {
eslintrc: './packages/nx-plugin/.eslintrc.json',
patterns: [
'packages/nx-plugin/**/*.ts',
'packages/nx-plugin/package.json',
'packages/nx-plugin/generators.json',
'packages/nx-plugin/src/*.spec.ts',
'packages/nx-plugin/src/*.cy.ts',
'packages/nx-plugin/src/*.stories.ts',
Expand All @@ -79,7 +75,6 @@ describe('Nx helpers', () => {
eslintrc: './packages/utils/.eslintrc.json',
patterns: [
'packages/utils/**/*.ts',
'packages/utils/package.json',
'packages/utils/src/*.spec.ts',
'packages/utils/src/*.cy.ts',
'packages/utils/src/*.stories.ts',
Expand Down

0 comments on commit 6e16658

Please sign in to comment.