-
-
Notifications
You must be signed in to change notification settings - Fork 929
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
stylelint for less - The "syntax" option is no longer available #5663
Comments
I have the same problem. |
See the migration guide. You should install
And then either use the
or use the {
"customSyntax": "postcss-less",
"rules": {
..
}
} You can also raise an issue in the 3rd party |
Thank you for your help. I encountered new problems after performing the operation. TypeError: this.getPosition is not a function "lint:style": "stylelint --fix "src/**/*.less" --custom-syntax postcss-less" TypeError: this.getPosition is not a function |
@PlayApple Can you reproduce the error on the demo? (please share the demo URL) |
Ref: #5666 |
For anyone that encounters this later, the solution is
|
stylelint --fix "src/**/*.less" --syntax less
Error: The "syntax" option is no longer available. You should install an appropriate syntax, e.g. postcss-scss, and use the "customSyntax" option
"lint:style": "stylelint --fix \"src/**/*.less\" --syntax less",
How to use customSyntax to fixed it? Thanks
The text was updated successfully, but these errors were encountered: