todogroup / repolinter

Repolinter, The Open Source Repository Linter
https://todogroup.github.io/repolinter/
Apache License 2.0
421 stars 72 forks source link

Update usage of simple-git #288

Closed zhaoyuheng200 closed 1 year ago

zhaoyuheng200 commented 1 year ago

... based on cli output.

simple-git has supported promises / async await since version 2.6.0
Import from 'simple-git/promise' has been deprecated.

Motivation

Remove a cli warning message when linting.

Proposed Changes

Replace simple-git/promise require with simple-git

Test Plan

Unit test passed on node14@mac. Run lint -g https://github.com/todogroup/repolinter.git works without issue.

(Write your test plan here. If you changed any code, please provide us with clear instructions on how you verified your changes work.)