Skip to content

Commit f30595f

Browse files
committed
test(plugin-eslint): fix nx project graph for mocked monorepo
Signed-off-by: Vojtech Masek <[email protected]>
1 parent bf7a22d commit f30595f

File tree

6 files changed

+10
-20
lines changed

6 files changed

+10
-20
lines changed
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
.nx/cache
1+
.nx

Diff for: packages/plugin-eslint/mocks/fixtures/nx-monorepo/packages/cli/project.json

+2-4
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,13 @@
22
"name": "cli",
33
"sourceRoot": "packages/cli/src",
44
"projectType": "application",
5+
"implicitDependencies": ["core"],
56
"targets": {
67
"lint": {
78
"executor": "@nx/linter:eslint",
89
"outputs": ["{options.outputFile}"],
910
"options": {
10-
"lintFilePatterns": [
11-
"packages/cli/**/*.ts",
12-
"packages/cli/package.json"
13-
]
11+
"lintFilePatterns": ["packages/cli/**/*.ts"]
1412
}
1513
}
1614
}

Diff for: packages/plugin-eslint/mocks/fixtures/nx-monorepo/packages/core/project.json

+2-4
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,13 @@
22
"name": "core",
33
"sourceRoot": "packages/core/src",
44
"projectType": "library",
5+
"implicitDependencies": ["utils"],
56
"targets": {
67
"lint": {
78
"executor": "@nx/linter:eslint",
89
"outputs": ["{options.outputFile}"],
910
"options": {
10-
"lintFilePatterns": [
11-
"packages/core/**/*.ts",
12-
"packages/core/package.json"
13-
]
11+
"lintFilePatterns": ["packages/core/**/*.ts"]
1412
}
1513
}
1614
}

Diff for: packages/plugin-eslint/mocks/fixtures/nx-monorepo/packages/nx-plugin/project.json

+2-5
Original file line numberDiff line numberDiff line change
@@ -2,16 +2,13 @@
22
"name": "nx-plugin",
33
"sourceRoot": "packages/nx-plugin/src",
44
"projectType": "library",
5+
"implicitDependencies": ["utils"],
56
"targets": {
67
"lint": {
78
"executor": "@nx/linter:eslint",
89
"outputs": ["{options.outputFile}"],
910
"options": {
10-
"lintFilePatterns": [
11-
"packages/nx-plugin/**/*.ts",
12-
"packages/nx-plugin/package.json",
13-
"packages/nx-plugin/generators.json"
14-
]
11+
"lintFilePatterns": ["packages/nx-plugin/**/*.ts"]
1512
}
1613
}
1714
}

Diff for: packages/plugin-eslint/mocks/fixtures/nx-monorepo/packages/utils/project.json

+1-4
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,7 @@
77
"executor": "@nx/linter:eslint",
88
"outputs": ["{options.outputFile}"],
99
"options": {
10-
"lintFilePatterns": [
11-
"packages/utils/**/*.ts",
12-
"packages/utils/package.json"
13-
]
10+
"lintFilePatterns": ["packages/utils/**/*.ts"]
1411
}
1512
}
1613
}

Diff for: packages/plugin-eslint/mocks/fixtures/nx-monorepo/tsconfig.base.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,9 @@
88
"emitDecoratorMetadata": true,
99
"experimentalDecorators": true,
1010
"importHelpers": true,
11-
"target": "es2015",
11+
"target": "ES2022",
1212
"module": "esnext",
13-
"lib": ["es2020", "dom"],
13+
"lib": ["ES2022", "dom"],
1414
"skipLibCheck": true,
1515
"skipDefaultLibCheck": true,
1616
"baseUrl": ".",

0 commit comments

Comments
 (0)