-
-
Notifications
You must be signed in to change notification settings - Fork 442
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
🐛 VSCode extension crashes after updating schema to 1.6.4
and fixing warning Missing property "options"
with "options": null
#2313
Comments
Which rule is the warning thrown from? Can you share your config? |
Every rule that has no {
"$schema": "https://biomejs.dev/schemas/1.6.4/schema.json",
"files": {
"ignoreUnknown": true,
"include": [
"biome.json",
"tsconfig.json",
"app/**/*.css",
"app/**/*.ts",
"app/**/*.tsx"
]
},
"organizeImports": {
"enabled": false
},
"linter": {
"enabled": true,
"rules": {
"all": true,
"nursery": {
"useImportRestrictions": {
"level": "off"
}
},
"style": {
"noDefaultExport": {
"level": "off"
},
"useNamingConvention": {
"level": "off",
"options": {
"strictCase": false
}
},
"useConsistentArrayType": {
"level": "error",
"options": {
"syntax": "generic"
}
},
"useShorthandArrayType": {
"level": "off"
}
},
"suspicious": {
"noShadowRestrictedNames": {
"level": "off"
}
}
}
}
} |
I can replicate the issue |
In the meantime, the problem goes away setting the rule to {
// snip
"nursery": {
"useImportRestrictions": "off"
},
"style": {
"noDefaultExport": "off",
"useNamingConvention": {
"level": "off",
"options": {
"strictCase": false
}
},
"useShorthandArrayType": "off"
},
"suspicious": {
"noShadowRestrictedNames": "off"
}
// snip
} |
🤔 Sorry, but I have no idea. If @Conaclos need some someone else before he can tend to this issue, I can help. |
I think it is an "expected" regression of #1876. EDIT: I can take a look again when I have some time. |
Environment information
What happened?
$schema
property inbiome.json
to"https://biomejs.dev/schemas/1.6.4/schema.json"
warnings starts to appear.Missing property "options".
"options": null
in rules as warning suggests[Error - 11:23:28 PM] options has an incorrect type, expected no value, but received null.
Expected result
Warning disappears or extension works correctly.
Code of Conduct
The text was updated successfully, but these errors were encountered: