summaryrefslogtreecommitdiff
path: root/plugins/yarn
diff options
context:
space:
mode:
authorEmilien Escalle <neilime@users.noreply.github.com>2021-10-04 13:07:55 +0200
committerGitHub <noreply@github.com>2021-10-04 13:07:55 +0200
commitd304635b8c70c6d9400d1246f1446eb76c64406c (patch)
tree74228511f62fec83a7b12966104ed50a2fcb0b7a /plugins/yarn
parent5dbb30342e1b7c4a04c3464bb16ffeb33abde139 (diff)
downloadzsh-d304635b8c70c6d9400d1246f1446eb76c64406c.tar.gz
zsh-d304635b8c70c6d9400d1246f1446eb76c64406c.tar.bz2
zsh-d304635b8c70c6d9400d1246f1446eb76c64406c.zip
feat(yarn): add `ylnf` alias to fix linting problems (#9219)
Diffstat (limited to 'plugins/yarn')
-rw-r--r--plugins/yarn/README.md1
-rw-r--r--plugins/yarn/yarn.plugin.zsh1
2 files changed, 2 insertions, 0 deletions
diff --git a/plugins/yarn/README.md b/plugins/yarn/README.md
index fd748b742..9a0d1708d 100644
--- a/plugins/yarn/README.md
+++ b/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 |
diff --git a/plugins/yarn/yarn.plugin.zsh b/plugins/yarn/yarn.plugin.zsh
index 4a5192c61..a240cb88e 100644
--- a/plugins/yarn/yarn.plugin.zsh
+++ b/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"