[Bug]: #448
Labels
status: needs clarification
triage needs clarification from author
status: needs reproducible example
triage needs reproducible demo or repo
type: bug
a problem with a feature or rule
How did you encounter this bug?
When I use the stylelint configuration to format styled-components, every time I write code in the tsx file, there will always be an error message
Link to Minimal Reproducible Example
local project has no address
Code Snippet
{
"extends": ["stylelint-config-rational-order", "stylelint-config-standard"],
"plugins": ["stylelint-order"],
"customSyntax": "postcss-styled-components"
}
Stylelint Configuration
No response
Extension Configuration
Actual Behaviour
SyntaxError: Unexpected keyword 'function'. (10:0) at instantiate (E:\GProjects\UI\node_modules.pnpm@[email protected]\node_modules@babel\parser\lib\index.js:64:32) at constructor
Expected Behaviour
I wish I didn't get this type of prompt right away while I was writing the code
Logs
[Error - 13:09:56] [language-server] Error running lint | uri: "file:///e%3A/GProjects/UI/src/App.tsx" error: {"code":"BABEL_PARSER_SYNTAX_ERROR","reasonCode":"UnexpectedKeyword","loc":{"line":10,"column":0,"index":157},"pos":157,"name":"SyntaxError","message":"Unexpected keyword 'function'. (10:0)","stack":"SyntaxError: Unexpected keyword 'function'. (10:0)\n at instantiate (E:\GProjects\UI\node_modules\.pnpm\@babel[email protected]\node_modules\@babel\parser\lib\index.js:64:32)\n at constructor
Stylelint Version
15.2.0
vscode-stylelint Version
1.2.4
Node.js Version
16.5.1
Operating System
windows11
Windows Subsystem for Linux
No response
Code of Conduct
The text was updated successfully, but these errors were encountered: