From 2e4cd209a2f3fc0a8dad844ebcd62edfb03111eb Mon Sep 17 00:00:00 2001 From: 60late <37356900+60late@users.noreply.github.com> Date: Sun, 21 Jan 2024 16:07:46 +0800 Subject: [PATCH] docs: add stylelint version tip (#12084) * docs: add stylelint version tip * docs: ... --------- Co-authored-by: fz6m <59400654+fz6m@users.noreply.github.com> --- docs/docs/docs/guides/lint.md | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/docs/docs/docs/guides/lint.md b/docs/docs/docs/guides/lint.md index 8618e58eb3a2..2bc1543379f0 100644 --- a/docs/docs/docs/guides/lint.md +++ b/docs/docs/docs/guides/lint.md @@ -31,10 +31,12 @@ $ pnpm add @umijs/lint -D 然后安装 ESLint 及 Stylelint: +> 目前 `@umijs/lint` 使用的 `stylelint` 版本是 v14 + ```bash -$ npm i eslint stylelint -D +$ npm i -D eslint "stylelint@^14" # or -$ pnpm add eslint stylelint -D +$ pnpm add -D eslint "stylelint@^14" ``` ### 启用配置