Closed
Description
I just have a question of file matching and dont even know if this is possible. I have my package.json in a subfolder /docroot/themes/custom/my_theme/package.json
and I am using lint-staged to run some precommit git hooks, but I cant get the file pattern matching to work for files that are in parent directories.
I want to search for files in /docroot/modules/custom/**/*.php
I have tried
"docroot/modules/custom/**/*.php": [
"phpcs --standard=Drupal"
]
"/docroot/modules/custom/**/*.php": [
"phpcs --standard=Drupal"
]
"modules/custom/**/*.php": [
"phpcs --standard=Drupal"
]
"../../../modules/custom/**/*.php": [
"phpcs --standard=Drupal"
]
and I cannot get any of them to match files. My git root is in the /docroot
folder. Any ideas?
Metadata
Metadata
Assignees
Labels
No labels
Activity