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:]}} ''' +]