浏览代码

feat(yarn): add `ylnf` alias to fix linting problems (#9219)

Emilien Escalle 3 年之前
父节点
当前提交
d304635b8c
共有 2 个文件被更改,包括 2 次插入0 次删除
  1. 1 0
      plugins/yarn/README.md
  2. 1 0
      plugins/yarn/yarn.plugin.zsh

+ 1 - 0
plugins/yarn/README.md

@@ -28,6 +28,7 @@ plugins=(... yarn)
 | yi    | `yarn init`                               | Interactively creates or updates a package.json file                          |
 | yin   | `yarn install`                            | Install dependencies defined in `package.json`                                |
 | yln   | `yarn lint`                               | Run the lint script defined in `package.json`                                 |
+| ylnf  | `yarn lint --fix`                         | Run the lint script defined in `package.json`to automatically fix problems    |
 | yls   | `yarn list`                               | List installed packages                                                       |
 | yout  | `yarn outdated`                           | Check for outdated package dependencies                                       |
 | yp    | `yarn pack`                               | Create a compressed gzip archive of package dependencies                      |

+ 1 - 0
plugins/yarn/yarn.plugin.zsh

@@ -13,6 +13,7 @@ alias yh="yarn help"
 alias yi="yarn init"
 alias yin="yarn install"
 alias yln="yarn lint"
+alias ylnf="yarn lint --fix"
 alias yls="yarn list"
 alias yout="yarn outdated"
 alias yp="yarn pack"