Unexpected option value "false" for rule "no-eol-whitespace"
rchl opened this issue · comments
Rafał Chłodnicki commented
When the client triggers document formatting with the trimTrailingWhitespace
option set to false
, for example:
textDocument/formatting(3):
{
"textDocument": {
"uri": "file:///usr/local/workspace/temp/Website/src/styles/style.css"
},
"workDoneToken": "wd3",
"options": {
"insertFinalNewline": true,
"trimTrailingWhitespace": false,
"trimFinalNewlines": true,
"tabSize": 4,
"insertSpaces": false
}
}
then the server adds reference to the no-eol-whitespace
rule with value false
in here:
vscode-stylelint/src/utils/stylelint/formatting-options-to-rules.ts
Lines 27 to 29 in d79b3a7
But value false
is invalid and triggers:
Unexpected option value "false" for rule "no-eol-whitespace"
It needs to be null
to disable the rule.