diff --git a/packages/example-node-lib/project.json b/packages/example-node-lib/project.json index 4395fa2..5a5989e 100644 --- a/packages/example-node-lib/project.json +++ b/packages/example-node-lib/project.json @@ -13,6 +13,24 @@ }, "tags": [], "targets": { + "fix": { + "executor": "nx:run-commands", + "options": { + "command": "eslint --fix ./src && prettier --write -c ./src", + "cwd": "apps/its-battistar-express" + } + }, + "pre-lint": { + "executor": "nx:run-commands", + "options": { + "command": "tsc --noEmit -p ./tsconfig.app.json & prettier -c ./src", + "cwd": "apps/its-battistar-express" + } + }, + "lint": { + "dependsOn": ["pre-lint"], + "executor": "@nx/eslint:lint" + }, "build": { "executor": "@nx/rollup:rollup", "outputs": ["{options.outputPath}"],