Skip to content
This repository was archived by the owner on Mar 7, 2025. It is now read-only.

Commit 5082a02

Browse files
committed
Update graphql rules
1 parent b46db88 commit 5082a02

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

src/rules/graphql-eslint/naming-convention.d.ts

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,8 @@ export type NamingConventionOption =
7878
VariableDefinition?: AsString | AsObject;
7979
allowLeadingUnderscore?: boolean;
8080
allowTrailingUnderscore?: boolean;
81+
} & {
82+
[k: string]: AsString | AsObject;
8183
},
8284
];
8385
/**
@@ -97,6 +99,14 @@ export interface AsObject {
9799
* @minItems 1
98100
*/
99101
forbiddenSuffixes?: [string, ...string[]];
102+
/**
103+
* @minItems 1
104+
*/
105+
requiredPrefixes?: [string, ...string[]];
106+
/**
107+
* @minItems 1
108+
*/
109+
requiredSuffixes?: [string, ...string[]];
100110
/**
101111
* Option to skip validation of some words, e.g. acronyms
102112
*/

0 commit comments

Comments
 (0)