New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unable to run lint-staged
programmatically due to lack of types.
#1359
Comments
Thanks for the issue! I could add some |
@iiroj that would be awesome! thank you for the quick response, amazing project |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Description
I'm working on a build tooling in which I want to be able to call lint-staged programmatically (i.e. as shown in the README FAQ). However, upon trying out the example in TypeScript I get the error
Could not find a declaration file for module 'lint-staged'.
Upon installing@types/lint-staged
I still recieve an error because the DefinitelyTyped package doesn't include the correct types.Steps to reproduce
Add the
lint-staged
dependency to a TypeScript project, attempt to import the CLI and run it as a function.The text was updated successfully, but these errors were encountered: