We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
not support for Regexp expression in settings.json
support for Regexp expression in settings.json
i would like to add some regexp expressions to selector property(existed in settings.json)
selector
{ "postcssSorting.config": { "order": [ "custom-properties", "dollar-variables", "declarations", { type: "rule", selector: /^&/ } ] } }
After searching, I find it is impossible to realize the above feature. I has become increasingly frustrated. Here is some technical details for JSON
The text was updated successfully, but these errors were encountered:
Hello, @liuliangsir,
As you see the settings is just a JSON file. And yeap, it is impossible to realize the above feature. But you can use one of format of configs: https://github.com/mrmlnc/vscode-postcss-sorting/blob/master/src/extension.ts#L15-L20 (for example, JS file).
Sorry, something went wrong.
@mrmlnc could you provide an example of using JS file as a config please?
mrmlnc
No branches or pull requests
Environment
Actual behavior
not support for Regexp expression in settings.json
Expected behavior
support for Regexp expression in settings.json
Steps to reproduce
i would like to add some regexp expressions to
selector
property(existed in settings.json)After searching, I find it is impossible to realize the above feature. I has become increasingly frustrated. Here is some technical details for JSON
The text was updated successfully, but these errors were encountered: