Skip to content

Commit

Permalink
chore(repo): add eslint and jest plugins to use inferred targets (#22946
Browse files Browse the repository at this point in the history
)
  • Loading branch information
jaysoo committed Apr 24, 2024
1 parent abaad32 commit bc43243
Show file tree
Hide file tree
Showing 99 changed files with 359 additions and 611 deletions.
3 changes: 2 additions & 1 deletion .eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,8 @@
"storybook/no-uninstalled-addons": [
"error",
{
"ignore": ["@nx/react/plugins/storybook"]
"ignore": ["@nx/react/plugins/storybook"],
"packageJsonLocation": "../../package.json"
}
]
},
Expand Down
3 changes: 1 addition & 2 deletions graph/client-e2e/project.json
Original file line number Diff line number Diff line change
Expand Up @@ -58,8 +58,7 @@
],
"parallel": false
}
},
"lint": {}
}
},
"implicitDependencies": ["graph-client"]
}
2 changes: 0 additions & 2 deletions graph/client/project.json
Original file line number Diff line number Diff line change
Expand Up @@ -248,8 +248,6 @@
},
"defaultConfiguration": "dev"
},
"lint": {},
"test": {},
"storybook": {
"executor": "@nx/storybook:storybook",
"options": {
Expand Down
14 changes: 1 addition & 13 deletions graph/project-details/project.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,17 +4,5 @@
"sourceRoot": "graph/project-details/src",
"projectType": "library",
"tags": [],
"targets": {
"lint": {
"executor": "@nx/eslint:lint",
"outputs": ["{options.outputFile}"]
},
"test": {
"executor": "@nx/jest:jest",
"outputs": ["{workspaceRoot}/coverage/{projectRoot}"],
"options": {
"jestConfig": "graph/project-details/jest.config.ts"
}
}
}
"targets": {}
}
15 changes: 1 addition & 14 deletions graph/shared/project.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,18 +4,5 @@
"sourceRoot": "graph/shared/src",
"projectType": "library",
"tags": [],
"targets": {
"lint": {
"executor": "@nx/eslint:lint",
"outputs": ["{options.outputFile}"]
},
"test": {
"executor": "@nx/jest:jest",
"outputs": ["{workspaceRoot}/coverage/{projectRoot}"],
"options": {
"jestConfig": "graph/shared/jest.config.ts",
"passWithNoTests": true
}
}
}
"targets": {}
}
10 changes: 0 additions & 10 deletions graph/ui-code-block/project.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,16 +5,6 @@
"projectType": "library",
"tags": [],
"targets": {
"lint": {
"executor": "@nx/eslint:lint"
},
"test": {
"executor": "@nx/jest:jest",
"outputs": ["{workspaceRoot}/coverage/{projectRoot}"],
"options": {
"jestConfig": "graph/ui-code-block/jest.config.ts"
}
},
"storybook": {
"executor": "@nx/storybook:storybook",
"options": {
Expand Down
2 changes: 0 additions & 2 deletions graph/ui-components/project.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,6 @@
"projectType": "library",
"tags": [],
"targets": {
"lint": {},
"test": {},
"storybook": {
"executor": "@nx/storybook:storybook",
"options": {
Expand Down
2 changes: 0 additions & 2 deletions graph/ui-graph/project.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,6 @@
"projectType": "library",
"tags": [],
"targets": {
"lint": {},
"test": {},
"storybook": {
"executor": "@nx/storybook:storybook",
"options": {
Expand Down
3 changes: 0 additions & 3 deletions graph/ui-project-details/project.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,6 @@
"projectType": "library",
"tags": [],
"targets": {
"lint": {
"executor": "@nx/eslint:lint"
},
"storybook": {
"executor": "@nx/storybook:storybook",
"options": {
Expand Down
3 changes: 0 additions & 3 deletions graph/ui-theme/project.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,6 @@
"projectType": "library",
"tags": [],
"targets": {
"lint": {
"executor": "@nx/eslint:lint"
},
"storybook": {
"executor": "@nx/storybook:storybook",
"options": {
Expand Down
2 changes: 0 additions & 2 deletions graph/ui-tooltips/project.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,6 @@
"projectType": "library",
"tags": [],
"targets": {
"lint": {},
"test": {},
"storybook": {
"executor": "@nx/storybook:storybook",
"options": {
Expand Down
5 changes: 1 addition & 4 deletions nx-dev/data-access-documents/project.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,6 @@
"$schema": "../../node_modules/nx/schemas/project-schema.json",
"sourceRoot": "nx-dev/data-access-documents/src",
"projectType": "library",
"targets": {
"lint": {},
"test": {}
},
"targets": {},
"tags": ["scope:nx-dev", "type:data-access"]
}
5 changes: 1 addition & 4 deletions nx-dev/data-access-menu/project.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,6 @@
"$schema": "../../node_modules/nx/schemas/project-schema.json",
"sourceRoot": "nx-dev/data-access-menu/src",
"projectType": "library",
"targets": {
"lint": {},
"test": {}
},
"targets": {},
"tags": []
}
5 changes: 1 addition & 4 deletions nx-dev/data-access-packages/project.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,6 @@
"$schema": "../../node_modules/nx/schemas/project-schema.json",
"sourceRoot": "nx-dev/data-access-packages/src",
"projectType": "library",
"targets": {
"lint": {},
"test": {}
},
"targets": {},
"tags": ["scope:nx-dev", "type:data-access"]
}
5 changes: 1 addition & 4 deletions nx-dev/feature-ai/project.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,6 @@
"$schema": "../../node_modules/nx/schemas/project-schema.json",
"sourceRoot": "nx-dev/feature-ai/src",
"projectType": "library",
"targets": {
"lint": {},
"test": {}
},
"targets": {},
"tags": ["scope:nx-dev", "type:feature"]
}
5 changes: 1 addition & 4 deletions nx-dev/feature-analytics/project.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,6 @@
"$schema": "../../node_modules/nx/schemas/project-schema.json",
"sourceRoot": "nx-dev/feature-analytics/src",
"projectType": "library",
"targets": {
"lint": {},
"test": {}
},
"targets": {},
"tags": ["scope:nx-dev", "type:feature"]
}
5 changes: 1 addition & 4 deletions nx-dev/feature-doc-viewer/project.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,6 @@
"$schema": "../../node_modules/nx/schemas/project-schema.json",
"sourceRoot": "nx-dev/feature-doc-viewer/src",
"projectType": "library",
"targets": {
"lint": {},
"test": {}
},
"targets": {},
"tags": ["scope:nx-dev", "type:feature"]
}
5 changes: 1 addition & 4 deletions nx-dev/feature-feedback/project.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,5 @@
"sourceRoot": "nx-dev/feature-feedback/src",
"projectType": "library",
"tags": ["scope:nx-dev", "type:feature"],
"targets": {
"lint": {},
"test": {}
}
"targets": {}
}
5 changes: 1 addition & 4 deletions nx-dev/feature-package-schema-viewer/project.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,6 @@
"$schema": "../../node_modules/nx/schemas/project-schema.json",
"sourceRoot": "nx-dev/feature-package-schema-viewer/src",
"projectType": "library",
"targets": {
"lint": {},
"test": {}
},
"targets": {},
"tags": ["scope:nx-dev", "type:feature"]
}
5 changes: 1 addition & 4 deletions nx-dev/feature-search/project.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,6 @@
"$schema": "../../node_modules/nx/schemas/project-schema.json",
"sourceRoot": "nx-dev/feature-search/src",
"projectType": "library",
"targets": {
"lint": {},
"test": {}
},
"targets": {},
"tags": ["scope:nx-dev", "type:feature"]
}
5 changes: 1 addition & 4 deletions nx-dev/models-document/project.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,6 @@
"$schema": "../../node_modules/nx/schemas/project-schema.json",
"sourceRoot": "nx-dev/models-document/src",
"projectType": "library",
"targets": {
"lint": {},
"test": {}
},
"targets": {},
"tags": ["scope:nx-dev", "type:util"]
}
5 changes: 1 addition & 4 deletions nx-dev/models-menu/project.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,6 @@
"$schema": "../../node_modules/nx/schemas/project-schema.json",
"sourceRoot": "nx-dev/models-menu/src",
"projectType": "library",
"targets": {
"lint": {},
"test": {}
},
"targets": {},
"tags": ["scope:nx-dev", "type:util"]
}
5 changes: 1 addition & 4 deletions nx-dev/models-package/project.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,6 @@
"$schema": "../../node_modules/nx/schemas/project-schema.json",
"sourceRoot": "nx-dev/models-package/src",
"projectType": "library",
"targets": {
"lint": {},
"test": {}
},
"targets": {},
"tags": ["scope:nx-dev", "type:util"]
}
4 changes: 1 addition & 3 deletions nx-dev/nx-dev-e2e/project.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,7 @@
"$schema": "../../node_modules/nx/schemas/project-schema.json",
"sourceRoot": "nx-dev/nx-dev-e2e/src",
"projectType": "application",
"targets": {
"lint": {}
},
"targets": {},
"tags": ["scope:nx-dev", "type:e2e"],
"implicitDependencies": ["nx-dev"]
}
4 changes: 1 addition & 3 deletions nx-dev/nx-dev/project.json
Original file line number Diff line number Diff line change
Expand Up @@ -125,9 +125,7 @@
"color": true,
"parallel": false
}
},
"lint": {},
"test": {}
}
},
"tags": ["scope:nx-dev", "type:app"],
"implicitDependencies": ["docs"]
Expand Down
5 changes: 1 addition & 4 deletions nx-dev/ui-commands/project.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,5 @@
"sourceRoot": "nx-dev/ui-commands/src",
"projectType": "library",
"tags": ["scope:nx-dev", "type:ui"],
"targets": {
"lint": {},
"test": {}
}
"targets": {}
}
5 changes: 1 addition & 4 deletions nx-dev/ui-common/project.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,6 @@
"$schema": "../../node_modules/nx/schemas/project-schema.json",
"sourceRoot": "nx-dev/ui-common/src",
"projectType": "library",
"targets": {
"lint": {},
"test": {}
},
"targets": {},
"tags": ["scope:nx-dev", "type:ui"]
}
5 changes: 1 addition & 4 deletions nx-dev/ui-community/project.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,5 @@
"sourceRoot": "nx-dev/ui-community/src",
"projectType": "library",
"tags": ["scope:nx-dev", "type:ui"],
"targets": {
"lint": {},
"test": {}
}
"targets": {}
}
5 changes: 1 addition & 4 deletions nx-dev/ui-conference/project.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,5 @@
"sourceRoot": "nx-dev/ui-conference/src",
"projectType": "library",
"tags": ["scope:nx-dev", "type:feature"],
"targets": {
"lint": {},
"test": {}
}
"targets": {}
}
5 changes: 1 addition & 4 deletions nx-dev/ui-contact/project.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,5 @@
"sourceRoot": "nx-dev/ui-contact/src",
"projectType": "library",
"tags": ["scope:nx-dev", "type:ui"],
"targets": {
"lint": {},
"test": {}
}
"targets": {}
}
14 changes: 1 addition & 13 deletions nx-dev/ui-fence/project.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,17 +4,5 @@
"sourceRoot": "nx-dev/ui-fence/src",
"projectType": "library",
"tags": [],
"targets": {
"lint": {
"executor": "@nx/eslint:lint"
},
"test": {
"executor": "@nx/jest:jest",
"outputs": ["{workspaceRoot}/coverage/{projectRoot}"],
"options": {
"jestConfig": "nx-dev/ui-fence/jest.config.ts",
"passWithNoTests": true
}
}
}
"targets": {}
}
1 change: 0 additions & 1 deletion nx-dev/ui-home/project.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
"projectType": "library",
"tags": ["scope:nx-dev", "type:ui"],
"targets": {
"lint": {},
"xtest": {
"executor": "@nx/jest:jest",
"outputs": ["{workspaceRoot}/coverage/nx-dev/ui-home"],
Expand Down
5 changes: 1 addition & 4 deletions nx-dev/ui-markdoc/project.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,5 @@
"sourceRoot": "nx-dev/ui-markdoc/src",
"projectType": "library",
"tags": [],
"targets": {
"lint": {},
"test": {}
}
"targets": {}
}
5 changes: 1 addition & 4 deletions nx-dev/ui-member-card/project.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,5 @@
"sourceRoot": "nx-dev/ui-member-card/src",
"projectType": "library",
"tags": ["scope:nx-dev", "type:ui"],
"targets": {
"lint": {},
"test": {}
}
"targets": {}
}
4 changes: 1 addition & 3 deletions nx-dev/ui-primitives/project.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,5 @@
"sourceRoot": "nx-dev/ui-primitives/src",
"projectType": "library",
"tags": [],
"targets": {
"lint": {}
}
"targets": {}
}
Loading

0 comments on commit bc43243

Please sign in to comment.