vben-admin-thin-next
vben-admin-thin-next copied to clipboard
Sync `stylelint.config.js` with `vue-vben-admin` to fix .vue file lint error
⚠️ 重要 ⚠️ 在进一步操作之前,请检查下列选项。如果您忽视此模板或者没有提供关键信息,您的 Issue 将直接被关闭
- [ ] 已阅读 文档.
- [ ] 确保您的代码已是最新或者所报告的 Bug 在最新版本中可以重现. (部分 Bug 可能已经在最近的代码中修复)
- [ ] 已在 Issues 中搜索了相关的关键词
- [ ] 不是 ant design vue 组件库的 Bug
描述 Bug
请清晰地描述此 Bug 的具体表现。
run yarn lint:stylelint
resulting in:
src/App.vue
10:12 ✖ Unknown word CssSyntaxError
src/layouts/default/index.vue
17:12 ✖ Unknown word CssSyntaxError
src/layouts/iframe/index.vue
13:12 ✖ Unknown word CssSyntaxError
src/layouts/page/index.vue
28:12 ✖ Unknown word CssSyntaxError
<More error omitted>
error Command failed with exit code 2.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
Applying fix in https://github.com/vbenjs/vue-vben-admin/commit/c2b207dd5172519a87cb23e34114e5d104ce56a1 fix this issue
复现 Bug
run yarn lint:stylelint
系统信息
- 操作系统: Windows 10 1604 build 14393.2214 (x64)
- Node 版本: v16.13.1
- 包管理器 (npm/yarn/pnpm) 及其版本: yarn v1.22.11/v3.1.1
我是 stylelint 指定到 14.0.1 版本 就不会有报错了
指定了14.0.1还是报这个错
stylelint.config.js
- files: ['*.vue', '**/*.vue'],
+ files: ['*.vue', '**/*.vue', '*.html', '**/*.html'],