You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
config : { rules: { indentation: [ 4 ] } }
C:\git\jb-design-system\build\variables.scss: When linting something other than CSS, you should install an appropriate syntax, e.g. "postcss-scss", and use the "customSyntax" option
Stylelint Version
v14.15.0
vscode-stylelint Version
v1.2.3
Node.js Version
v16.17.0
Operating System
Window 10
Windows Subsystem for Linux
No response
Code of Conduct
I agree to follow vscode-stylelint's Code of Conduct
The text was updated successfully, but these errors were encountered:
walkadaw
changed the title
[Bug]: fix when format document run or auto fix when save
[Bug]: loading project config whet used 'Format document' or auto fix on save
Nov 25, 2022
How did you encounter this bug?
Any project which use stylelint config
right click
Format Document
with style lintLink to Minimal Reproducible Example
https://github.com/Tinkoff/taiga-ui
Code Snippet
No response
Stylelint Configuration
No response
Extension Configuration
Actual Behaviour
Not formatting with project config
Expected Behaviour
When press button in vscode
Format Document
or format on save fileShould fix file with project stylelint config.
vscode-stylelint/src/server/modules/formatter.ts
Lines 154 to 162 in ee9ae0a
Sets the rules, and because the rules are defined, does not load the rules from the project config file.
https://github.com/stylelint/stylelint/blob/f226f54435c26ecb7dd8b2b69d63d79ee174b7af/lib/getConfigForFile.js#L29-L50
Logs
config : { rules: { indentation: [ 4 ] } }
C:\git\jb-design-system\build\variables.scss: When linting something other than CSS, you should install an appropriate syntax, e.g. "postcss-scss", and use the "customSyntax" option
Stylelint Version
v14.15.0
vscode-stylelint Version
v1.2.3
Node.js Version
v16.17.0
Operating System
Window 10
Windows Subsystem for Linux
No response
Code of Conduct
The text was updated successfully, but these errors were encountered: