sudo-suhas / lint-staged-multi-pkg

Example repo to demonstrate use of `lint-staged` with multi-pkg projects
MIT License
188 stars 19 forks source link

Execute lint-staged for files outside of packages #20

Closed fabb closed 4 years ago

fabb commented 4 years ago

I wonder how to best execute lint-staged on files outside of the packages? E.g. for running prettier on the root package.json. I guess it would be best to put the lint-staged config to the root package.json and use exclude glob patterns to exclude the lerna packages folder?

sudo-suhas commented 4 years ago

See https://github.com/okonet/lint-staged#can-i-lint-files-outside-of-the-current-project-folder