---
title: "Discussion on \"How lint-staged@17.6.0 (kind of) broke Git commits\" | Hashnode"
description: "Discussion on \"How lint-staged@17.6.0 (kind of) broke Git commits\". Recently I helped build and launch a brand new React app for my company. As part of the wrap-up leading to launch, I was tasked with updating npm dependencies to their latest stable versions. Many pac"
url: "https://hashnode.com/posts/how-lint-staged-17-6-0-kind-of-broke-git-commits/6ada8171e08533a0d7ee3e74"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [How lint-staged@17.6.0 (kind of) broke Git commits](https://aldrichdev.hashnode.dev/how-lint-staged-17-6-0-kind-of-broke-git-commits?utm_source=hashnode&utm_medium=feed)

Recently I helped build and launch a brand new React app for my company. As part of the wrap-up leading to launch, I was tasked with updating npm dependencies to their latest stable versions. Many pac

Oct 22 · 3 min read · aldrichdev.hashnode.dev  
Read the article

-   [#reactjs](https://hashnode.com/tag/reactjs)
-   [#typescript](https://hashnode.com/tag/typescript)
-   [#lint-staged](https://hashnode.com/tag/lint-staged)
-   [#prettier](https://hashnode.com/tag/prettier)

## Written by

[Paul Aldrich](https://hashnode.com/@aldrichdev)

@aldrichdev · Chicago, IL

  
[View profile](https://hashnode.com/@aldrichdev)

Full Stack Developer - React, Next.js, .NET, Sitecore

I am a full-stack developer specializing in React, Next.js, TypeScript, C#, .NET and Sitecore. I love working on back-end as well as front-end, writing documentation, finding solutions to problems, and writing technical blog posts to help others. I've been Sitecore certified and Coveo for Sitecore certified twice.

## Responses 2

Markdown supported · ⌘↵ to post

[Tarun Sharma](https://hashnode.com/@101beardo)

[Oct 23](https://hashnode.com/posts/how-lint-staged-17-6-0-kind-of-broke-git-commits/6ada8171e08533a0d7ee3e74/comment/6adaf2c4e1c4ced497a18ef5)

Another way in is on the Prettier side: endOfLine: "auto" in the config makes it keep whatever line ending the file already has, so it stops rewriting CRLF to LF and lint-staged has nothing odd to react to. The eol=lf in .gitattributes is still the cleaner team fix, since it makes every checkout the same instead of relying on each tool respecting the existing endings.

[Paul Aldrich](https://hashnode.com/@aldrichdev)

[Oct 24](https://hashnode.com/posts/how-lint-staged-17-6-0-kind-of-broke-git-commits/6ada8171e08533a0d7ee3e74/comment/6adaf2c4e1c4ced497a18ef5#reply-6add1a2c5954ca336898aa4b)

Great input!
