Comments (4)
Also, this file contains all the valid config filenames: https://github.com/lint-staged/lint-staged/blob/master/lib/configFiles.js
from lint-staged.
In your debug logs there are no staged files, so can't really tell anything further...
Does it work as expected if you only have a single lint-staged config file?
from lint-staged.
In your debug logs there are no staged files, so can't really tell anything further...
Does it work as expected if you only have a single lint-staged config file?
Hi @iiroj,
thank you for your feedback.
Yes, that's what I wrote in my description. I probably should have worded the headline better.
Because no stages files can be found, I can assume that:
- the configuration files in the children directories are not found and therefore the linter is not called at all
- the glob pattern of the configuration file in the root directory does not point correctly to the underlying directories.
I suspect that since the actual lint-staged process in the rush project structure is called in common/scripts/install-run-rush.js
, the path in the linstagedrc.json in the root directory does not actually arrive at apps/frontend
.
from lint-staged.
In this case, lint-staged exists early without even getting to the configuration file loading part. Here's the relevant snip from your log:
lint-staged:resolveGitRepo Resolved git directory to be `D:/Development/Projects/Xsigns/Vacarema/App/v2/monorepo` +54ms
lint-staged:resolveGitRepo Resolved git config directory to be `D:/Development/Projects/Xsigns/Vacarema/App/v2/monorepo/.git` +0ms
...
lint-staged:execGit Running git command [ 'diff', '--name-only', '-z', '--diff-filter=ACMR', '--staged' ] +53ms
lint-staged:runAll Loaded list of staged files in git:
lint-staged:runAll [] +161ms
from lint-staged.
Related Issues (20)
- Make lint-staged more compatible with git sparse checkout feature HOT 6
- How to `git reset $file` ? HOT 3
- How to output the print content of the script in lint-staged in real time?
- `npx lint-staged --cwd $PWD` for all OS HOT 6
- Hooks to know if the lint staged commands have completed HOT 4
- Prettier breaks when run through lint-staged on files with dollar sign ($) in the name HOT 6
- Consider allowing running of programatic tasks via Node API HOT 5
- Is it possible to run 2 different configurations for pre-commit and pre-push? HOT 1
- No staged files found. with command "npx lint-staged"
- Hard to understand stashing behavior HOT 2
- Case sensitivity in finding .git root folder HOT 3
- firebase emulator is not running by lint-staged HOT 8
- SyntaxError: Named export 'getStreamAsBuffer' not found HOT 2
- "No files matching the pattern ... was found" when using ESLint flat configuration file format HOT 2
- No staged files found HOT 2
- Script fails when using grouped layouts in Next.js HOT 5
- lint-staged does not detect changed files, skips scripts HOT 4
- High vulnerability in 'braces' dependency HOT 3
- Add flag to simplify testing `lint-staged` integration HOT 2
- Silent failure of configuration loading HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from lint-staged.