style/noEnum
style · since 1.9.0
No autofix
biome.json
{
"linter": {
"rules": {
"style": {
"noEnum": "error"
}
}
}
}enum Foo {
BAR = 'bar',
BAZ = 'baz',
}const Foo = {
BAR: 'bar',
BAZ: 'baz',
} as consttype Foo = 'bar' | 'baz'const enum Foo {
BAR = 'bar',
BAZ = 'baz',
}Examples from the Biome documentation.
ESLint does not have this rule.
Oxlint does not have this rule.
style/noEnum
style · since 1.9.0
{
"linter": {
"rules": {
"style": {
"noEnum": "error"
}
}
}
}Disallow variables from evolving into any type through reassignments.
Require unique operation names within a GraphQL document.
Checks if a default export exports the same symbol as a named export.