1

Currently we are using TFVC based repo. Recently we started using Prettier paired with eslint for our project since we want to enforce consistency and formatting smoothly across the repo. Now I cannot seem to find a way to run prettier and eslint only on the changed files.

We are also using Azure Pipelines which builds the artifacts.

Prettier docs has this hooks but this only works for git version control !

HariHaran
  • 3,642
  • 2
  • 16
  • 33

1 Answers1

0

I guess you can achieve this with lint-staged

npm install --save-dev lint-staged husky
Sajeetharan
  • 216,225
  • 63
  • 350
  • 396
  • i dont think this works for tfvc repos, because there is no concept of staging here – HariHaran Jul 23 '20 at 04:39
  • hmm valid point, may be you need something like this? https://stackoverflow.com/questions/45615690/tfs-2017-how-build-deliver-only-changed-files – Sajeetharan Jul 23 '20 at 04:45