Giter VIP home page Giter VIP logo

Comments (4)

iiroj avatar iiroj commented on June 14, 2024 1

Also, this file contains all the valid config filenames: https://github.com/lint-staged/lint-staged/blob/master/lib/configFiles.js

from lint-staged.

iiroj avatar iiroj commented on June 14, 2024

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.

maximilianfixl avatar maximilianfixl commented on June 14, 2024

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.

iiroj avatar iiroj commented on June 14, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.