Skip to content

Commit

Permalink
docs: add stylelint version tip
Browse files Browse the repository at this point in the history
  • Loading branch information
60late committed Jan 19, 2024
1 parent 8b31564 commit 0b9b5a6
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions docs/docs/docs/guides/lint.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,11 +30,13 @@ $ pnpm add @umijs/lint -D
```

然后安装 ESLint 及 Stylelint:
> 目前@umijs/lint使用的stylelint版本是v14。
但是stylelint升级至v16后不再与之前版本兼容,因此手动安装时不能直接安装最新版stylelint,需要安装v14的版本

```bash
$ npm i eslint stylelint -D
$ npm i eslint stylelint@14 -D
# or
$ pnpm add eslint stylelint -D
$ pnpm add eslint stylelint@14 -D
```

### 启用配置
Expand Down

0 comments on commit 0b9b5a6

Please sign in to comment.