style/noRootType
style · since 2.3.12
No autofix
biome.json
{
"linter": {
"rules": {
"style": {
"noRootType": "error"
}
}
}
}type Mutation {
createUser(input: CreateUserInput!): User!
}type Query {
users: [User!]!
}Examples from the Biome documentation.
ESLint does not have this rule.
Oxlint does not have this rule.
style/noRootType
style · since 2.3.12
{
"linter": {
"rules": {
"style": {
"noRootType": "error"
}
}
}
}Checks if a default export exports the same symbol as a named export.
Disallow constants whose string value is the same as their uppercase name.
Require the JSON top-level value to be an array or object.
Disallow variables from evolving into any type through reassignments.
Disallow template literals if interpolation and special-character handling are not needed