[Question] Matching parent and current directory
See original GitHub issueWe have an ASP.NET project, that contains a web project, which includes the package.json.
The directory tree looks like this:
Root dir
.git
Data
Some.cs
BussinessLogic
Other.cs
Web
Layout.cshtml
package.json
According to the Readme.md I tried this wildcard: …/**/*.{cs,cshtml}
Unfortunately it doesn’t match the files in the Web directory, so I have to use two patterns to cover all folders in the repository: “…/**/.{cs,cshtml}": [ …commands ], ".{cs,cshtml}”: [ …commands ] It’s not the best, becaues the commands have to run multiple times and they have a noticable boot time.
How can I reach what I want?
I would appreciate if somebody could help me. Thanks in advance!
Issue Analytics
- State:
- Created 5 years ago
- Comments:8 (2 by maintainers)
Top Results From Across the Web
Get parent of current directory from Python script
To get the parent directory of the directory containing the script (regardless of the current working directory), you'll need to use __file__ ....
Read more >find searching in parent directories instead of subdirectories
So running git rev-parse --show-toplevel prints out the $GOPATH directory, not the ~/projects directory. This solution solves that problem. I realize this is...
Read more >Bash path glob matching dotfiles and parent in pwd - Super User
If you want all the dot files anywhere in your current directory tree, you can use find as shown here using $(...) command...
Read more >How to print parent working directory - Ask Ubuntu
In my opinion, echo is complicating your question. you just need to do as @ByteCommander suggested, the rest of your command is fine....
Read more >File path formats on Windows systems | Microsoft Learn
In this article, learn about file path formats on Windows systems, such as traditional DOS paths, DOS device paths, and universal naming ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Let’s close this old ticket in favor of https://github.com/okonet/lint-staged/issues/1102
https://github.com/okonet/lint-staged/pull/1133