Skip to content

Unable to run lint-staged programmatically due to lack of types. #1359

Open
@pauliesnug

Description

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions