Skip to content

for some reason validjson does not play well with lint-staged #5

@michahell

Description

@michahell

And just hangs. I've been running lint-staged both with --verbose and --debug flags, but this does not yield any usable debugging info unfortunately.

My lint-staged config looks like:

export default {
  'src/**/*.ts': 'ng-lint-staged lint:dwp --', // works fine
  '*.json': (filenames) => filenames.map((filename) => `npm run validjson ${filename}`), // or just npx validjson ${filename}
};

This is what I see when 3 .json files are found:

Screenshot 2022-07-18 at 13 29 52

Metadata

Metadata

Labels

No labels
No labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions