Skip to content

Commit

Permalink
Field names should start with a lowercase letter
Browse files Browse the repository at this point in the history
  • Loading branch information
ComLock committed Feb 8, 2024
1 parent 02ee71d commit 79d81e2
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/main/resources/guillotine/guillotine.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,14 +19,16 @@ import {
import {getSiteConfigFromSite} from '/guillotine/getSiteConfigFromSite';


// In type names first letter should be uppercase
const enum GraphQLTypeName {
HEADLESS_CMS = 'HeadlessCms',
SITEMAP = 'Sitemap',
SITEMAP_URL = 'SitemapUrl',
}

// In fields names first letter should be lowercase
enum HeadlessCms { // Can't prefix with const nor declare
SITEMAP_FIELD = 'Sitemap',
SITEMAP_FIELD = 'sitemap',
}

// enum Sitemap { // Can't prefix with const nor declare
Expand Down

0 comments on commit 79d81e2

Please sign in to comment.