Skip to content

Commit 6e16658

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

File tree

7 files changed

+10
-25
lines changed

7 files changed

+10
-25
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": ".",

Diff for: packages/plugin-eslint/src/lib/nx.integration.test.ts

-5
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,6 @@ describe('Nx helpers', () => {
4545
eslintrc: './packages/cli/.eslintrc.json',
4646
patterns: [
4747
'packages/cli/**/*.ts',
48-
'packages/cli/package.json',
4948
'packages/cli/src/*.spec.ts',
5049
'packages/cli/src/*.cy.ts',
5150
'packages/cli/src/*.stories.ts',
@@ -56,7 +55,6 @@ describe('Nx helpers', () => {
5655
eslintrc: './packages/core/.eslintrc.json',
5756
patterns: [
5857
'packages/core/**/*.ts',
59-
'packages/core/package.json',
6058
'packages/core/src/*.spec.ts',
6159
'packages/core/src/*.cy.ts',
6260
'packages/core/src/*.stories.ts',
@@ -67,8 +65,6 @@ describe('Nx helpers', () => {
6765
eslintrc: './packages/nx-plugin/.eslintrc.json',
6866
patterns: [
6967
'packages/nx-plugin/**/*.ts',
70-
'packages/nx-plugin/package.json',
71-
'packages/nx-plugin/generators.json',
7268
'packages/nx-plugin/src/*.spec.ts',
7369
'packages/nx-plugin/src/*.cy.ts',
7470
'packages/nx-plugin/src/*.stories.ts',
@@ -79,7 +75,6 @@ describe('Nx helpers', () => {
7975
eslintrc: './packages/utils/.eslintrc.json',
8076
patterns: [
8177
'packages/utils/**/*.ts',
82-
'packages/utils/package.json',
8378
'packages/utils/src/*.spec.ts',
8479
'packages/utils/src/*.cy.ts',
8580
'packages/utils/src/*.stories.ts',

0 commit comments

Comments
 (0)