run-local-checks should ignore vendor and node_modules
Problem/Motivation
The call to eslint within run-local-checks.sh appears to read all files in the /vendor and /node_modules directories. I discovered this when working on adding a 'debug' argument to the script, which will add the various --debug, -v, command line options to each call
Steps to reproduce
In gitlab_templates top folder run the following
npx eslint --no-error-on-unmatched-pattern --debug --ext=.yml .
You can see that every file in vendor and node_modules is being checked
Proposed resolution
- Add a script option debug which will add the necessary command options
- Add --ignore-pattern=vendor,node_modules