Repository navigation
v2.5.0
Workspace Updates
- @robeasthope/eslint-config@6.2.0
@robeasthope/eslint-config
6.2.0
Minor Changes
-
4969647#366 - Add ESLint rule exceptions for Sanity structure filesSanity Studio structure files (
structure.ts,deskStructure.ts) use specific conventions that conflict with standard ESLint rules:func-style: Arrow functions assigned to constants are the standard Sanity patternid-length: The single-letterSparameter is a standard Sanity convention for the StructureBuilder
Both rules are now disabled for these files to support the standard Sanity patterns:
export const structure: StructureResolver = (S) => S.list() .title("Content") .items([...]);
Also renamed
sanitySchema.tstosanity.tsto better reflect that the file now contains multiple Sanity-related ESLint configurations.Closes #365