Closed uxkjaer closed 1 year ago
Thank you for your contribution! This issue is stale because it has been open 60 days with no activity. In order to keep it open, please remove stale label or add a comment within the next 10 days. If you need a Piper team member to remove the stale label make sure to add @SAP/jenkins-library-team
to your comment.
Issue got stale and no further activity happened. It has automatically been closed. Please re-open in case you still consider it relevant.
I'm doing a POC for a customer to showcase the CI/CD service in BTP.
I want the linting to run using the NPM package eslint-plugin-fiori-custom.
Below is my eslint config
.eslintrc
when running the ci-lint script I have to run the eslint command via npx eslint and also npm install beforehand otherwise there is no node_modules folder.
Working script
Actual output
without the npm install it fails.
Example running command ls ./node_modules
Example runnnig npx eslint with rulesdir
Example running eslint without npx
Expected output:
The documentation should reflect the need to have a ci-lint script as most projects have a lint script instead. There shouldn't be a need to run npm install before executing the linting.