I have a legacy codebase without eslint/prettier. I want to introduce formatting on pre-mit hooks. Lint staged will let you run prettier for only changed files. Is it possible to only run the prettier just for changed lines? Like IntelliJ's inbuild formatting allows for only VCS changed text formatting.
I have a legacy codebase without eslint/prettier. I want to introduce formatting on pre-mit hooks. Lint staged will let you run prettier for only changed files. Is it possible to only run the prettier just for changed lines? Like IntelliJ's inbuild formatting allows for only VCS changed text formatting.
Share Improve this question edited Jun 29, 2022 at 15:38 BuZZ-dEE 6,99116 gold badges74 silver badges105 bronze badges asked Oct 15, 2020 at 1:16 sreejithsreejith 2532 silver badges8 bronze badges 01 Answer
Reset to default 2Hope you have solved the issue by now. For others, A fix for this was introduced in the August 2020 (version 1.49) update. Check out this link for more info. link