Skip to content

Commit dd0ad38

Browse files
committed
update docs, added release flow and canary flows
1 parent 997bf6f commit dd0ad38

14 files changed

+72
-11
lines changed
File renamed without changes.
File renamed without changes.

packages/plugin/src/rules/avoid-operation-name-prefix.ts

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,14 @@ function verifyRule(
4646

4747
const rule: GraphQLESLintRule<AvoidOperationNamePrefixConfig> = {
4848
meta: {
49+
type: 'suggestion',
50+
docs: {
51+
description:
52+
'Enforce/avoid operation name prefix, useful if you wish to avoid prefix in your root fields, or avoid using REST terminology in your schema',
53+
category: 'Stylistic Issues',
54+
recommended: false,
55+
url: 'https://github.com/dotansimha/graphql-eslint/blob/master/docs/rules/avoid-operation-name-prefix.md',
56+
},
4957
messages: {
5058
[AVOID_OPERATION_NAME_PREFIX]: `Forbidden operation name prefix: "{{ invalidPrefix }}"`,
5159
},

packages/plugin/src/rules/description-style.ts

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,19 @@
11
import { GraphQLESLintRule } from '../types';
22

3-
type DescriptionStyleRuleConfig = [{
4-
style: 'inline' | 'block';
5-
}];
3+
type DescriptionStyleRuleConfig = [
4+
{
5+
style: 'inline' | 'block';
6+
}
7+
];
68

79
const rule: GraphQLESLintRule<DescriptionStyleRuleConfig> = {
810
meta: {
911
type: 'suggestion',
1012
docs: {
11-
description: 'Require all comments to follow the same style',
13+
description: 'Require all comments to follow the same style (either block or inline)',
1214
category: 'Stylistic Issues',
1315
recommended: false,
14-
url: 'https://github.com/ilyavolodin/graphql-eslint/blob/master/docs/rules/description-style.md',
16+
url: 'https://github.com/dotansimha/graphql-eslint/blob/master/docs/rules/description-style.md',
1517
},
1618
schema: [
1719
{

packages/plugin/src/rules/input-name.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,10 @@ const rule: GraphQLESLintRule<InputNameRuleConfig> = {
1111
type: 'suggestion',
1212
docs: {
1313
description:
14-
'require mutation argument to be always called "input" and input type to be called Mutation name + "Input"',
14+
'Require mutation argument to be always called "input" and input type to be called Mutation name + "Input"',
1515
category: 'Stylistic Issues',
1616
recommended: false,
17-
url: 'https://github.com/ilyavolodin/graphql-eslint/blob/master/docs/rules/input-name.md',
17+
url: 'https://github.com/dotansimha/graphql-eslint/blob/master/docs/rules/input-name.md',
1818
},
1919
schema: [
2020
{

packages/plugin/src/rules/naming-convention.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,10 +48,10 @@ const rule: GraphQLESLintRule<NamingConventionRuleConfig> = {
4848
meta: {
4949
type: 'suggestion',
5050
docs: {
51-
description: 'requires description around GraphQL nodes',
51+
description: 'Requires description around GraphQL nodes',
5252
category: 'Best practices',
5353
recommended: true,
54-
url: 'https://github.com/ilyavolodin/graphql-eslint/blob/master/docs/rules/naming-convention.md',
54+
url: 'https://github.com/dotansimha/graphql-eslint/blob/master/docs/rules/naming-convention.md',
5555
},
5656
schema: [
5757
{

packages/plugin/src/rules/no-anonymous-operations.ts

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,14 @@ const NO_ANONYMOUS_OPERATIONS = 'NO_ANONYMOUS_OPERATIONS';
44

55
const rule: GraphQLESLintRule = {
66
meta: {
7+
type: 'suggestion',
8+
docs: {
9+
category: 'Best Practices',
10+
description:
11+
'Require name for your GraphQL operations. This is useful since most GraphQL client libraries are using the operation name for caching purposes.',
12+
recommended: true,
13+
url: 'https://github.com/dotansimha/graphql-eslint/blob/master/docs/rules/no-anonymous-operations.md',
14+
},
715
messages: {
816
[NO_ANONYMOUS_OPERATIONS]: `Anonymous GraphQL operations are forbidden. Please make sure to name your {{ operation }}!`,
917
},

packages/plugin/src/rules/no-case-insensitive-enum-values-duplicates.ts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,13 @@ const ERROR_MESSAGE_ID = 'NO_CASE_INSENSITIVE_ENUM_VALUES_DUPLICATES';
44

55
const rule: GraphQLESLintRule = {
66
meta: {
7+
type: 'suggestion',
8+
docs: {
9+
url:
10+
'https://github.com/dotansimha/graphql-eslint/blob/master/docs/rules/no-case-insensitive-enum-values-duplicates.md',
11+
category: 'Best Practices',
12+
recommended: true,
13+
},
714
fixable: 'code',
815
messages: {
916
[ERROR_MESSAGE_ID]: `Case-insensitive enum values duplicates are not allowed! Found: "{{ found }}"`,

packages/plugin/src/rules/no-operation-name-suffix.ts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,13 @@ function verifyRule(
2727
const rule: GraphQLESLintRule = {
2828
meta: {
2929
fixable: 'code',
30+
type: 'suggestion',
31+
docs: {
32+
category: 'Stylistic Issues',
33+
recommended: true,
34+
description: `Makes sure you are not adding the operation type to the name of the operation.`,
35+
url: `https://github.com/dotansimha/graphql-eslint/blob/master/docs/rules/no-operation-name-suffix.md`,
36+
},
3037
messages: {
3138
[NO_OPERATION_NAME_SUFFIX]: `Unnecessary "{{ invalidSuffix }}" suffix in your operation name!`,
3239
},

packages/plugin/src/rules/prettier.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,10 @@ type PrettierRuleConfig = [
9595
const rule: GraphQLESLintRule<PrettierRuleConfig> = {
9696
meta: {
9797
docs: {
98-
url: 'https://github.com/ilyavolodin/graphql-eslint/blob/master/docs/rules/prettier.md',
98+
description: `Having all your code follow the same styling guidelines makes it easier to read and understand the code`,
99+
recommended: true,
100+
category: 'Stylistic Issues',
101+
url: 'https://github.com/dotansimha/graphql-eslint/blob/master/docs/rules/prettier.md',
99102
},
100103
type: 'layout',
101104
fixable: 'code',

0 commit comments

Comments
 (0)