-
-
Notifications
You must be signed in to change notification settings - Fork 3
Unable to load custom stylelint config #1
Comments
Hi, @iblack10, I can't reproduce your problem on Windows 10. You can provide your configuration file and CSS/Scss file (preferably with the structure of directories)? |
Ah, I think I've narrowed down the issue to how my stylelint rules are formatted. I have: "indentation": [4, { "severity": "error" }] That doesn't work - but this does: "indentation": 4 I've been using different severities for rules as per the stylelint docs: https://github.com/stylelint/stylelint/blob/d2166dfbcdefefacafd27afd5993ec8341c3b45e/docs/user-guide/configuration.md#severities-error--warning but it seems these are not compatible with stylefmt just now. |
It seems that this is so. I installed Stylefmt as the global package and tried to format a SCSS file with this configuration: {
"rules": {
"indentation": [4, { "severity": "warning" }]
}
} And... it does not work as expected. Please create this question in the repository Stylefmt. I will update the plugin, once this issue is resolved. |
Thanks - have created an issue for this now. |
Ok. In such a case, i will close this issue. I will update the plugin, once this issue is resolved. 👍 |
I've submitted a pull request which should fix this issue for the "indentation" rule. Same process would need to be carried out for all other rules as well though. |
@iblack10, done 👍 |
Thanks for creating the plugin.
I have a working ".stylelintrc" config file in the root of my project which successfully lints styles inside of VS Code. However, I can't get vscode-stylefmt to use the same configuration file. When I run style-fmt it just uses some default rules and not the rules in my .stylelintrc file.
Am I missing something?
The text was updated successfully, but these errors were encountered: