简体   繁体   中英

Disable eslint for previous commits

I am new to eslint and prettier. I am trying to set these up and wondering if there is a way to disable eslint and prettier for previous commits in the repo and run it only on the new code or new checkins? Thanks in advance for the help.

Maybe can try this https://github.com/grvcoelho/lint-diff .

And check:

..., it cannot be used to enforce the styleguide on a Continuous Integration service like Travis, because the changes are already commited.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM