noTypenamePrefix
| Property | Value |
|---|---|
| Config name | noTypenamePrefix |
| Default severity | — |
| Context | Schema |
| In recommended | No |
What it checks
Section titled “What it checks”Disallow field names prefixed with type name.
Examples
Section titled “Examples”# ❌ Bad — field prefixed with type nametype User { userId: ID! userName: String}# ✅ Good — clean field namestype User { id: ID! name: String}Configuration
Section titled “Configuration”extensions: graphql-analyzer: lint: rules: noTypenamePrefix: warn