complexity/useSimpleNumberKeys
complexity · since 1.0.0
Safe autofixRecommended
biome.json
{
"linter": {
"rules": {
"complexity": {
"useSimpleNumberKeys": "error"
}
}
}
}Disallow number literal object member names which are not base 10 or use underscore as separator.
({ 0x1: 1 });({ 11_1.11: "ee" });({ 0o1: 1 });({ 0: "zero" });
({ 122: "integer" });
({ 1.22: "floating point" });
({ 3.1e12: "floating point with e" });Examples from the Biome documentation.
ESLint does not have this rule.
Oxlint does not have this rule.
complexity/useSimpleNumberKeys
complexity · since 1.0.0
{
"linter": {
"rules": {
"complexity": {
"useSimpleNumberKeys": "error"
}
}
}
}Require PlatformColor() and DynamicColorIOS() calls to use values written directly in the call.
Require createEventDispatcher calls to declare the types of their events.
Ensure that platform-specific React Native components are only imported in files named for that platform.
Require internal navigation in SvelteKit apps to use paths built with resolve().
Require functions with the "use server" directive to be async.
Require importing SvelteKit's app state from $app/state instead of $app/stores.