43081j / 43081j/postcss-styled-components

Exception error detected by stylelint

未關閉
#10 4 則留言 1 個 reaction 已指派 0 人 在 GitHub 檢視
主要語言
TypeScript
星號
12
分支
1
PR 合併指標
30 天內沒有已合併 PR

描述

Hello, when I use the following stylelint configuration to format styled-components, when I write styled-components in the tsx file, as long as I write the code, the stylelint plugin of vscode will detect an exception and report an error

This is the configuration of stylelint
{
"extends": ["stylelint-config-rational-order", "stylelint-config-standard"],
"plugins": ["stylelint-order"],
"customSyntax": "postcss-styled-components"
}

This is the error message
SyntaxError: Unexpected keyword 'function'. (11:0) at instantiate (E:\GProjects\UI\node_modules\.pnpm\@babel+parser@7.21.2\node_modules\@babel\parser\lib\index.js:64:32) at constructor
![企业微信截图_16784128377413](https://user-images.githubusercontent.com/54523778/224203120-e3517962-549b-48e6-8f53-999d19e20ec0.png)

When I don't use postcss-styled-components, no such error message will appear, but at the same time, I can't format styled-components

貢獻指南

這個儲存庫沒有索引到貢獻指南

評估

這個 Issue 還沒有評估資料。

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。