43081j / 43081j/postcss-styled-components
Exception error detected by stylelint
- Vorherrschende Sprache
- TypeScript
- Sterne
- 12
- Forks
- 1
- PR-Merge-Kennzahlen
- Keine gemergten PRs in 30 T.
Beschreibung
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

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
Beitragsleitfaden
Für dieses Repository ist kein Beitragsleitfaden indexiert
Bewertung
Dieses Issue wurde noch nicht bewertet.