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

添加 vue 代码,提交commit失败 #235

Closed
1 task done
lusson-luo opened this issue Dec 28, 2022 · 1 comment
Closed
1 task done

添加 vue 代码,提交commit失败 #235

lusson-luo opened this issue Dec 28, 2022 · 1 comment
Labels
bug Something isn't working

Comments

@lusson-luo
Copy link

Basic Info

  • Package Name And Version: arco-design-pro-vue@2.5.15
  • Browser: chrome105.0.0.0

Extra info

错误信息
/Users/xxx/workspace/hello-arco-pro/everythingPaaSStoreFront/src/views/dashboard/users/index. vue: When linting something other than CSS, you should install an appropriate syntax, e.g. "postcss-html", and use the "customSyntax" option
/Users/xxx/workspace/hello-arco-pro/everythingPaaSStoreFront/src/views/inspection/inspection/index. vue: When linting something other than CSS, you should install an appropriate syntax, e.g. "postcss-html", and use the "customSyntax" option

src/views/dashboard/users/index.vue
90:20 ✖ Unknown word CssSyntaxError

src/views/inspection/inspection/index.vue
6:12 ✖ Unknown word CssSyntaxError

2 problems (2 errors, 0 warnings)

我的解决办法,网上查询得知错误是 eslint 不能识别该语法,是因为 eslint 14 之后,需要下载插件识别 vue
npm install --save-dev postcss-html stylelint-config-recommended-vue
stylelint 配置文件添加extends,'stylelint-config-recommended-vue',
image

What is expected?

应该提交成功

Steps to reproduce

只要添加一个 vue 文件,提交就会失败

@sHow8e sHow8e added the bug Something isn't working label Dec 28, 2022
@sHow8e
Copy link
Member

sHow8e commented Jan 10, 2023

@lusson-luo 这部分问题是之前升级依赖导致的。了解了一下相关,按照如上提供的方式进行了处理。3q。v2.6.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants