Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sync stylelint.config.js with vue-vben-admin to fix .vue file lint error #57

Open
4 tasks
Tanimodori opened this issue Feb 15, 2022 · 3 comments
Open
4 tasks

Comments

@Tanimodori
Copy link

⚠️ 重要 ⚠️ 在进一步操作之前,请检查下列选项。如果您忽视此模板或者没有提供关键信息,您的 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 vbenjs/vue-vben-admin@c2b207d 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
@Luomigu
Copy link

Luomigu commented Mar 4, 2022

我是 stylelint 指定到 14.0.1 版本 就不会有报错了

@jhwzeishuai
Copy link

指定了14.0.1还是报这个错

@Tanimodori
Copy link
Author

stylelint.config.js

- files: ['*.vue', '**/*.vue'],
+ files: ['*.vue', '**/*.vue', '*.html', '**/*.html'],

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants