Skip to content
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

chore: Lint and format only staged changes #197

Commits on May 1, 2024

  1. fix: only lint and format staged changes

    This commit adds the package lint-staged. I think when lint-staged
    is calling pnpm run lint it passes some file arguments. Since pnpm
    run lint calls turbo run lint this argument is getting passed directly
    resulting in an error as extra arguments get added to the tubro command.
    to prevent this we add '--' to signigy not to pass on further arguments.
    
    :wq
    :wq
    :wq
    wq
    qw
    :qw
    AlexVascon committed May 1, 2024
    Configuration menu
    Copy the full SHA
    34ac617 View commit details
    Browse the repository at this point in the history

Commits on May 7, 2024

  1. fix: change npx to pnpm run lint-staged & added css,yml, and toml fil…

    …e extension
    
    .json files could not be added for the linting because none of your linters
    are configured for it. You use various eslint-plugins but don't use eslint-plugin-json.
    Do you want this added? Otherwise we can only run formatting for json files which
    is why a seperate command is in place for that in the lint-staged script.
    AlexVascon committed May 7, 2024
    Configuration menu
    Copy the full SHA
    bef9def View commit details
    Browse the repository at this point in the history