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
Issue extending web-recommended
and configuring http-compressions
#905
Comments
web-recommended
and configuring http-compressions
web-recommended
and configuring http-compressions
The following works: {
"extends": [
"web-recommended"
],
"formatters": [
"codeframe"
],
"rules": {
"http-compression": "off"
},
"ignoredUrls": [
{
"domain": ".*\\.googleapis\\.com/.*",
"rules": ["*"]
}
]
} so it looks like a problem when merging the rule configurations options with the |
I've created #907 to fix this issue. If you don't want to wait until things are merged and published on npm you can change |
@jgarber623 We published a new version of the Thanks again for taking the time to let us know! |
Thanks, @molant and @alrra! Those updates did the trick. For future travelers, my updated config works great and now looks like: {
"extends": [
"web-recommended"
],
"formatters": [
"codeframe"
],
"rules": {
"http-compression": ["warning", {
"html": {
"brotli": false,
"zopfli": false
},
"resource": {
"brotli": false,
"zopfli": false
}
}]
},
"ignoredUrls": [
{
"domain": ".*\\.googleapis\\.com/.*",
"rules": ["*"]
}
]
} |
Original report by @jgarber623:
This configuration works, but doesn't include any rule customization:
This configuration does not work:
The error message shown is "Invalid rule configuration in .sonarwhalrc: http-compression."
My goal is to silence errors/warnings about using Brotli and Zopfli compression.
The text was updated successfully, but these errors were encountered: