We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cad4f17 commit 6c867cdCopy full SHA for 6c867cd
src/rules/no-invalid-properties.js
@@ -194,15 +194,11 @@ export default {
194
} else {
195
// If it has a fallback value, use that
196
if (child.children[2].type === "Raw") {
197
- if (
198
- child.children[2].value
199
- .trim()
200
- .startsWith("var")
201
- ) {
202
- const fallbackVarList =
203
- getVarFallbackList(
204
- child.children[2].value.trim(),
205
- );
+ const fallbackVarList =
+ getVarFallbackList(
+ child.children[2].value.trim(),
+ );
+ if (fallbackVarList.length > 0) {
206
let gotFallbackVarValue = false;
207
208
for (const fallbackVar of fallbackVarList) {
0 commit comments