43081j / 43081j/postcss-styled-components

Exception error detected by stylelint

オープン
#10 コメント 4 件 リアクション 1 件 担当者 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 を短くまとめたダイジェスト。