Skip to content

Commit 8eaf002

Browse files
committed
fix lint
1 parent 9fac700 commit 8eaf002

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed

packages/migrations/src/actions/2025.03.26T00-00-00.graphql-eslint.v4.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -44,12 +44,12 @@ function migrateConfig(v3Config: Record<string, RuleStruct>): Record<string, any
4444
...acc,
4545
[newConfig.ruleName]: [severity, newOptions],
4646
};
47-
} else {
48-
return {
49-
...acc,
50-
[newConfig.ruleName]: [severity],
51-
};
5247
}
48+
49+
return {
50+
...acc,
51+
[newConfig.ruleName]: [severity],
52+
};
5353
}
5454

5555
return {

packages/services/policy/src/policy.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ export function normalizeAjvSchema(
2828
): NonNullable<GraphQLESLintRule['meta']>['schema'] {
2929
if (Array.isArray(schema)) {
3030
if (schema.length === 0) {
31-
return;
31+
return [];
3232
}
3333

3434
return {

packages/services/policy/src/rules.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ const SKIPPED_RULES: RuleName[] = [
1111

1212
function isRelevantCategory(category: CategoryType | CategoryType[]): boolean {
1313
if (Array.isArray(category)) {
14-
return category.some(cat => cat === 'Schema');
14+
return category.includes('Schema');
1515
}
1616

1717
return category === 'Schema';

0 commit comments

Comments
 (0)