From b2c95c30e770ec86e6e1378ec25ad2cf495eaeb8 Mon Sep 17 00:00:00 2001 From: Nicholas Ciechanowski <55490546+ALameLlama@users.noreply.github.com> Date: Wed, 25 Sep 2024 01:32:21 +1000 Subject: [PATCH] feat(rules): add yarn (gh #5) * feat(rules): add yarn --------- Co-authored-by: iff --- rules/yarn.toml | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 rules/yarn.toml diff --git a/rules/yarn.toml b/rules/yarn.toml new file mode 100644 index 0000000..500f7a0 --- /dev/null +++ b/rules/yarn.toml @@ -0,0 +1,10 @@ +command = "yarn" + +[[match_err]] +pattern = [ + "error `install` has been replaced with `add` to add new dependencies." +] +suggest = [ +''' +yarn add {{command[2:]}} ''' +]